Do you mean that you want to store String type data between multiple iLogic Rules, or just between multiple Subs and Functions within a single iLogic rule?
To store data to session memory, so that another rule can use it, you could use a SharedVariable.
(You can find examples of using these within the Snippets: iLogic rules editor dialog > Snippets > System tab > Variables)
If you just want to be able to access the same data between multiple Subs and Functions within the same rule, you could just define the variable outside of all the Sub or Function blocks. For instance after the Sub Main and End Sub.
If this solved your problem, or answered your question, please click ACCEPT SOLUTION.
Or, if this helped you, please click 'LIKE' 👍.
If you have time, please... Vote For My IDEAS 💡and Explore My CONTRIBUTIONS
Inventor 2020 Help | Inventor Forum | Inventor Customization Forum | Inventor Ideas Forum
Wesley Crihfield

(Not an Autodesk Employee)