Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I create an empty class?
Message
 
 
À
11/12/2003 12:15:29
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00858157
Message ID:
00858235
Vues:
19
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform