Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to check the type of a parameter
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00508539
Message ID:
00508546
Views:
20
Here you go....

The only drawback to this is that the parameters passed cannot be declared as local in the calling procedure

PROCEDURE cMyFunc( uMyVar )

IF TYPE('uMyVar') = 'C' AND NOT INLIST(TYPE(uMyVar),'U','N')
cReturnValue = TYPE(uMyVar)
ELSE
cReturnValue = TYPE('uMyVar')
ENDIF
RETURN cReturnValue
ENDPROC


Kurt
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform