Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using TypeOf in a Select Case
Message
De
11/12/2012 09:53:44
 
 
À
11/12/2012 09:41:18
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01559289
Message ID:
01559300
Vues:
61
This message has been marked as a message which has helped to the initial question of the thread.
>>I suppose so, since the switch/case in C# accepts strings
>>
>>
>>And yes >> http://msdn.microsoft.com/en-us/library/cy37t14y(v=vs.110).aspx
>
>Yes, I mean, that is the code I have right now. I have been wondering if the TypeOf can be used instead in the Select Case.

Google says yes
   ' Based on the control
                            Select Case True
                                ' Textbox
                                Case TypeOf (locontrol) is System.Web.UI.WebControls.TextBox
Gregory
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform