Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Private datasession
Message
De
26/03/2006 06:35:25
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
26/03/2006 03:26:41
Mk Sharma
Shrishti Solutions
Mumbai, Inde
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01107759
Message ID:
01107765
Vues:
23
>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)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform