- Code: Select all Expand view
#include "Fivewin.ch"
FUNCTION MAIN()
LOCAL oDlg
LOCAL nVar := 0
DEFINE DIALOG oDlg
@ 0, 0 GET nVar;
PICTURE "@EZ 999,999.99";
RIGHT
ACTIVATE DIALOG oDlg;
CENTER
RETURN NIL
EMG
#include "Fivewin.ch"
FUNCTION MAIN()
LOCAL oDlg
LOCAL nVar := 0
DEFINE DIALOG oDlg
@ 0, 0 GET nVar;
PICTURE "@EZ 999,999.99";
RIGHT
ACTIVATE DIALOG oDlg;
CENTER
RETURN NIL
FUNCTION MAIN()
LOCAL GetList := {}
LOCAL nVar1 := 0
LOCAL nVar2 := 0
CLS
@ 10, 10 GET nVar1;
PICTURE "@EZ 999,999.99";
WHEN ( GetList[ 1 ]:Picture := "@EZ 999999.99", .T. );
VALID ( GetList[ 1 ]:Picture := "@EZ 999,999.99", .T. )
@ 12, 10 GET nVar2;
PICTURE "@EZ 999,999.99"
READ
RETURN NIL
Nop wrote:Enrico, this is after or before this entry:
2007-01-07 16:45 UTC-0300 Eduardo Fernandes <modalsist@yahoo.com.br>
258 * source/rtl/tget.prg
259 ! fixed parsepict() method to avoid replacing commas by spaces, in
260 pictures like @Z 99,999.99.
261 Adjusted get len for negative numbers, when not exist picture on get.
#include "Inkey.ch"
FUNCTION MAIN()
LOCAL GetList := {}
LOCAL nVar := 123.45
SETKEY( K_F2, { || GetList[ 1 ]:ToDecPos() } )
CLS
@ 10, 10 GET nVar;
PICTURE "@E 999.99"
READ
RETURN NIL
if ::oGet:Type == "N" .and. ;
( Chr( nKey ) == "." .or. Chr( nKey ) == "," )
if ::oGet:Clear // EMG
::oGet:DelEnd() // EMG
endif // EMG
::oGet:ToDecPos()
else
Antonio Linares wrote:Enrico,
Does your change work fine with Harbour too ? thanks
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: SantaCroya and 46 guests