Dear friends,
I have problem with this combobox
I wish jump the user to insert aGet[7] if aGet[6]:nat=1 or jump to aGet[8] if aGet[6]:nat=2
How I can make it ?
@ 80, 75 COMBOBOX aGet[6] VAR cpermesso ITEMS aTipo OF oDlg SIZE 50, 12 PIXEL FONT oFont ;
ON CHANGE (corae:=SPACE(5), corau:=SPACE(5),iif(aGet[6]:nat=1,( aGet[7]:REFRESH(),aGet[7]:setFocus()),;
( aGet[8]:REFRESH(),aGet[8]:setFocus())) ) UPDATE
@ 96, 10 SAY "Ora di entrata :" OF oDlg SIZE 43, 8 PIXEL FONT oFont
@ 94, 75 GET aGet[7] VAR corae OF oDlg SIZE 25, 12 PIXEL FONT oFont when aGet[6]:nat=1 UPDATE
@ 110, 10 SAY "Ora di uscita :" OF oDlg SIZE 40, 8 PIXEL FONT oFont
@ 108, 75 GET aGet[8] VAR corau OF oDlg SIZE 25, 12 PIXEL FONT oFont when aGet[6]:nat=2 UPDATE
I tried also with
@ 80, 75 COMBOBOX aGet[6] VAR cpermesso ITEMS aTipo OF oDlg SIZE 50, 12 PIXEL FONT oFont ;
ON CHANGE (iif(aGet[6]:nat=1, aGet[6]:oJump := aGet[7], aGet[6]:oJump := aGet[8] ) )