Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using TypeOf in a Select Case
Message
De
11/12/2012 11:03:16
 
 
À
11/12/2012 11:01:16
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:
01559312
Vues:
44
>The select case also supports boolean types
>
>As to the speed, you may want to test it.
>
>
>First case :
>String comparison is slow
>
>Second case needs quit a bit of work
> - evaluation of the TypeOf operator
> - compare with the type ( System.Web.UI.WebControls.TextBox )
> - compare the result with the Select Case value ( True)
>
>Think string comparison will be the faster - but -: I do not know

Thanks
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