Hi,
I need to check if the value of some controls (get, combobox..) in a folder has changed in order to request a confirm to the customer before exit.
Due the outlook interface I am using the customer can loose the data simply selecting another record so a confirm exit is needed.
See image at www.softwarexp.co.uk/beta/sample.jpg
I made the following routine to check it that providing the oFld as parameter will scan all GET controls inside and check the ::oGet:Changed() value.
Function CheckChanged(oFld)
local aArray,i,n,nPrompts,lChanged
lChanged:=.f.
nPrompts:=len(oFld:aPrompts)
for n:=1 to nPrompts
aArray:=oFld:aDialogs[n]:aControls
for i:=1 to len(aArray)
if oFld:aDialogs[n]:aControls[i]:Classname="TGET"
if oFld:aDialogs[n]:aControls[i]:oGet:Changed()
lChanged:=.t. && has changed
exit
endif
endif
next
next
return(lChanged)
The problem is that I only can check changes in GET controls but I need to check the combobox and tcbrowse also.
Any ideas to make this ? As I know the ::Changed() data is only applied on GET controls.
Thanks iin advance.