Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Knowing the type of a parameter
Message
De
19/02/2008 17:24:39
 
 
À
19/02/2008 17:22:42
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01294028
Message ID:
01294035
Vues:
18
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform