About subapps
A subapp is a reusable set of application logic that resides outside an app. Unlike subroutines, which reside within an app, subapps are completely self-contained; their variables are know only to them.
Subapps can be called from an app or another subapp. Subapp calls can be nested within subapps to an infinite level. Subapps can even call themselves, which is referred to as recursion. The Call SubApp source element is used to call a subapp.
Subapps variables are not known to the outside calling app or subapp. For example, the main app may declare the variable V_Count, and the subapp may also contain that same variable name.
Because subapps are encapsulated, they require input and output parameters to exchange data with apps and other subapps. For example, a subapp could be written to calculate the difference in days between two dates. The subapp would require three parameters: two dates, and a return parameter representing a number.
Subapps have versions, but they are not promoted.
Loading...
There was a problem loading this topic