Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing Method code at Instance Level
Message
 
 
À
30/03/1998 07:16:49
Steve Camsell
Windmill Associates
Bath, Royaume Uni
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00088041
Message ID:
00088367
Vues:
26
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform