FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour Ayuda Urgente
Posts: 14
Joined: Tue Apr 08, 2008 09:17 PM
Ayuda Urgente
Posted: Tue Aug 12, 2008 03:32 AM

Amigos:

No puedo desenrredar este lio, necesito de su ayuda:

La idea es la siguiente: Revisa(), si vuelve .T. traera la variable oPcion="S"o "N", si es "N" que entregue el focus a oBtn[2], de lo contrario a TgGet[2], pero si revisa() es .F., entonces el focus se entrega a TgGet[1].

Desde ya muy agradecido.
Rafael.

Redefine BTNGET TgGet[01] Var cCod Id 104 Of oDlg Update Picture "@!" Font oFont2 COLOR RGB(160,0,0), RGB(0,255,255);
Valid Empty(cCod).or. if (revisa(@cCod,TgGet,oSay,@Arre1,@Arr2,@Opcion),;
(if (oPcion="N"),;
(oBtn[2]:SetFocus(),oDlg:update(),.t.),;
(TgGet[01]:Refresh(),TgGet[2]:SetFocus(),oDlg:update(),.t.)),;
(TgGet[01]:Refresh(),TgGet[1]:SetFocus(),.f.))})

Me arroja este error:
Error E0030 Syntax error: "syntax error at 'BTNGET'"

Fwh 704 xHarbour

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Ayuda Urgente
Posted: Tue Aug 12, 2008 07:17 AM

Es preferible que desde el VALID llames a una funci贸n y que todo ese c贸digo lo pongas dentro de la funci贸n.

Posiblemente tengas un par茅ntesis de m谩s 贸 de menos, pero usando una funci贸n te ser谩 m谩s f谩cil localizar el error

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion