>>> llCheck = vartype(AAA.kyWarrant)<>'U'
>>
>>If the field does not exist, vartype() throws an error rather than returns 'U'.
>>
>>Ben
>
>This is an old bug.
>
>try:
>
> llCheck = vartype(kyWarrant)<>'U'
>
Hi Fabio,
You probably didn't read the whole discussion. Using vartype(kyWarrant) <> 'U' would not tell us, if kyWarrant is a field in a table or a variable.
Of course, it may be a moot point if we use some good naming convention, but it should be kept in mind.
Also if the table we're checking is not the currently selected alias, this check would not be helpful.
If it's not broken, fix it until it is.
My Blog