[FIXED] ConfigureColumn snippets should forgive extra lines.

Things you’d like to miss in the future...
Forum rules
You might want to read this if you're looking for priority service

:info: Please Include The Following Information
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: Use Your Profile Or Signature
We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: How To Attach Images
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
Post Reply
TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

[FIXED] ConfigureColumn snippets should forgive extra lines.

Post by TheQwerty »

Run the following in a fresh copy of 14.20.0000 and then view the Custom Column definitions.

Code: Select all

$snippet = <<<#SNIPPET
Snip: CustomColumn 1
  XYplorer 14.20.0000, 6/12/2014 10:32:41 AM
Action
  ConfigureColumn
Caption
  Test
Type
  3
Definition
  return 'hi';
Format
  0
Trigger
  1
Item Type
  2
Item Filter
  #SNIPPET;
  // Create d-11 with snippet as is.
  snippet($snippet);
  // Create d-12 with snippet + CRLF.
  snippet($snippet . "<crlf>");
  goto "<xy>";
  // Show new columns
  setcolumns(':d-11,:d-12', 8, 1);
  Echo "Shouldn't the two test columns show the same thing?<crlf>All we did was append a CRLF to the second one.<crlf 2>Check out the Custom Column definitions next...";
  #600; //   Tools | Configuration...

XY uses the CRLF at the end of our second snippet as the filter - confirmed by doing a Select All > Copy in the filter editor - but to the user it looks like the filter is as empty as it should be.

admin
Site Admin
Posts: 67299
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: ConfigureColumn snippets should forgive extra lines...

Post by admin »

Wow, how comfortable for me! :appl:

And, yes, totally right. Fix comes.

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: ConfigureColumn snippets should forgive extra lines...

Post by TheQwerty »

Fix confirmed.

Post Reply