Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using TypeOf in a Select Case
Message
From
11/12/2012 10:44:58
 
 
To
11/12/2012 09:53:44
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01559289
Message ID:
01559309
Views:
55
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform