Link to home
Start Free TrialLog in
Avatar of fb132
fb132

asked on

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???
Avatar of ILE
ILE

if table is set to exclusive only one cen use the table
Avatar of fb132

ASKER

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.
ASKER CERTIFIED SOLUTION
Avatar of Ratje
Ratje

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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
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.