DEFINE VARIABLE hCall AS HANDLE NO-UNDO.
CREATE CALL hCall. /* Invoke hello.p nonpersistently */ ASSIGN hCall:CALL-NAME = "hello.p" /* Set CALL-TYPE to the default */ hCall:CALL-TYPE = PROCEDURE-CALL-TYPE hCall:NUM-PARAMETERS = 1. hCall:SET-PARAMETER(1, "CHARACTER", "INPUT", "HELLO WORLD"). hCall:INVOKE( ). /* Reset the call object handle */ hCall:CLEAR( ). /* Invoke persis.p persistently */ ASSIGN hCall:CALL-NAME = "persis.p" /* Set CALL-TYPE to the default */ hCall:CALL-TYPE = PROCEDURE-CALL-TYPE hCall:PERSISTENT = TRUE. hCall:INVOKE. /* Invoke internal-persis-proc in persis.p */ ASSIGN hCall:CALL-NAME = "internal-persis-proc" /* Set CALL-TYPE to the default */ hCall:CALL-TYPE = PROCEDURE-CALL-TYPE hCall:NUM-PARAMETERS = 1. hCall:SET-PARAMETER(1, "INTEGER", "INPUT", 333). hCall:INVOKE( ). /* Clean up */ DELETE PROCEDURE hCall:IN-HANDLE. DELETE OBJECT hCall. |