![]() In this article, well show you the syntax for these statement using Visual Basic. These statements are a part of any programming language, and they are used often to control output and input depending on a defined set of criteria. The If and Select statements control Visual Basic logic flow. ![]() This is how we can use the Equals() method to check whether the specified string object values are equal or not based on our requirements. Visual Basic Logic Flow with Selection Statements. ![]() If you observe the above result, the string Equals() method has returned a True for both “ Suresh” and “ suresh” values by ignoring the case. When we execute the above visual basic program, we will get the result like as shown below. If you observe above example, we used “ OrdinalIgnoreCase” property with the Equals() method to perform case insensitive comparison by ignoring the case of characters in a visual basic programming language. WriteLine(vbLf & "Press Enter Key to Exit.") ![]() WriteLine( "", fname, u_name, fname.Equals(u_name))Ĭonsole. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |