>>That requires knowledge ofthe tablename. What if you have 50 tables open?
>>If you test
>>
if type('m.field')="U" and type('field')<>'U'
>> it must be as table field
>>endif>>
>>
>>
>>Peter
>>
>
>Testing for the "M." variable name works without having to know the table name. But using TYPE() without a table name always seems to check for a memory variable reference, not a field reference, if the table is not the current workarea. To check for a field reference you must specify the table.field to tell, or make sure that the table is the currently selected one.
I don't understand what you are telling me. I understood the question to be to find out if a given variable is based in memory or a table. Since the table name is not necessarily known I would check for the memory variable first as it is in my example. If it is not a memory variable but also not undefined it has to be table based. I am not sure if you are agreeing or disagreeing.
Peter
Peter Cortiel