You have two choices the simplest is the TYPE() function:
TYPE("latable.lafield")
will return the data type of the field. It returns "U" if the field does not exist.
Or you can use
AFIELDS(laFields)
to put the structure in an array and then
ASCAN(laFields, "LAFIELD")
will return the element number of the array that contains that field name or 0 if it can't find that field.
HTH,
-cjh
>>Augusto, you can use AFIELDS() function, for example and scan the resulting array which contains all info about fields in a table.
>>
>>Nick
>
>
>Excuse me Nick
>but i wanna know how to scan an array.. maybe in the same way that i scan a table?
>
>select array
> scan
> ....
> endscan
-cjh