Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 6945 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Here's an insteresting question about script variables -

Are Global ($$) variables (with 1 repetition)going to hold the same value for each user in a multi-user situation?

I couldn't find any documentation concerning this. When I read "Global", I think like a Global Text Field - each user has their own instance of it.

Or in other words - database is being hosted on Server. User A runs Script X that sets variable $$Title to "whatever". User B comes along, and calls another script in the same file that calls $$Title - will that script receive "whatever", or something else?

I believe in the long run this won't matter either way, but I can be wrong (and have been before). I just wanted to prepare for any time this might actually need to be applied.

Posted

The global variables have to be machine specific. Really user specific (think about Terminal Services environments) to be more accurate. Otherwise they would be completely unusable.

If you used them for a counter in a loop for instance just think how messed up the output would be if one user kicked off an instance of a script that another user was already running.

Personally, I wouldn't normally choose a global variable for a counter, a local would be a better choice but the concept is the same

Posted

Yea, that's what I was thinking too, Ted. Which is the more desirable thing, or at least in my opinion.

Variables is a great feature that saves time and resources, and should have been in place long ago. I only use Global variables if I have to pass a value from one script to another (usually run one after another).

I would like to actually test this out, but I haven't gotten a copy of FM Server yet. Has anyone out there with a copy of FM Server 8 be willing to test this out really quickly for me?

This topic is 6945 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.