Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Returning the number of decimals a field has
Message
 
 
To
14/08/2003 10:40:31
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00820138
Message ID:
00820160
Views:
24
>Is there a function that will return how many decimal places a numberic field has? Something like LEN() for a character field. I know I can get it with AFIELDS but I only want to check one field and this returns all the fields then I need to find what the field number is in the array. Seems like a pain for something this simple.

AFAIK, no other way than AFIELDS without maybe some low level functions to read the header info. Just create a function yourself that uses afields and accepts a field name as a parameter.
Mark McCasland
Midlothian, TX USA
Previous
Reply
Map
View

Click here to load this message in the networking platform