I have the following code in my script
bts_wrong_length:
ARG z
y = z * -1
zedsmsg = "Invalid input"
zedlmsg = 'Replacing variables with the BTS string, the variables',
'"ran out". This probably means you adjusted a length',
'indicator WITHOUT adjusting the length of the BTS string',
IF z < 0 THEN
zedlmsg = zedlmsg || ' (your BTS string is 'y' byte(s) too long).'
ELSE
zedlmsg = zedlmsg || ' (your BTS string is missing 'z' byte(s)).'
temp = " (DON'T forget to adjust the value in TRANLÄNGD as well)"
zedlmsg = zedlmsg || temp
rc = wdwsay.rex(zedlmsg, "STOP|")
RAISE FAILURE 2 DESCRIPTION ""
RETURN 0
Note the (invalid) trailing comma before the IF statement. Check script for errors says nothing about this, but when I create an exe and try to run it, I get the attached error message.
Took me a while to track it down, first deleting the script from the project, then adding it, then removing most of the code, then adding procedures one at a time etc etc etc . |