Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Change in scrput behaviour

Jul
81
0
Running v17.00.52. Consider the command "scrput %_row 27 bri yel on bla %cel". In previous versions, the command worked as expected even if the variable %cel was empty or undefined. In v17 an empty/undefined variable triggers an error. Adding `` at the end of the command is a workaround
--
Peter
 
V17 tightened up on a number of previously ignored errors. Is there a reason you want to run a SCRPUT that doesn't actually do anything?
No reason other than convenience. The line is taken from a btm file that reads records from a CSV file. Some of its records have empty fields, but I can't predict which. I'll work around it.
--
Peter
 
I think that you should be able to solve the problem simply by changing the command

scrput %_row 27 bri yel on bla %cel​

to

if "%cel" NE "" scrput %_row 27 bri yel on bla %cel​
 

Similar threads

Back
Top