Sub and function procedures in code, Visual Basic Programming

In your code A, Function has to always be used on the right side of a variable assignment or in an expression. For illustration:

Temp = Celsius(fDegrees)

or

Msg Box "The Celsius temperature is " & Celsius(fDegrees) & " degrees."

To call a Sub procedure from another process, you can just type name of the process with values for any needed arguments, each separated through a comma. The Call statement is not needed, but if you do use it, you have to enclose any arguments in parentheses.

The given example illustrates two calls to the MyProc procedure. One employees the Call statement in the code; the other does not. Both do exactly the similar thing.

Call MyProc(firstarg, secondarg)

MyProc firstarg, secondarg

Notice down that the parentheses are omitted in the call while the Call statement isn't utilized.

Posted Date: 4/18/2013 6:33:32 AM | Location : United States







Related Discussions:- Sub and function procedures in code, Assignment Help, Ask Question on Sub and function procedures in code, Get Answer, Expert's Help, Sub and function procedures in code Discussions

Write discussion on Sub and function procedures in code
Your posts are moderated
Related Questions
Visual Interface  Based On Visual Patterns: The visual user interface should create recognizable patterns and text will be used for differentiating the objects with similar pa

I was looking solution for assignment named Alamo Tour

Files in a SDI and MDI Application: Both the SDI and MDI projects have 4 implementation files (.cpp extension). These are the files equivalent to the Document Class, View Clas

The objective of this unit is to describe the basics of VBScript. After completing this unit, you will be capable to write code for Web pages via VBScript. You will be able to unde

INTRODUCTION TO GUI DESIGN AND FILE HANDLING   The aim of the user interface design is to attain the user's goals. When the user's goals are met, the user is satisfied and the

Dialog Based Application: (A) Dialog Based Application to demonstrate Animate Control: 1. Build a dialog based application. 2. Design the dialog as shown. 3. Place

i have a database i want mange it network and i want write it with vb.net so how i can do this

While a run-time error takes place, the properties of the Err object are filled with information which uniquely identifies the error & information which can be used to handle it. I

INTRINSIC CONTROLS   The Intrinsic controls are the built-in controls. Few of the controls are Combo box, Check box, Command Button, Label etc. The controls have properties re

SDI Application The SDI application uses the main frame window to exhibit a document. Only one document can be opened at a particular time.