Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Send parameters to a class?
Message
 
 
To
22/08/2007 18:14:19
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01249732
Message ID:
01249798
Views:
12
This message has been marked as the solution to the initial question of the thread.
>I have a class defined. How can I instantiate subclasses based on parameters sent? For example:
>
>
>oxServer = CREATEOBJECT( "EMPS_Class","Server" )
>oxClient = CREATEOBJECT( "EMPS_Class","Client" )
>
>
>Or something like that...
>
>UPDATE: Ok, I figured out that was wrong. I need to define a EMPS_Server_Class and EMPS_Client_Class based on the EMPS_Class, then add code to them of their changed functionality. Then I can create ocServer and oxClient based on the new subclasses. If that's totally off-base, please tell me...

It's correct way to go.
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform