Closed mougino closed 7 years ago
The nval()
and sval()
methods of all of the Var
subclasses throw an InvalidParameterException
on a type mismatch. The message is "Wrong type for this variable."
In executeREAD_NEXT()
, I can wrap the variable value lookup in a try/catch, and set the catch block to call RunTimeError
that displays the "Wrong type..." message.
Good enough?
Released in Version 01.91, 2017/03/14.
User QBFan reported here that the following command:
read.data 0:read.next b$
throws a very messy error:I think we could go without the stack trace.