>>>>Add a m., and use vartype().
>>>>If vartype(yourunknown)#'U' and vartype(m.yourunknown)='U'
>>>>* yourunknown is a field
>>>>else
>>>>* yourunknown is a memvar
>>>>Endif
>>>
>>>Interesting solution.
>>
>>It's not 100% safe, it will also report that an object is a field.
>
>I don't see a problem with the object here. For me this looks like a safe code.
yourunknown = CREATEOBJECT([EMPTY])
? VARTYPE(m.yourunknown)
Just because objects are memory variables also.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.