Click to See Complete Forum and Search --> : vb question


pelegk1
09-11-2003, 01:56 AM
how do i check the type of a param?
for example if x="4"
i want to know that x is of type string!
how do i do that
10x:0
peleg

pelegk1
09-11-2003, 03:30 AM
dim X
x="3"
msgbox typeName(x)

PeOfEo
09-11-2003, 05:13 PM
dont put dim x, you need to use a variable to assign the data type. I dont know if this is exactly wht you are asking to know but just use
Dim x as string
if that doesnt float your boat use
Dim x as variant (this was changed to object in asp.net to my knowledge)