Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Field in a table
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00099789
Message ID:
00099801
Views:
26
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform