Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SaveAsClass and Scatter Name
Message
De
17/09/2004 08:56:46
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00943238
Message ID:
00943295
Vues:
17
>Hallo,
>
>I've tried the following:
>
>
>use SomeTable
>oBS=NewObject("Custom")
>oBS.Addproperty ("cSomeNewProperty","")
>scatter Name oBS Additive
>oBS.SaveAsClass (cSomeLib, cSomeClassName)
>
>
>What I wanted to achieve was a visual class cSomeClass in Library cSomeLib with all the Properties of oBS, including the one created with AddProperty and those created with Scatter Name.
>
>But what I get is the new class that has the the Property cSomeNewProperty but no trace of the properties created with SCATTER NAME, though the object oBS itselve has them.
>
>Is there some difference in the way SaveAsClass treats properties depending on their origin?
>
>I am probably the only one who doesn't know it...

Alexander,
I don't like the behavior either :( Ones added with scatter or addproperty() are ignored.
If you use obj.Addproperty and then scatter or addproperty() with same property names values updated. Sounds like scatter..additive and addproperty() are just providing an internal ref to some other object under the hood (like form.DE is a property pointing to an object maybe-it cannot be saved with class too).
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform