Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Addobject
Message
From
18/09/2004 20:35:09
 
 
To
17/09/2004 16:22:03
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Miscellaneous
Thread ID:
00943516
Message ID:
00943795
Views:
20
>>>você poderia tb. trocar o addobject por newobject()..
>>
>>Nào é a mesma coisa. NewObject() é similar ão CreateObject(). Eles criam um objeto novo.
>>O AddObject() adiciona um objeto a uma propiedade ou objeto existente dentro de ele (como umapropiedade objeto).
>
>
>mas fica quase mesma coisa se fizermos:
>
>thisform.addproperty("oMyobject", newobject(..))
>
>Né verdade?
>
>Claudio


Sim, mas eu gostaría mais de ter tudo mas claro (separado).

oParametro=CREATEOBJECT("custom")
ox=CREATEOBJECT("custom")
oParametro.Addproperty("nome","Claudio")
oParametro.Addproperty("oTest",ox)

é deve ter cuidado com o lixo (garbage collection) com objeto dentro de objeto.


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform