Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting the type of a field
Message
From
11/07/2001 13:50:39
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00529271
Message ID:
00529282
Views:
12
>>I have an array which contains the name of some fields in my table. From that array, I would like to extract the type of the field. Is there a way to do that from the array?
>
>If its an array created with Afields() then the column 2 has the data type of the table column. Otherwise, you could use the TYPE() function (if the table is open.
>
>? type(MyArray[1]) && returns evaluation of the data stored in the field name stored in the table

As mentioned in the other reply, that returns N even if the type is I.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform