Exclusive tables-HELP!!!!

Im not really familiar with that. I put my table called tableFolder at Exclusive = true in the beginning.

I want that when someone enters his or her password,it deletes everything in that table if no one else is using the table in the sametime, if someone else is using the table, then it doesn't do the operation. How do I that???
fb132Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ILECommented:
if table is set to exclusive only one cen use the table
0
fb132Author Commented:
I know that.My question is 2 people are using my program, right, I want that the second person to go, the program verifies first of all if someone is already using the database and if there is, well a popup message appears.
0
RatjeCommented:
If the table is set to exclusive then only one person has access to it ( the one who set it to exclusive).
You could use this to determine if anybody else is using the table .

table.close ;
try
 table.Exclusive := true ;
 if this works you're the only one using the table
 start deleting our records
except
 table.open ;
 show your message or whatever, other user active
end ;



Rat
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
RatjeCommented:
If the table is set to exclusive then only one person has access to it ( the one who set it to exclusive).
You could use this to determine if anybody else is using the table .

table.close ;
try
 table.Exclusive := true ;
 if this works you're the only one using the table
 start deleting our records
except
 table.open ;
 show your message or whatever, other user active
end ;



Rat
0
CleanupPingCommented:
fb132:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Delphi

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.