Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to lock or excusively use database
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00365079
Message ID:
00365172
Vues:
15
>How ? Can you tell me how Thanks.

Make a table...
CREATE TABLE login (Cuser C(1))
APPEND BLANK

When your app starts up, lock the record...

USE login
GO TOP
IF !RLOCK() &&Can't lock the record... someone else must be running the app
=MESSAGEBOX('This application supports single user only mode')
RETURN
ENDIF


HTH
Wayne Myers, MCSD
Senior Consultant
Forte' Incorporated
"The only things you can take to heaven are those which you give away" Author Unknown
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform