Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing Method code at Instance Level
Message
 
 
To
30/03/1998 07:16:49
Steve Camsell
Windmill Associates
Bath, United Kingdom
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00088041
Message ID:
00088367
Views:
27
I apologize if this response has already been given...don't have time to read the entire thread now.

One method that I've used: Assuming you have several routines that you might (or might not) want executed on a per-instance level, you can have a custom property for your form that is as simple as a character string. The string can hold the names of all routines that you want executed for that instance, each name separated by commas.

Forx example, once instance might have this property programmatically set as:

cProp="ChangeDataOneWay, ShowDataAnotherWay, DoThisToo"

Then you can execute within the INIT:
cPropLines = ChrTran(cProp, ",", chr(13))
Private oThisForm, etc    && data references to be visible to called routines
oThisForm=ThisForm    && set one reference
For I=1 to MemLine(cPropLines)
  cRoutineName = MLine(cPropLines ,I)
  Do (cRoutineName) in SomeMasterModule
EndFor
Previous
Reply
Map
View

Click here to load this message in the networking platform