>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