>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