Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Chapter 7 - Subroutines.
When I reload my script, I get "Script line error" for each of the lines below -
IF 'Aircraft Types' <> ''
ELSE
END IF
This happens twice. I followed the instructions properly. I don't know why I am still getting this error.
My subroutine -
SUB TraceRowCount (SourceTable)
IF '$(SourceTable)' <> ''
LET vNoOfRows = NoOfRows('$(SourceTable)');
TRACE >>> Number of rows in $(SourceTable): $(vNoOfRows);
LET vNoOfRows = Null();
ELSE
TRACE >>> No table name specified;
END IF
END SUB
You need a THEN:
IF _______ THEN
ELSE
END IF
Thanks and I also noticed that if I write THEN in the next line, I get an error.
Yup, they have to be in the same line.
Thanks for the question and answer I had the same problem.