How to Determine the Variable TypeID: Q139863 3.00 WINDOWS
The information in this article applies to:
SUMMARYWhen using the Visual FoxPro TYPE() function, you must ensure that the expression passed to the function is always be of the character type. You can use a user-defined function (UDF) to determine the type of a variable without trying to convert the variable to a character string. This article shows you how to do it.
MORE INFORMATION
Step-by-Step Example1. Open a program file, and type the following function into it:
2. Save and close the program file.
3. In the Command window, type the following:
4. The value returned is N.
The TYPE() function may be used to obtain the same result if the variable is placed enclosed in quotation marks. For example, the following will also return N:
Additional reference words: 3.00 VFoxWin
KBCategory: kbhowto
KBSubcategory: FxprgGeneral
|
Last Reviewed: May 22, 1998 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |