PDA

Click to See Complete Forum and Search --> : Checking Variable type


Aaron Young
Jan 14th, 2000, 12:00 AM
Try the VB Function, TypeName(), i.e.

Dim iInteger As Integer
Dim sType As String

sType = TypeName(iInteger)
MsgBox sType

sType would contain "Integer"

------------------
Aaron Young
Analyst Programmer
aarony@redwingsoftware.com
ajyoung@pressenter.com

Sparhawk
Jan 14th, 2000, 11:52 AM
Is there a function or API call I can use in VB to determine the "type" of variable I am using (given the variable name). Saying the word type I mean "Integer", "Long", "Double"