Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I create an empty class?
Message
De
12/12/2003 03:00:41
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:
00858482
Vues:
21
>>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.

Yes my bug on a rush. AddProperty() function not method.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform