General information
Category:
Coding, syntax & commands
vartype() can error if the variable does not exists. Better to use type()
if type("loExp") = O' and type("loExp.ErrorNo") = 'N'
>>I did
>>
>>Got the same error.
>>
>>
>>
>What do you mean?
>
>If you added
>
>if vartype(loExp) = 'O' and vartype(loExp.ErrorNo) = 'N'
> if loExp.ErrorNo -- still an error?
>
>
>>>Well, I don't know what is wrong here, but add the logic I suggested you earlier before the IF.
>>>
>>>>And got exactly what I was expecting - same error
>>>>
>>>>
>>>>>Out of desperation try
>>>>>
>>>>>local loExp as Exception
>>>>>
>>>>>and use loExp instead of oExp.
>>>>>
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only