Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Private data sessions
Message
De
04/06/2002 20:42:50
Wally Noll
Double Aa Builders
Mesa, Arizona, États-Unis
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00663507
Message ID:
00664780
Vues:
24
Dennis,

private data sessions are very good, there is only 1 adjustment you have to make. Whenever a private data session type of dataenvironment is opened in a form, then a whole bunch of settings don't exist for that private data session. You normally create these settings at the beginning of your Main.prg that loads the application. With private data sessions you have to repeat that code each time a new private data session is opened.

Consequently, I put the following code snippet into my DE's OpenTables method for each form.

IF THISFORM.DataSession=2
SET TALK OFF
SET ESCAPE OFF
SET BELL OFF
SET EXCLUSIVE OFF
SET UNIQUE OFF
SET DELETED ON
SET REPROCESS TO 1
SET UDFPARMS TO VALUE
SET COMPATIBLE OFF
SET CONFIRM OFF
SET CENTURY ON
SET DEVELOPMENT ON
SET EXACT ON
SET SAFETY OFF
SET CLOCK ON
SET MULTILOCKS ON
ENDIF

So, your hunch was right, there is something to watch out for.

Wally
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform