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...
Post Reply
fishgod
Posts: 227
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: 60635
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @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