Page 1 of 1

Error in MAcro XHARBOUR

PostPosted: Sat Mar 04, 2006 12:57 am
by mauricioajordao
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...

PostPosted: Sat Mar 04, 2006 5:55 am
by R.F.
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.

PostPosted: Sat Mar 04, 2006 6:06 am
by Antonio Linares
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.

PostPosted: Sat Mar 04, 2006 10:07 am
by mauricioajordao
It´s Very Good , HaD Your Help....


Thanks Antonio...