Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determine column type by index tag
Message
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01682939
Message ID:
01682944
Views:
36
>Hi,
>
>I can determine the name of the currently selected index tag (using tag()). And I need to determine the type of field this index tag is built on. For example,
>Index tag name can be "COST_CENT" but the type of field could be a character or a numeric. Is there a way to determine?
>
>TIA

In addition to the method suggested by Tore,
TYPE(SYS(14,TAGNO(TAG())))
, which works, I found another way to determine the type. Using
VARTYPE(EVALUATE(KEY()))
Both approaches work. If anybody thinks that one approach is more reliable than the other, please let me know. The speed is not that important.

TIA
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform