Page 1 of 1

simulate read of a get

Posted: Tue May 14, 2024 7:34 am
by Silvio.Falconi
I wish simulate a read for a get

the end user must insert the data before to continue
that is, the procedure must wait for the user to enter the data before proceeding

sample

@ 1,10 get aGet[1[ VAR nVar SIZE 100,20 of oDlg

I tryed with

VALID If( nvar=0, ( MsgInfo( "cannot be zero" ), .f. ) ,)

but not run ok

on this forum not found any sample or test can help me

Re: simulate read of a get

Posted: Tue May 14, 2024 10:50 am
by Antonio Linares
There must be two controls on a dialog so the VALIDation of the GET is fired

Place a GET and a BUTTON DEFAULT

Re: simulate read of a get

Posted: Wed May 15, 2024 7:35 am
by Silvio.Falconi
Antonio Linares wrote:There must be two controls on a dialog so the VALIDation of the GET is fired

Place a GET and a BUTTON DEFAULT
as I showed you in private, the tget is placed in the dialog where the xbrowse is and there is no button