04-21-2016 05:53 PM
I am having trouble using scan from string function. For some reason I can't separate the string from the number. I get error 85.
Solved! Go to Solution.
04-21-2016 06:20 PM
We can't really diagnose the problem if we don't know what's going into it...
04-21-2016 06:24 PM
Appologies.
When input string is PID1234 I expect the following outputs:
String output = PID
Numeric output = 1234
Instead I get an error 85
04-21-2016 06:32 PM
%s is going to grab everything, instead grab the non-digits followed by a number using this format string : %[^0-9]%d
04-21-2016 06:36 PM - edited 04-21-2016 06:36 PM
Use "%[^0-9]%d" for your format string. This will tell the first string output to stop when it finds a number.
EDIT: Well, better late than never...