Error in MAcro XHARBOUR

Error in MAcro XHARBOUR

Postby mauricioajordao » Sat Mar 04, 2006 12:57 am

Dear My Friend

Error in MACRO....


For j = 1 to len(::fields)
mVar = "::"+::fields[j]
value = ::ALIAS:Fields( ::fields[j] ):Value
msginfo(mvar,"1")
&mvar = value -> Here Abort Program
msginfo(mvar,"2")
Next


Some People Knows AS Solution this problem


Thanks Everybody...
mauricioajordao
 
Posts: 78
Joined: Fri Dec 02, 2005 6:55 pm
Location: brazil

Postby R.F. » Sat Mar 04, 2006 5:55 am

Correct me if I'm wrong, but as far as I know.... YOU CANNOT USE MACROS WITH DATAS OR METHODS IN CLASSES !!!!!!

You'd better use a codeblock instead.
Saludos
R.F.
R.F.
 
Posts: 840
Joined: Thu Oct 13, 2005 7:05 pm

Postby Antonio Linares » Sat Mar 04, 2006 6:06 am

Mauricio,

Use these functions:
Code: Select all  Expand view
__ObjSendMsg( <oObject>, <cDataName> ) --> <uValue>

__ObjSendMsg( <oObject>, "_" + <cDataName>, <uValue> )

The first call is to retrieve a value, the second call is to set it.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42076
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby mauricioajordao » Sat Mar 04, 2006 10:07 am

It´s Very Good , HaD Your Help....


Thanks Antonio...
mauricioajordao
 
Posts: 78
Joined: Fri Dec 02, 2005 6:55 pm
Location: brazil


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 77 guests