getAllApps(apps: ApplicationArray input);
The getAllApps method of the Process class populates an array with all applications that are active in the process of the receiver. Use this method, for example, when you are working with imported packages to access all active forms across the main process
As the main process Application object is always added to the array first, apps[1] is always the application of the main process when you call this method (when the apps parameter is empty before the call).
The array membership is
If you are using packages and you have two packages (for example, p1 and p2), the second package (p2) imports the first package (p1), and a third schema imports both the p1 and p2 packages, there will be two instance of