Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing Table name and Field as a parameter
Message
 
À
30/10/1998 09:19:02
Noman Aftab
Embry-Riddle Aeronautical University
Daytona Beach, Floride, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00152751
Message ID:
00152794
Vues:
15
It sounds like you can do as Mr. Pikman suggested, just put a parameter statement in the init event. Pass the table/field names in the create command:
oClass = CREATE('MyClass', 'Customer', 'Name')

You can also add methods to the container class, which can be called to update or set values:
oClass.MyMethod('Customer', 'Name')

Good Luck!
Mark


>I am trying to convert a container into a class but I am not sure about how to make the table and field names as variables and pass table and field names as parameters from the calling program. Please HELP!!
"It hit an iceberg and it sank. Get over it."
Robert Ballard, dicoverer of the Titanic wreckage.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform