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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Check if variable is an Integer 1

Status
Not open for further replies.

sn0rg

IS-IT--Management
Aug 5, 2005
95
GB
How do I check if a variable is an integer?

tia
-S
 
[tt]x=vartype(variable)[/tt]
Check the return variable types, some of them are
doc said:
vbInteger 2 Integer subtype
vbLong 3 Long subtype
vbSingle 4 Single subtype
vbSingle 5 Double subtype
vbCurrency 6 Currency subtype
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top