Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SET TALK for new datasession?
Message
From
04/12/2001 07:10:09
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
04/12/2001 06:50:01
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00588274
Message ID:
00589137
Views:
34
>BTW Hilamr
>
>If I make a method in my oApp object to run these set commands and
>call it from the init of my data session object will it implement them
>in the data session I am creating or will it just implement them in the the data environment for oApp object.

I don't know - but if you call a function (= procedure), it will affect the current form.

Another thing you can do is call the SET... commands from the parent-of-all-forms. IOW, you derive your forms from a class you call, say, cForm, and you make the changes only once, in class cForm.

Also, I think it is better to invoke these SET commands in Load(), not in Init(). You see, Form.Init() gets called after the objects contained in the form (including grids) get INITialized.

HTH, Hilmar.
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