AnsweredAssumed Answered

Question about global variables

Question asked by donjuancarlos_1 on Jun 2, 2009
Latest reply on Jun 2, 2009 by philmodjunk

Title

Question about global variables

Post

I have a quotes database that uses a global variable to create and fill lines in a portal -- gCurrentRow (remember this one PhilModJunk?:smileyhappy:).  My question/concern:

 

I also use the global variable in different scripts to change and update values.  I am wondering if it is possible that in a multi-user scenario, two users simultaneously run scripts and Filemaker tries to use the same global variable for both scripts at the same time.  As such, data mayhem could ensue. Am I correct in expecting that this could be a problem and is there a way around it (for example, allow only one user to access the database during certain script runs to limit the possibility of corruption)?

Outcomes