Page 1 of 1

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

Posted: 30 Mar 2024 12:30
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)

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

Posted: 01 Apr 2024 16:10
by admin
Yes. Bug began 20231120. Fixed in next beta. :tup: