Last post Aug 08, 2008 08:40 AM by jabex
Aug 08, 2008 08:12 AM|Matt3.5|LINK
Hey, I need to check the type of data stored in a variable - so I'm storing something as an object to be safe e.g. dim variable as object = something
However, I need to test what kind of data has been passed into the object by 'something'. Basically I'm doing something with the sproc profile provider and I need to check to see whether a variable (as above) contains a GUID or just a regular string, but
I can't find any examples to help.
Any ideas would be much appreciated!
Aug 08, 2008 08:40 AM|jabex|LINK
Dim x As Object = Something
If TypeOf x Is Guid Then