harbour 3.0 support {||&("t1:a1+t1:a2/t1:a3") },&(t1:a1") ?

harbour 3.0 support {||&("t1:a1+t1:a2/t1:a3") },&(t1:a1") ?

Postby ShumingWang » Mon Jul 02, 2012 5:48 am

Hi,
Macro {||&("t1:a1+t1:a2/t1:a3") }, {||&(t1:a1) } ,&("t1:a1") error : variable t1 does not exist ,how to to these ?


// At last ,found the low level mistake : local variable can't be excuted in macro
{||macrofield("t1:a1+t1:a2/t1:a3",t1) }

function macrofield(cstr,t0)
private t1
t1:=t0
return &cstr

Harbour 3.0 +fwh
TKS!
Shuming Wang
Last edited by ShumingWang on Sun Jul 15, 2012 1:44 am, edited 5 times in total.
http://www.xtech2.top
Mobile:(86)13802729058
Email:100200651@qq.com
QQ:100200651
Weixin: qq100200651
ShumingWang
 
Posts: 465
Joined: Sun Oct 30, 2005 6:37 am
Location: Guangzhou(Canton),China

Re: How to &("t1:a1+t1:a2/t1:a3")

Postby Antonio Linares » Mon Jul 02, 2012 5:56 am

What error you get ?
regards, saludos

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

Re: How to &("t1:a1+t1:a2/t1:a3")

Postby ShumingWang » Mon Jul 02, 2012 6:06 am

Antonio,
xbrowse:
oCol:bStrData := {||&(ALLTRIM(odb3:cformula))}
// now odb3:cformala === "t1:a1"
run time error: vriable t1 does not exist
Regards !
Shuming Wang
http://www.xtech2.top
Mobile:(86)13802729058
Email:100200651@qq.com
QQ:100200651
Weixin: qq100200651
ShumingWang
 
Posts: 465
Joined: Sun Oct 30, 2005 6:37 am
Location: Guangzhou(Canton),China

Re: How to &("t1:a1+t1:a2/t1:a3")

Postby byte-one » Mon Jul 02, 2012 1:26 pm

Try oCol:bStrData := {||ALLTRIM(&(odb3:cformula))}
Regards,
Günther
---------------------------------
office@byte-one.com
User avatar
byte-one
 
Posts: 1048
Joined: Mon Oct 24, 2005 9:54 am
Location: Austria

Re: How to &("t1:a1+t1:a2/t1:a3")

Postby ShumingWang » Tue Jul 03, 2012 2:44 am

xbrowse:
1. oCol:bStrData := {||&("t1:a1")}
// or oCol:bStrData := {||&("t1:a1+t1:a2/t1:a3")}
run time error: vriable t1 does not exist

2. oCol:bStrData := {||t1:&("a1")}
runs OK!
http://www.xtech2.top
Mobile:(86)13802729058
Email:100200651@qq.com
QQ:100200651
Weixin: qq100200651
ShumingWang
 
Posts: 465
Joined: Sun Oct 30, 2005 6:37 am
Location: Guangzhou(Canton),China


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 117 guests