Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is Expression String or Value

Status
Not open for further replies.

DarrenWard

IS-IT--Management
Feb 15, 2002
217
GB
How can I tell if an Expression is a String or a Value?

e.g.
I could either do;
_TmpVar = "Darren"
or
_TmpVar = 123456

But I cant find a way of telling what was done in the help.

Darren


GuiltyMaggot - The best rock band in the world!
 
Try:

_TmpVar = "Darren"
?VARTYPE(_TmpVar)
_TmpVar = 123456
?VARTYPE(_TmpVar)

Brian
 
Thanks Brian, this was driving me mad, have been looking though the help for over an hour looking for a 'IsNumeric' or simular, thanks again.

Darren

GuiltyMaggot - The best rock band in the world!
 
Here is an earlier discussion about the differences between TYPE() and VARTYPE(): thread184-535367
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top