Instead of using global variables you can use system registry or INI file or even a text file as a global storage to pass values around. For example // set value INIFileSetKey ( "win.ini", "My Job", "My Value", my_local_var ) // get value INIFileGetKey ( "win.ini", "My Job", "My Value", my_local_var ) : I cannot set the job to detached because I need to : define and set a global variable from a database : lookup that almost every job we use references. : When I set the job as detached, no other job could : see the global variable. If you have a way to have : the other jobs see the global variable that is : defined and set in the detached job, that would be : great! Thank you.
|