8 15 2 INVOKE Examples

LANSA Technical

8.15.2 INVOKE Examples

This code shows MyForm using its Show method:

INVOKE #MyForm.ShowForm
 

This code executes a GetInfo method, passes the current value of the #employee field to it, and receives a transaction number (trrno) which it assigns to the field #transa.

INVOKE #frmDetails.GetInfo CurEmp(#EMPNO) trnno(#TRANSA)
 

Simple invocation using Full RDMLX:

#Com_Owner.StringMethod String1(#Address1) String2(#Address2) String3(#Address3)
#Com_Owner.StringMethod String2(#Address2) String3(#Address3) String1(#Address1)
 

For more information about input parameters for methods, refer to 8.6 DEFINE_MAP and 8.16 MTHROUTINE in this chapter.