Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Private datasession
Message
From
26/03/2006 06:35:25
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
26/03/2006 03:26:41
Mk Sharma
Shrishti Solutions
Mumbai, India
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01107759
Message ID:
01107765
Views:
24
>i should write all the SET commands again in load event of the form.
>
>warm regards,
>mk.

Yes. Each form (with private datasessions) has its own copy of open aliases, but it also has its own settings for SET DELETED, etc. (any command whose help ends with: "... is scoped to the current datasession").

You can put all the setup commands into a function:
FUNCTION FormSetup
set talk off
set dele on
set excl off
set reprocess auto
set refresh 3,3
set multilock on
ENDFUNC
and then invoke it in the Form.Load(), for every form:
* Form.Load() Event
FormSetup()
But a better solution would be to put the SET commands into the Load() Event of the class on which all your forms are based (or invoke the same function from there).
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform