Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Help with Select Case
Message
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
Help with Select Case
Versions des environnements
Environment:
VB.NET 1.1
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01328602
Message ID:
01328602
Vues:
50
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
Gregorio J. Placeres
IT Analyst
Uniform Accounting Network
Auditor of State of Ohio
88 East Broad Street
P.O. Box 1140
Columbus, Ohio 43216-1140

Tel. 614-728-4694

Gregorio_J@MSN.COM

http://www.gjpproductions.com
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform