Any program in TRIK Studio can be saved as a subprogram and used in another program.
To work with the collection of subprograms, use the menu item
Tools → Subprograms:
To export subprograms from an open project to a separate qrs file, select
Tools → Subprograms → Export to file in 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 file in the main menu.
To save routines from the current project, select
Tools → Routines → Save to Collection from the main menu.
Then select the subprograms you want to save and click OK.
To load subprograms from the collection, select
Tools → Subprograms → Download from 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 → Clear collection in the main menu.