InputBox, S, Input, , , 275, 100 if ErrorLevel Return else StringSplit, S, S, - . MsgBox %S1% MsgBox %S2% returnHere's the problem. Give the program the input '513-3' and the program operates as it should. Give the program the input '513' and the program will remember S2 from the previous execution. Would it be possible to have the program forget everything after it has completed running?
Variables not behaving locally
2 replies to this topic
I posted something similar to this before, but posted a lengthy script to go along with it. This time I've isolated the issue given a short code.
#1 - Posted 22 April 2015 - 07:23 PM
✓ Best Answer
You can also use the function strSplit() and reuse the same variable for the array it return's
#2 - Posted 22 April 2015 - 07:52 PM