Function to know that a variable is string or number on foxpro

旧城冷巷雨未停 提交于 2019-12-25 08:52:43

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!