I have an application. In it I import data from csv file and convert that to JSON. The data is not stored it is for an in memory only process.
My app has effectively 15 data points that are used in a number of ways on different apps in the forms. I am wondering if there are issues to loading the JSON data into 15 global variables and then use those in the different application forms as may be appropriate.
I could create and call separate procedures for each form that seem too much. I already have a class created to handle the processing, etc. However, each form is unique enough that each form will require some unique coding in the class. Doable.
It seems to me though I could just run the process once, load the data into global variables and then use them.
Are their problems with doing it global variable I may be missing?
Any thoughts/comments are appreciated.