Search found 51 matches: oobject

Return to advanced search

Ayuda para agregar un objeto a una clase

... clase llamada "tmaint", en tiempo de ejecucion. Podría alguien ayudarme con eso. He tratado de hacerlo asi: FUNCTION AddObjetoAClase( oObject, cDataName ) __clsAddMsg( oObject:ClassH, cDataName,&( "{ | | _" + cDataName + "() }" ) , HB_OO_MSG_METHOD,, HB_OO_CLSTP_EXPORTED ...
by ricardog
Sun Apr 03, 2011 7:45 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Ayuda para agregar un objeto a una clase
Replies: 0
Views: 274

Re: Nueva DATA en runtime?

Esta funcion de Harbour añade una data a un objeto: __objAddData( <oObject>, <cDataName> ) --> oObject Muchas gracias, no es exacatamente lo que quería pero me servirá: FUNCTION uAddDataInObj( oObject, cDataName, uElvalor ) __objAddData( ...
by FiveWiDi
Thu Aug 26, 2010 11:49 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Nueva DATA en runtime?
Replies: 4
Views: 489

Re: Nueva DATA en runtime?

Esta funcion de Harbour añade una data a un objeto:

__objAddData( <oObject>, <cDataName> ) --> oObject
by SantaCroya
Thu Aug 26, 2010 11:25 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Nueva DATA en runtime?
Replies: 4
Views: 489

Re: añadir una data a una class

Patricio,

Esta es la forma sencilla:

__objAddData( oObject, cSymbol, nScope, lPersistent, lCase )

Code: Select all  Expand view

myVar := pApp():New()
__objAddData( myVar, "Z")
 


Saludos,

Andres Reyes
by andresreyes_mzt
Mon Jul 19, 2010 3:46 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: añadir una data a una class
Replies: 2
Views: 443

Re: Is it still required to destroy Font object ?

Otto,

No, you are just creating an alias for the same font object.

To create a copy of an object:

oNew := oClone( oObject )

James
by James Bott
Tue Jan 05, 2010 12:07 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Is it still required to destroy Font object ?
Replies: 10
Views: 1885

Advice needed

... to which object the window refers to. My class stores the alias name of the browse and i was hoping to reference this in the action of the menu (oObject:cAlias->TICKET_NBR) but i don't know how to reference the Object that is selected. Any help will be appreciated Pete
by PeterHarmes
Tue Jun 23, 2009 1:28 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Advice needed
Replies: 9
Views: 1364

Re: DATA para programador

... Carlos tambien puedes añadirle Datas nuevos (tanto en Harbour como xHarbour). Add a DATA to an already existing class Syntax __objAddData( <oObject>, <cDataName> ) --> oObject Arguments <oObject> is the object to work on. <cDataName> is the symbol name of the new ...
by FiveWiDi
Fri Jan 30, 2009 9:31 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: DATA para programador
Replies: 9
Views: 2117

Re: DATA para programador

... Carlos tambien puedes añadirle Datas nuevos (tanto en Harbour como xHarbour). Add a DATA to an already existing class Syntax __objAddData( <oObject>, <cDataName> ) --> oObject Arguments <oObject> is the object to work on. <cDataName> is the symbol name of the new ...
by Biel EA6DD
Fri Jan 30, 2009 5:14 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: DATA para programador
Replies: 9
Views: 2117

Re: Explore Object's Properties and Methods

Anser, You can use __ClassSel( oObject:ClassH ) to retrieve an array with all DATA and METHOD names. If a name exists with an underscore at the beginning, then it is a DATA. Here you have an example to retrieve all DATA names: from FWH\source\function\odata.prg ...
by Antonio Linares
Fri Jan 23, 2009 7:26 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Explore Object's Properties and Methods
Replies: 3
Views: 592

How to Destroy Objects created using CreateObject()

... the objects oConnection:End() oConnection:=NIL oRecSet:End() oRecSet:=NIL I would like to know whether the oObject:End() followed by oObject:=NIL is the right method or not. Or is there any other way to do the same Regards Anser
by anserkk
Mon Dec 01, 2008 6:10 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to Destroy Objects created using CreateObject()
Replies: 4
Views: 768

... de esa forma. Pero uno siempre busca hacer las cosas mas dificiles :D Pero estudiando mas los objetos existe una funcion __objModMethod( oObject, cSymbol, nFuncPrt ) que reemplaza los punteros de las funciones de los methodos.. se podria utilizar el siguiente codigo para poder simular ...
by RenOmaS
Wed Aug 06, 2008 8:51 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Objects y la Herencia Multiple, como?
Replies: 12
Views: 3194

is this what you mean ?

oObject:hObj
by Antonio Linares
Fri Jul 11, 2008 7:10 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to get the handle of object
Replies: 2
Views: 564

How to get the handle of object

How to get the handle of object create by ToleAuto():new(XXX)

for example :

oObject := TOleAuto():New(xxx)

How to get the handel of oObject
by dixonchu
Fri Jul 11, 2008 2:58 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to get the handle of object
Replies: 2
Views: 564

... means that you have to have different load and save methods for each situation. This violates the polymorphism rule of OOP. You can't just call oObject:load() you have to use oObject:load1(), oObject:load2(), etc. depending on the situation. So you can't do generic things like pass any object ...
by James Bott
Mon Apr 14, 2008 12:01 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: A Question Abot DIALOGs
Replies: 45
Views: 12881

... means that you have to have different load and save methods for each situation. This violates the polymorphism rule of OOP. You can't just call oObject:load() you have to use oObject:load1(), oObject:load2(), etc. depending on the situation. So you can't do generic things like pass any object ...
by xProgrammer
Mon Apr 14, 2008 8:42 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: A Question Abot DIALOGs
Replies: 45
Views: 12881
PreviousNext

Return to advanced search