Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating temporary instances of a class
Message
From
20/11/2007 09:38:32
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Title:
Creating temporary instances of a class
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01270154
Message ID:
01270154
Views:
74
I'm trying to get my head around a concept that I think I need to implement. I have a class that is going to instantiate instances of another class. The first class is a port listener, and the second class is also a listener, but does processing of data also. The first one needs to create instances of the second one, then as they are done, the instances die a (hopefully) graceful death. I'm trying to use SYS(2015) to create unique names for each instance, but I can't figure out how to do that. The define of the "EMPS_Server_Class" is set. So, if I try something like the code below in the first class, it does not find the one with the unique name. I understand why this is, but how do I get around it?
oxServer = CREATEOBJECT( "EMPS_Server_Class_" + SYS(2015) ,m.Port )
Next
Reply
Map
View

Click here to load this message in the networking platform