Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Type conversion function
Message
 
À
06/01/2004 08:43:52
Rex Mahel
Realm Software, Llc
Ohio, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00864144
Message ID:
00864211
Vues:
9
All,

How can I cast an object into a type that is represented as a string?

For example:

Dim chrValue as Char
Dim strValue as String
chrValue = CType(strChar,"Char")

I know CType does not allow this. Is there another function that allows the type to be a string?


Try using:
chrValue = System.Convert.ToChar(strChar);
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform