Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Application variables...

Status
Not open for further replies.

TPetersonFlorida

Programmer
Aug 8, 2003
76
US
Hopefully this is an easy question. I have some asp code that fires off and in it one of the things it does is this:

varText = varText & varMoreText
Application.Lock
Application("stuff") = varText
Application.Unlock

My question is this: if user 1 fires off and locks the variable and user 2 fires off that same code and the variable is locked what happens to user 2? Does the code stop execution until it can lock the variable and write its stuff or does an error occur or does user 2s info just not get written to the variable?

Thanks in advance!!
 
My understanding is that user 2 will line up in the queue and as soon as user 1 is finished (unlock), user 2 will have access.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top