SC inputselect() return items with pipe at the end in style 2+1024 with empty data-part

Things you’d like to miss in the future...
Forum rules
:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:

: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: 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: When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".

:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:
Post Reply
fishgod
Posts: 231
Joined: 03 Feb 2008 00:40
Location: Sankt Augustin (near Bonn), Germany

SC inputselect() return items with pipe at the end in style 2+1024 with empty data-part

Post by fishgod »

When the scripting-command inputselect() is used with style 2+1024 (2=checkboxes; 1024=listdata as fields) and the data-field is missing/empty, then the returned items have a trailing pipe-character that should not be there. This has been working properly in the past (I have not used this feature for some month, so I cannot tell exactly when this started to appear. Looks like the bug was allready there in mid december 2023 and I havn't noticed it there).

Example:
::msg inputselect("Test", "Test1|TEST1<crlf>+Test2<crlf>+Test3|TEST3<crlf>Test4", <crlf>, 1+2+1024);

Expected result when the preselected items are not changed:

Code: Select all

Test2
TEST3
Actual result when the preselected items are not changed:

Code: Select all

Test2|
TEST3
The Test2 has no data-part set in the listdata-parameter and thus the caption is returned as expected but with a magical pipe that does not belong there)
Operating System: Win10 x64 / Win11 x64 / almost allways newest XY-beta
totally XYscripting-addicted

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

Re: SC inputselect() return items with pipe at the end in style 2+1024 with empty data-part

Post by admin »

Yes. Bug began 20231120. Fixed in next beta. :tup:

Post Reply