This command defines the end of a discrete section of code which is bound by the SUBROUTINE and ENDSUBROUTINE commands.
Subroutines are called from the main code with a "CALL subroutine_name" command. They return control to the main code by use of the RETURN command or when the ENDSUBROUTINE is reached.
Subroutines share the same variable definitions as the main code.
The name of the subroutine. This must be a valid AgileLoad Dataname and must be unique within the Script
The subroutine parameters, a comma-separated list of defined variables.
log "in MySubroutine";
subroutine LogNameAndId(szFirstName, szLastName, iID)
log "Hello " + szFirstName + szLastName + ", your ID is: " + ToString(iID);
Call LogNameAndId("John", "Smith", 12);
Hello John Smith, your ID is: 12
Copyright © AgileLoad. All rights reserved.