Hi Friends ,
How ADD DATA In CLass ?
CLASS TESTE
DATA XXXX -> ADD class in CREATE class.
METHOD NEW(X,Y)
ENDCLASS
METHOD new(x,Y) CLASS TESTE
*** HOW ADD DATA THIS CLASS IS HERE ****
rETURN(NIL)
thanks
...
#include "hboo.ch"
METHOD new(x,Y) CLASS TESTE
static lAdded := .f.
ASize( Self, Len( Self ) + 1 ) // add one more element for the new DATA
if ! lAdded
__clsAddMsg( ::ClassH, "Another", Len( Self ), HB_OO_MSG_DATA )
__clsAddMsg( ::ClassH, "_" + "Another", Len( Self ), HB_OO_MSG_DATA )
lAdded = .t.
endif
...
return Self
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Google [Bot] and 102 guests