Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Updating GETS in a GET DIALOG ???

Status
Not open for further replies.

sharok

Programmer
Jan 2, 2002
22
0
0
US
When you call a function from a GET statement in a GET DIALOG, how do you update all the GETS in that DIALOG when
the function returns.


Can somebody help?

Thanks
 
Hi Sharok

In order to update get individually you use
oGet:Refresh()

If you want to update all get in I engage in a dialog uses clausula UPDATE in each GET and with odlg:update() you update all get in a single step, for example:

DEFINE DIALOG oImpDlg RESOURCE "D_CARIMP" of oInv FONT oWnd:eek:Font

REDEFINE CHECKBOX oChkI1 VAR lColorPrn ID 105 OF oImpDlg;
UPDATE

REDEFINE GET oGETI2 VAR nVelC ID 107 OF oImpDlg;
PICTURE "999.9";
WHEN lColorPrn UPDATE

REDEFINE GET oGETI3 VAR nVelBN ID 109 OF oImpDlg;
PICTURE "999.9";
MESSAGE "Ingrese la Velocidad Maxima a B/N";
WHEN nTipo > 1 UPDATE

ACTIVATE DIALOG oImpDlg CENTERED

It uses oImpDlg:Update() to update all Dialog and the objects within.

If you have doubts and problems you warn to me

Greetings

Jesus Tarre
VENEZUELA
banner1.gif
 
Thanks Jesus,

Before I used oGet:refresh() and it was only updating my last GET item, also I was using UPDATE clause and
oDlg:update() separately and it was not working. I was doing wrong. But now I used UPDATE with oDlg:update() and
it worked nicely. Thank you for the help.



Sincerely;
Sharok
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top