Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Autostarting objects
Message
From
21/01/2004 11:06:48
 
 
To
21/01/2004 10:46:15
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00869018
Message ID:
00869036
Views:
12
This message has been marked as a message which has helped to the initial question of the thread.
Hi Hilmar,


>An object based on a class can be created and run in two separate commands, like this:

A)
>oObject = CreateObject("SomeClass")
>oObject.Run(par1, par2)

>Or in a single command like this:

B)
oObject = CreateObject("SomeClass", par1, par2)

>I am assuming that there is a Run() method that does the actual work, and that in the second case, the Init() >method accepts the parameters, and passes them to the Run() method.

>I would like to hear some opinions, on which syntax is preferable.

A) if you call Run() other times on the object life.

B) if you call Run() only first time.

Fabio
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform