Once an object has been created, you can call the methods of that object from anywhere in your application.
To call a method
Use this syntax:
В Copy Code
The following statements call methods to display a form and set the focus to a text box:
Methods that return values and are used in expressions must end in open and closed parentheses. For example, the following statement sets the caption of a form to the value returned from the user-defined method
Form1.Caption = Form1.GetNewCaption( )
Parameters passed to methods must be included in parentheses after the method name; for example, |