D
david epsom dot com dot au
In A97 Eval(Empty) returns Empty. Empty is type compatible with Numeric,
Boolean and String types.
In A2K Eval(Empty) returns Null. Null is only type compatible with Variants.
Function v()
'function that returns empty variant in A97 and A2K
End Function
?VarType(Eval("v()")) & "," & VarType(v())
1,0
'Statement that gives runtime error in A2K but not A97 or A2.0
i = eval("v()")
(david)
Boolean and String types.
In A2K Eval(Empty) returns Null. Null is only type compatible with Variants.
Function v()
'function that returns empty variant in A97 and A2K
End Function
?VarType(Eval("v()")) & "," & VarType(v())
1,0
'Statement that gives runtime error in A2K but not A97 or A2.0
i = eval("v()")
(david)