Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Private data sessions
Message
From
04/06/2002 20:42:50
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00663507
Message ID:
00664780
Views:
21
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform