Global Variables
Posted: Thu Dec 07, 2023 7:45 pm
Is there a method we can use to pass through variables to other components (different forms/reusable parts)?
Currently, we use:
Use Builtin(SET_SESSION_VALUE) With_Args('UDEF=' #COMPCODE.AsString)
But should we later need the value in a different form and we use the get_session_value the value will be reset to 0. What is a method to create a variable that we can constantly reference should we need specific data from it?
The other limitation is that we cant pass multiple variables with set_session_value
Currently, we use:
Use Builtin(SET_SESSION_VALUE) With_Args('UDEF=' #COMPCODE.AsString)
But should we later need the value in a different form and we use the get_session_value the value will be reset to 0. What is a method to create a variable that we can constantly reference should we need specific data from it?
The other limitation is that we cant pass multiple variables with set_session_value