Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using TypeOf in a Select Case
Message
De
11/12/2012 10:44:58
 
 
À
11/12/2012 09:53:44
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:
01559309
Vues:
54
>Google says yes
>
>
>   ' Based on the control
>                            Select Case True
>                                ' Textbox
>                                Case TypeOf (locontrol) is System.Web.UI.WebControls.TextBox
>
>
Nice trick, I am now wondering if a single evaluation to a string in the Select Case would be as fast as using TypeOf in each Case.
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform