Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I create an empty class?
Message
 
 
To
11/12/2003 12:15:29
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00858157
Message ID:
00858235
Views:
20
>Scatter name is powerfull but the obhject it created doesn't expose an Addproperty() method whilst empty does. Prior to VFP8 I'm creating other ligthweight objects such as line,relation,session to pass parameters 'cargoed' in an object. ie:
>
>loParms = createobject('Empty')
>loParms.Addproperty('StartDate', ...)
>...
>loParms.EndDate = ...
>loParms.Country = ...
>...
>loRetObj = loCusUtils.MyCustomersToFollowup(loParms)
>

Cetin,
The Empty class doesn't expose an AddProperty method either. Scatter Name actually gives you an instance of the Empty class. You have to use the AddProperty() function to add anything to it. Prior to VFP 8, I believe you had to use Ken Levy's AddProp FLL to do this.

Regards.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform