Any program in TRIK Studio can be saved as a subprogram and used in another program.
Subprograms can be saved to a local collection or exported to a separate file for transfer to other computers.
To work with the collection of subprograms, use the menu item
Tools → Subprograms:
Use the export of subprograms to a file to transfer them to other computers. If you plan to use the subprograms on your computer, then use the option Save to collection.
To export subprograms from an open project to a separate qrs file, select
Tools → Subprograms → Export to filein the main menu.
All subprograms from the current project will be exported to this file.
To load previously-stored subprograms, select
Tools → Subprograms → Import from filein the main menu.
Attention! If the imported file contains subprograms with the same names as in the current project, then the subprograms from the project will be replaced by imported ones.
To save routines from the current project, select
Tools → Routines → Save to Collectionfrom the main menu.
Then select the subprograms you want to save and click OK.
Attention! If there are subprograms with the same names in the collection, they will be overwritten.
To load subprograms from the collection, select
Tools → Subprograms → Downloadfrom the collection from the main menu.
Then select the subprograms that you want to import into the current project, and click OK.
To delete all subprograms saved in the collection, select
Tools → Subprograms → Clearcollection in the main menu.
The collection of subprograms is stored in the user directory and is not lost when uninstalling or reinstalling TRIK Studio.