HandsOn Executing a Function Procedure from the Immediate Window

This hands-on requires prior completion of Hands-On 4-1.

1. Choose View | Immediate Window, and enter the following statement: ?JoinText("function", " procedure")

Notice that as soon as you enter the beginning parenthesis, Visual Basic displays the arguments that the function expects. Type the value of the first argument, enter the comma, and supply the value of the second argument. Finish off by entering the ending parenthesis.

2. Press Enter to execute the above statement from the Immediate window. When you press Enter, the string "function procedure" appears in the Immediate window.

You can also execute a function procedure programmatically as outlined in Hands-On 4-3.

0 0

Post a comment