I have a get where the final user insert a number but the get write only cr for step from 1 to 9
I not Know why I can insert only one CR on this GET
please compile this small test
- Code: Select all Expand view
#include "fivewin.ch"
Static ntotale,nSubTotale,nSconto
Static nAcconto, nDaSaldare
Function test()
Local aget:=array(10)
Local oBrowse:= nil
Local oSay[10]
ntotale := 0
nSubTotale := 0
nAcconto:= 0
nDaSaldare := 0
nSconto := 0
DEFINE DIALOG oDlg SIZE 300, 300 PIXEL
@ 10,5 SAY oSay[5] Prompt "Acconto :" OF oDlg PIXEL SIZE 70,20 TRANSPARENT
@ 10,75 GET aGet[7] VAR nAcconto SIZE 40,12 PIXEL OF oDlg PICTURE '@ €99,999.99' ;
ON CHANGE (aGet[7]:assign(),CalcoloTotali(oBrowse,aGet) )
@ 40,5 SAY oSay[6] Prompt "Da Saldare :" OF oDlg PIXEL SIZE 70,20 TRANSPARENT
@ 40,75 GET aGet[8] VAR nDaSaldare SIZE 40,12 PIXEL OF oDlg PICTURE '@ €99,999.99' READONLY
ACTIVATE DIALOG oDLG CENTERED
RETURN NIL
//------------------------------------------------------------------------------------------------//
Function CalcoloTotali(oBrowse,aGet)
Local n
nTotale:= 0
nSubtotale:= 0
nSubTotale:= 18.00 //only for test
nTotale:=nSubTotale-nSconto
nDaSaldare:=nTotale-nAcconto
aGet[7]:refresh() // acconto
aGet[8]:refresh() // da saldare
* oBrowse:Refresh()
* oBrowse:GoBottom()
return nil
How I can resolve ?