answersLogoWhite

0


Best Answer

They are both conditional logic statements. The Select Case statement just happens to have a much more clean form when it comes to more than two cases.

Example of If..Then...Else:

If intVar = 123 Then

myStr = "123"

Else

myStr = "456"

End If

Example of Select Case:

Select Case intVar

Case 123

myStr = "123"

Case 456

myStr = "456"

Case Else

myStr = "789"

End Select

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is Difference between if statement and select case statement in vb.net?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the difference between C and Vbnet?

It is just a different coding language, but C is more for business that VBNET


What are the basic difference between c sharp and vbnet?

They use different syntax.


How do you write a VBnet program to find the prime numbers between 100 to 200?

VBnet program to find the prime numbers between 100 to 200?


What is the difference between aspnet vbnet and c?

asp.net is website programming vb.net is windows forms programming the visual basic language c#.net is windows forms programming in c# language


Is java better than vbnet?

Java is not better than VBNet, nor is VBNet better than Java. Eachone has its advantages and disadvantaged over the other one.


Difference between ctype and directcast in vbnet?

The difference between the two keywords is that CTypesucceeds as long as there is a valid conversion defined between the expression and the type, whereas DirectCast requires the run-time type of an object variable to be the same as the specified type. If the specified type and the run-time type of the expression are the same, however, the run-time performance of DirectCast is better than that of CType.


What is datareader in VBNET?

x


What is instance in vbnet?

An instance in VBNet is the same as an instance in any other language; it is the realisation of a type. In object-oriented languages, like VBNet, we say that an object is an instance of a class, where the class defines the object's type.


What is an instance in vbnet?

An instance in VBNet is the same as an instance in any other language; it is the realisation of a type. In object-oriented languages, like VBNet, we say that an object is an instance of a class, where the class defines the object's type.


IS VBNet purely objet oriented?

no


Who is the father of vbnet?

Alan Cooper


Who is the developer of vbnet?

Microsoft Microsoft.com/VisualStudio