refreshing on a get

refreshing on a get

Postby Silvio.Falconi » Wed Nov 07, 2012 4:41 pm

I have a strange error or I not remeber as refresh a numeric get control after I insert another get

I wish refresh the second get with the value of first get , any help please ?

the minimal test

Code: Select all  Expand view

#include "FiveWin.ch"
#include "constant.ch"
#include "Report.ch"

Function test()
   LOcal  oDlg
Local aGet[20]
Local nApimpneto:=0
Local nApimptotal:=0


   Local nBottom   := 26.9
   Local nRight    := 46
   Local nWidth :=  Max( nRight * DLG_CHARPIX_W, 180 )
   Local nHeight := nBottom * DLG_CHARPIX_H
   Local  oFont  := TFont():New( "Lucida Console", 0, 12,, )

 DEFINE DIALOG oDlg        ;
   TITLE "test refresh"   ;
   SIZE nWidth, nHeight  TRANSPARENT PIXEL              
     

  @ 92, 10 SAY "Importo:" OF oDlg SIZE 35, 8 PIXEL FONT oFont
  @ 90, 56 GET aGet[8] VAR nApimpneto  OF oDlg SIZE 40, 10 RIGHT PIXEL PICTURE  "@E999,999.99"  FONT oFont ;
                    ON CHANGE  (nApimptotal:= nApimpneto ,aGet[13]:refresh())



   @ 128, 10 SAY "Totale:" OF oDlg SIZE 35, 8 PIXEL FONT oFont
   @ 126, 56 GET aGet[13] VAR nApimptotal OF oDlg SIZE 40, 10 PIXEL PICTURE  "@E999,999.99" FONT oFont RIGHT   READONLY



ACTIVATE DIALOG oDlg

retu nil
 
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 6849
Joined: Thu Oct 18, 2012 7:17 pm

Re: refreshing on a get

Postby joseluisysturiz » Wed Nov 07, 2012 6:09 pm

Excuse, i dont speake english, try again use UPDATE en los GET...

REDEFINE GET aGet[2] VAR aVar[2] ID 102 OF oDlg UPDATE READONLY // NOMB.CLIENTE

saludos... :shock:
Dios no está muerto...

Gracias a mi Dios ante todo!
User avatar
joseluisysturiz
 
Posts: 2064
Joined: Fri Jan 06, 2006 9:28 pm
Location: Guatire - Caracas - Venezuela

Re: refreshing on a get

Postby Silvio.Falconi » Wed Nov 07, 2012 6:20 pm

NOT RUN OK
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 6849
Joined: Thu Oct 18, 2012 7:17 pm

Re: refreshing on a get

Postby Enrico Maria Giordano » Wed Nov 07, 2012 6:40 pm

Code: Select all  Expand view
ON CHANGE  (aGet[8]:Assign(),nApimptotal:= nApimpneto ,aGet[13]:refresh())


EMG
User avatar
Enrico Maria Giordano
 
Posts: 8372
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: refreshing on a get

Postby joseluisysturiz » Wed Nov 07, 2012 6:41 pm

Silvio, because you do not use the valid

@ 90, 56 GET aGet[8] VAR nApimpneto OF oDlg SIZE 40, 10 RIGHT PIXEL PICTURE "@E999,999.99" FONT oFont ;
valid( iif( nApimpneto > o, ( nApimptotal := nApimpneto, aGet[13]:refresh(), .t. ), .f. ) )

saludos... :shock:
Dios no está muerto...

Gracias a mi Dios ante todo!
User avatar
joseluisysturiz
 
Posts: 2064
Joined: Fri Jan 06, 2006 9:28 pm
Location: Guatire - Caracas - Venezuela

Re: refreshing on a get

Postby Silvio.Falconi » Wed Nov 07, 2012 7:18 pm

Enrico Maria Giordano wrote:
Code: Select all  Expand view
ON CHANGE  (aGet[8]:Assign(),nApimptotal:= nApimpneto ,aGet[13]:refresh())


EMG



Emg thanks run ok
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 6849
Joined: Thu Oct 18, 2012 7:17 pm

Re: refreshing on a get

Postby StefanHaupt » Thu Nov 08, 2012 8:13 am

Enrico,

aGet[8]:Assign()

what is this method for ?
kind regards
Stefan
StefanHaupt
 
Posts: 824
Joined: Thu Oct 13, 2005 7:39 am
Location: Germany

Re: refreshing on a get

Postby Enrico Maria Giordano » Thu Nov 08, 2012 9:23 am

It assigns what you see in the edit buffer to the GET variable.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8372
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: refreshing on a get

Postby StefanHaupt » Fri Nov 09, 2012 7:57 am

thanks
kind regards
Stefan
StefanHaupt
 
Posts: 824
Joined: Thu Oct 13, 2005 7:39 am
Location: Germany


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Eroni, Google [Bot] and 39 guests