Website Design United States, Website Design California, Website Designing United States, Website Designing California

A neat way to use the Select Case statement - Visual Basic 6

This is a neat way you can use the Select Case statement. It does not work in C++, C#, VB.Net or Java.

'This is a perfectly legit Select Case statement...

Select Case True
Case optButton(0).Value
'Button 0 is selected
Case optButton(1).Value
'Button 1 is selected
End Select

'Here is another one...

Select Case True
Case iA + iB = 2
'Put code here
Case iA + iC = 15
'Put code here
End Select


WEB DESIGN INDIA
42 B Malviya Nagar , New Delhi-110017

Skype: manmeetsi
Email: support.webdesignindia@gmail.com
Tel: 91-011-40502005, 9810067295

 















 


© 2008-2009 dotnet4all.com