Defines local subroutines that will be triggered when you call them, in the same object, with the Do command.
Parameter-passing is not allowed. All the object variables are available to be used by the subroutine. Also, instantiated attributes (loaded with values) are available to be used by the subroutine.
Sub 'Subroutine-Name'
Code
EndSub
Subroutine-Name
Name of the subroutine defined.
Objects: Panel,
Procedure,
Transaction,
Web Panel.
Generators: .NET,
.NET Framework,
Android,
Apple,
Java.
As an example, consider the following code defined inside a Procedure Source or inside an object Event:
...
If &ConfirmedTicket //Boolean variable
Do 'PrintTicket' //The 'PrintTicket' subroutine is called
EndIf
...
Sub 'PrintTicket'
... // Subroutine code
EndSub
See Also
Do command
What is a subroutine?