Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What happens to 'set procedures' when switching forms?
Message
From
27/06/1999 15:42:50
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00234486
Message ID:
00234548
Views:
27
>>>what, in the vfp default form behaviour causes an application to lose something as vital as the main procedure file identified in the 'set procedure' call?
>>>
>>>If I call one form from another (as opposed to calling the same form from the main menu), then the routine procedures and functions called by many forms (and which are stored in the main procedure file) disappear.
>>>
>>>I can bodge around the problem by reissuing the set procedure command as and when needed, but I'd like to understand why I need to - especially if it means I'm likely to be doing something wrong
>>>
>>>Harry
>>
>>By definition any form using private datasession has own independent setting (see list of affected SET command in Help under 'Set Datasession'). Forms with default data session shares all these SETs.
>
>Ed, I don't believe that SET PROCEDURE is scoped to the datasession, but if you issue another SET PROCEDURE statement without using the ADDITIVE clause, it'll lose the first SET PROCEDURE setting, even if a function or procedure in the procedure file had been referenced before that.

I believe you're right. I'm now on computer with no VFP (and Help) installed. This is why I tried to be extremely careful in my answer :-).
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform