Hello All,
I have few Redefine Get with Valid clause on a Dialog. User can directly click on Ok button and skip all the valid clause ?
How can I prevent this ?
TIA
Milan.
Hello All,
I have few Redefine Get with Valid clause on a Dialog. User can directly click on Ok button and skip all the valid clause ?
How can I prevent this ?
TIA
Milan.
Hi Mr.Mehta
Do not use CANCEL clause with the BUTTON if you want all gets to be validated and vice-versa in case GETs are not be validated, when any
BUTTON is pressed/clicked.
You can make a construction as :
LOKAL lok := .T.
Aeval(oDlg:aControls,{|j|lok := lok .AND. EVAL(j:bValid)})
IF lOk is .F. , at least one valid clausule hes returned .F.
Frank
Frank Demont wrote:You can make a construction as :
LOKAL lok := .T.
Aeval(oDlg:aControls,{|j|lok := lok .AND. EVAL(j:bValid)})
IF lOk is .F. , at least one valid clausule hes returned .F.
Frank
local lOk := .t.
AEval( oDlg:aControls, {| j | lOk := lOk .and. If( j:bValid == nil, .t., Eval( j:bValid ) ) } )