>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:
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)