Source property, Visual Basic Programming

Assignment Help:

Returns or sets the name of the object or application which generated the error originally. The Source property indicates a string expression which is usually the class name or programmatic ID of the object which caused the error. Use Source to present your users with information while your code is unable to handle an error generated into an accessed object. For instance, if you access Microsoft Excel & it generates a Division through zero error, Microsoft Excel sets the VBScript Err Object Number Property to its error code for that error & sets Source to Excel application. Note that if the error is generated into another object called through Microsoft Excel, Excel intercepts the error & sets Err.Number to its own code for Division through zero. Though, it leaves the other Err object (by including Source) as set by the object which generated the error.

Source always have the name of the object which originally generated the error - your code can attempt to handle the error according to the error documentation of the object you accessed. If you fail in error handler, you can employ the Err object information to define the error to your user, by using Source and the other Err to inform the user that object caused the error originally, a description of the error, and so forth.

Syntax

Err.Source [= stringexpression]

Argument :

stringexpression

A string expression representing the application which generated the error.


Related Discussions:- Source property

Class wizard, CLASS WIZARD The Class wizard shown in figure is a tool t...

CLASS WIZARD The Class wizard shown in figure is a tool to handle the message handlers for objects, to define the member variables. Figure: Class Wizard

Drawing, #questiontypes of lines and how to draw

#questiontypes of lines and how to draw

Hungarian notation, Hungarian Notation: The Hungarian Notation was inv...

Hungarian Notation: The Hungarian Notation was invented by Charles Simonyi from Microsoft. It is a naming convention. It is a reminder of the type of a variable. The Handles h

Software that is obscure - basics of gui design, Software That Is Obscure: ...

Software That Is Obscure: The Software hides the intensions, meaning and actions from the user. For illustration, if a user is asked whether a full installation, the custom in

What is meant by dtd?, Question 1 Design a form based applications using l...

Question 1 Design a form based applications using labels, text boxes, and buttons to perform basic arithmetic operations on integers Question 2 Describe the concept of Except

Application Deployment , I would like to know how to deploy a VB.NET Applic...

I would like to know how to deploy a VB.NET Application using SQL SERVER as a back-end database

Explain class module and standard module, Difference between Class Module a...

Difference between Class Module and Standard Module? Standard module: -This place for variable declarations,procedures etc.& it can accessed these procedures in whereve

Vb code to run various iterations , What I understand from the assignment i...

What I understand from the assignment is I have to make the VB code in file nu1. xlsm generic, and run several iterations for Kc and Ti to find out the optimal combination which wi

Project to create splitter window , PROJECT TO CREATE SPLITTER WINDOW   ...

PROJECT TO CREATE SPLITTER WINDOW   1. Generate the SDI application. 2. Enlarge the class tab page. 3. Select the view class. 4. On right clicking the menu pops up.

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd