This is not necessary.
You can do this using FWNumFormat() and NUMPICT( nLen, nDec, ... )
Code: Select all
function temptest()
local cPic1, cPic2
local nVal := 1234567.89
FWNumFormat( "E", .t. )
cPic1 := NUMPICT( 10, 2 )
cPic2 := NUMPICT( 10, 2, nil, nil, nil, .t. )
XBROWSER { { cPic1, nVal, cPic2, nVal } } TITLE "EUROPEN" SETUP ( ;
oBrw:cEditPictures := { nil, cPic1, nil, cPic2 }, ;
oBrw:cHeaders := { "PIC1", "VAL1", "PIC2", "VAL2" } )
FWNumFormat( "B", .t. )
cPic1 := NUMPICT( 10, 2 )
cPic2 := NUMPICT( 10, 2, nil, nil, nil, .t. )
XBROWSER { { cPic1, nVal, cPic2, nVal } } TITLE "BRITISH" SETUP ( ;
oBrw:cEditPictures := { nil, cPic1, nil, cPic2 }, ;
oBrw:cHeaders := { "PIC1", "VAL1", "PIC2", "VAL2" } )
FWNumFormat( "A", .t. )
cPic1 := NUMPICT( 10, 2 )
cPic2 := NUMPICT( 10, 2, nil, nil, nil, .t. )
XBROWSER { { cPic1, nVal, cPic2, nVal } } TITLE "AMERICAN" SETUP ( ;
oBrw:cEditPictures := { nil, cPic1, nil, cPic2 }, ;
oBrw:cHeaders := { "PIC1", "VAL1", "PIC2", "VAL2" } )
FWNumFormat( "I", .t. )
cPic1 := NUMPICT( 10, 2 )
cPic2 := NUMPICT( 10, 2, nil, nil, nil, .t. )
XBROWSER { { cPic1, nVal, cPic2, nVal } } TITLE "INDIAN" SETUP ( ;
oBrw:cEditPictures := { nil, cPic1, nil, cPic2 }, ;
oBrw:cHeaders := { "PIC1", "VAL1", "PIC2", "VAL2" } )
FWNumFormat( "A", .t., nil, HB_UTF8CHR( 0x20b1 ) )
cPic1 := NUMPICT( 10, 2 )
cPic2 := NUMPICT( 10, 2, nil, nil, nil, .t. )
XBROWSER { { cPic1, nVal, cPic2, nVal } } TITLE "PHILIPPINES" SETUP ( ;
oBrw:cEditPictures := { nil, cPic1, nil, cPic2 }, ;
oBrw:cHeaders := { "PIC1", "VAL1", "PIC2", "VAL2" } )
FWNumFormat( "A", .t., nil, HB_UTF8CHR( 0x0E3F ) )
cPic1 := NUMPICT( 10, 2 )
cPic2 := NUMPICT( 10, 2, nil, nil, nil, .t. )
XBROWSER { { cPic1, nVal, cPic2, nVal } } TITLE "THAILAND" SETUP ( ;
oBrw:cEditPictures := { nil, cPic1, nil, cPic2 }, ;
oBrw:cHeaders := { "PIC1", "VAL1", "PIC2", "VAL2" } )
return nil