FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour Sr. Antonio - Porque isso não funciona?
Posts: 1286
Joined: Mon Feb 25, 2008 02:54 PM

Sr. Antonio - Porque isso não funciona?

Posted: Wed Sep 30, 2009 11:06 AM

Sr. Antonio,

Assim funciona:

define dialog odlg resource "LOGIN"

redefine say prompt "TESTE" id 4000 of odlg

activate dialog odlg centered

Assim não funciona:

define dialog odlg resource "LOGIN"
activate dialog odlg on init(carrega(odlg))

function carrega(odlg)
redefine say prompt "TESTE" id 4000 of odlg
return(.t.)

ubiratanmga@gmail.com

FWH24.04
BCC7.3
HARBOUR3.2
xMate
Pelles´C
TDolphin
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

Re: Sr. Antonio - Porque isso não funciona?

Posted: Thu Oct 01, 2009 11:50 AM

SGS,

You can not REDEFINE a control from the ON INIT clause of the DIALOG.

The ON INIT clause is evaluated once the dialog has been already created. If you want to add some controls from the ON INIT then use @ ..., ... SAY ...

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1286
Joined: Mon Feb 25, 2008 02:54 PM

Re: Sr. Antonio - Porque isso não funciona?

Posted: Thu Oct 01, 2009 01:21 PM

Obrigado Sr. Antonio

ubiratanmga@gmail.com

FWH24.04
BCC7.3
HARBOUR3.2
xMate
Pelles´C
TDolphin

Continue the discussion