8 15 INVOKE

LANSA Technical

8.15 INVOKE

The INVOKE command invokes a method. A method can be a standard method such as a form's Show and Hide methods, or it can be a user-defined method.

Custom-defined methods can also accept input values and can return output values. When you invoke a method like this you need to pass a value and assign a field for the returned value.

Methods are often used by an owner form to instruct a member form to perform some action. Note that a component can also invoke its own methods, for example a form can close itself by invoking its Hide method.

The specification of the INVOKE command is as follows:

INVOKE Method(method_expression) ParmOne(#ArgOne) ParmTwo(#ArgTwo)
 

Using Full RDMLX, without its name, the command can be entered in the following way:

method_expression ParmOne(#ArgOne) ParmTwo(#ArgTwo)
 

Also See

8.15.1 INVOKE Parameters

8.15.2 INVOKE Examples

 

 

                                                           Required       

                                                                          

    INVOKE -------------Component.Method  -------------------------->     

                                                                          

   -------------------------------------------------------------------    

                                                                          

                                                      Optional            

                        >---- Parameter and Value  -----------------|