Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Knowing the type of a parameter
Message
From
19/02/2008 17:24:39
 
 
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01294028
Message ID:
01294035
Views:
17
>Michel, here's a (very) quick and dirty way...
>
>
>
>     int x = 0;
>
>            if (x is System.String)
>                MessageBox.Show("this is a string");
>
>            if (x is System.Int32)
>                MessageBox.Show("this is an int");
>
>
Thanks, this is exactly what I was looking for. But, that syntax cannot be supported as is in VB.NET. I would say a small adjustment is required after x is or something like that.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform