If you try EVALUATE(intVar,"text") and you don't use the IF-contrsuction, you will get a runtime error because "text" is no integer.
intVar: integer;
strVar: text[30];
strVar := '6';
IF NOT EVALUATE(intVar,strVar) THEN BEGIN
// this code will not be executed
END;
strVar := 'test';
IF NOT EVALUATE(intVar,strVar) THEN BEGIN
// this code will be executed, because 'test' cannot be converted to integer
END;
Comments
Microsoft Dynamics NAV Developer since 1997
MSDynamics.de - German Microsoft Dynamics Community - member of [clip]
If you try EVALUATE(intVar,"text") and you don't use the IF-contrsuction, you will get a runtime error because "text" is no integer.