Error in MAcro XHARBOUR

Post Reply
mauricioajordao
Posts: 78
Joined: Fri Dec 02, 2005 6:55 pm
Location: brazil

Error in MAcro XHARBOUR

Post 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...
R.F.
Posts: 840
Joined: Thu Oct 13, 2005 7:05 pm

Post 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.
Saludos
R.F.
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Mauricio,

Use these functions:

Code: Select all

 __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
mauricioajordao
Posts: 78
Joined: Fri Dec 02, 2005 6:55 pm
Location: brazil

Post by mauricioajordao »

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


Thanks Antonio...
Post Reply