This code below have a 3 gets, all enabled in first moment
The first get have a valid calling a function and this one show a
message, set the variable lWhen2 with .F. (disabling the second
get) and returns .T.
But the cursor dont focus in the third get, it´s back to the first
please, try the code below and check if the problems realy exist
Code: Select all
#include "FiveWin.ch"
FUNCTION Test()
nCpo = 0
nCp2 = 15
cCp3 = SPACE(20)
lWhen1 = .T.
lWhen2 = .T.
lWhen3 = .T.
define dialog oDlg from 01,01 TO 25,50
@ 01,01 say 'I have a valid:' of oDlg
@ 01,10 get oCpo var nCpo pict '9999' of oDlg when lWhen1 valid xFunc()
@ 02,01 say 'I am enable for while:' of oDlg
@ 02,10 get oCp2 var nCp2 pict '99' of oDlg when lWhen2
@ 03,01 say 'I am enable forever:' of oDlg
@ 03,10 get oCp3 var cCp3 pict '@!' of oDlg when lWhen3
activate dialog oDlg center
RETURN
FUNCTION xFunc()
MSGINFO('Testing...')
lWhen2=.F.
oDlg:Aevalwhen()
SysRefresh()
RETURN .t.