11-11-2015 06:58 AM
Wiring "TRUE FALSE" as input and "%s %s" as format as well as false constants to scan from string produces
the desired two binary values corresponding to the string input.
Whereas "TRUE,FALSE" as input and "%s,%s" as format leads to an error.
I wasted much time to figure out that the error has its origin in the incompatible separator and not in the way i use this function.
Would it be possible (asking kindly) to place a remark in the online help for this function that you should only use spaces or tabs as separators
with binary strings when using this function?
It was not obvious to me why i shouldn't use comma as separator.
My workaround now is to replace all commas by spaces before wiring the input string to scan from string.
Is there another workaround or does somebody can provide a more deep understanding of why comma doesn't work?
My guess is, that it's confused with a decimal separator and therefore assumed not beeing part of a binary value.
Solved! Go to Solution.
11-11-2015 07:10 AM - edited 11-11-2015 07:11 AM
Use "%[^,],%s" as your specifier. "%[^,]" will result in a string until the next comma.