>>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.
Right, it would be O, I think. So, what is the problem with the code above? vartype(m.unknown) = 'O', so it's not a field.
vartype(unknown) <> "U" and vartype(m.unknown) = 'U'
This is a field - no exceptions except for the case of select m as an alias
If it's not broken, fix it until it is.
My Blog