question

Serge A avatar image
1 Like"
Serge A asked Phil BoBo edited

String.split on empty strings in FlexSim 2018.0.5

The issue reported in this thread is fixed in FlexSim 2018.0.5, but there is another backwards compatibility issue with the same method introduced in 2018.0.5:

string s = "";
return s.split(";");
// FlexSim 2018.0.4: []
// FlexSim 2018.0.5: [""]
FlexSim 18.0.5
flexscriptbug
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Phil BoBo avatar image
2 Likes"
Phil BoBo answered Phil BoBo edited

18.1.1 includes the bug fixes in 18.0.5.

Also, string.split(";") on an empty string is supposed to return [""]


string-split.png (78.8 KiB)
· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Serge A avatar image Serge A commented ·

Thank you. The point is that the behavior of the method has changed from 18.0.4 to 18.0.5, and this change creates subtle bugs in the existing code base.

0 Likes 0 ·
Phil BoBo avatar image Phil BoBo ♦♦ Serge A commented ·

That's why it is listed under "backwards compatibility notes" in the release notes.

The same change that fixed the other issue also fixed this bug.

1 Like 1 ·