I am writing a macro that reads data from a text file using the Readln> command. Occasionally the text file will contain a line with only one number on it.
When this happens the variable that is assigned the line of text becomes numeric and seems to have different properties.
For example the following statement breaks down when the variable contains only a number:
Code: Select all
Until>line,##EOF##
Fortunately you can get round this because the if> command is not vulnerable to this problem.
e.g.
Code: Select all
If>line=##EOF##,finish
However, I still would like to test that my variable line contains a valid number after the Readln command. What's the easiest way to do this?
Bill.