Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OO Proper Design
Message
From
14/11/2001 11:04:55
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
14/11/2001 10:59:37
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00581500
Message ID:
00581554
Views:
17
>Hi,
> Thank yuo very much. I will think about it deeply in order to apply it in pratical. Thank you.
> I have another question too, As I read from FP advisor, the author of admin-manager will create comserver as many as comclient instance then store the client reference on each comserver property and stire the comserver to a public array. Why we need to have so many instance, instead of have a single instance of comserver, and just store the comclient in array. Once necessary, call the client store in array?>
>
>Thank yuo

I don't know about comserver, but I think, yes, if you need several similar objects, an array is appropriate.

An array property can be used, too. Let's say cApplication is your application class.
goProgram = CreateObject("cApplication")
...
* Add an instance of ComServer, whatever that class does...
dimension goProgram.aComServer(alen(goProgram.aComServer)+1)
goProgram.aComServer(alen(goProgram.aComServer)) = CreateObject("cComServer")
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform