Function to know that a variable is string or number on foxpro
问题 I am having a difficult time telling that a variable is string or number on foxpro 6 or other version. I am new in this languages. 回答1: You can use the VARTYPE or TYPE functions - these are slightly different and you should review the documentation before deciding which to use. 回答2: Have a look at the Vartype() function - it will return 'N' for numeric, 'C' for character and so on. 来源: https://stackoverflow.com/questions/7563907/function-to-know-that-a-variable-is-string-or-number-on-foxpro