Change in scrput behaviour

  • This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
Jul 1, 2008
81
0
70
Montreal
#1
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
 
Jul 1, 2008
81
0
70
Montreal
#3
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
 
Jun 2, 2008
284
1
Newton, MA
#4
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​