![]() The Exception class will identify the type of exception and provide the properties that have details about the exception. Visual basic has provided necessary built-in exception classes to handle all the exceptions in our applications and all exception classes are derived from the base class called Exception. When we execute the above visual basic program, we will get an exception like as shown below because the variable ( name) value is Nothing or null. If you observe the example, we assigned a Nothing value to the name variable and trying to validate the length of string variable.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |