Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help with Select Case
Message
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
VB.NET 1.1
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01328602
Message ID:
01328605
Views:
9
It looks like it should work. Are you sure you don't have typos?

>Hi All!
>
>I have a complicated If statement that I will like to convert to Select Case but the expresion that I have in the IF is a little difficult. Maybe someone already did it, let see,.
>
>If TypeOf rptVendorPayeeReport Is ExportReport Then
>some code
>else
>If TypeOf rptVendorPayeeReport Is ReportListingThen
>some code
>else
>If TypeOf rptVendorPayeeReport Is ReportListing2 Then
>
>an continue six level down.
>
>I will like to make it Select Case but that give me an error,. sound logic this way
>
>Select case TypeOf rptvendorPayeeReport is
>
>case Report listing
>
>.....
>
>end select
>
>But does not work.. Any Idea are welcome.
>
>TIA
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform