Keep repeating variables in memory for current entry session

Discussions about CSEntry
Post Reply
wodoke
Posts: 1
Joined: August 2nd, 2016, 8:31 am

Keep repeating variables in memory for current entry session

Post by wodoke »

Hi all,
I am new to CSPro, could you kindly help with the logic to store and populate some repeating textbox values from one case to the other only for the current entry session. I have tried using setvalue, visualvalue etc without success. I thought about using global variable, I am not sure how to go about this. Thanks
josh
Posts: 2399
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: Keep repeating variables in memory for current entry session

Post by josh »

If by the current session you mean the time between opening the CSPro application and closing it then you can do this using global variables. Declare the variables in the PROC GLOBAL. Use numeric variables for numeric items and string variables for alphanumeric items. You can then copy the values from the text boxes (dictionary variables) to the global variables by simply assigning them. Since them items are repeating you may need to use arrays to hold the occurrences.
Post Reply