>? VARTYPE (CONFIG2.version)
>
>returns C
>
>? VARTYPE (CONFIG2.versionxxx)
>
>return an error message
>
>
>Is it the right way ?
>I was expecting something as .F.
TYPE() and VARTYPE() return the variable or field type or a "U" is it does not exist.
IF VARTYPE( MyFile.MyField ) <> "U"
or
IF TYPE( "MyFile.MyField" ) <> "U"
Or you can test if the field exists and has the expected type:
IF TYPE( "MyFile.MyField" ) = "C"
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.