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 13:53:08
 
 
To
27/06/1999 11:54:45
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00234486
Message ID:
00234527
Views:
23
>>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.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform