Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing Table name and Field as a parameter
Message
 
To
30/10/1998 09:19:02
Noman Aftab
Embry-Riddle Aeronautical University
Daytona Beach, Florida, United States
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00152751
Message ID:
00152794
Views:
14
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.
Previous
Reply
Map
View

Click here to load this message in the networking platform