on field I set
{ "DimX" ,"N", 9,1 } ,;
Please see this small test
- Code: Select all Expand view RUN
- #include 'fivewin.ch'
function Main()
local oDlg, oGet, oBtn
local lTest := .t.
local cPicture := "@E #######.#"
local nDimx:= 0, nDimy:= 0, nDimz:= 0
SET _3DLOOK ON
DEFINE DIALOG oDlg TITLE "A simple GET" ;
FROM 2, 2 TO 11, 40
@ 1.5, 2 GET oGet VAR nDimX SIZE 120, 13 OF oDlg RIGHT PICTURE cPicture
@ 2.5, 4 BUTTON oBtn PROMPT "&Ok" SIZE 45, 12 OF oDlg ;
ACTION ( oDlg:End(), MsgInfo( nDimX ) ) DEFAULT
@ 2.5, 15 BUTTON "&Cancel" SIZE 45, 12 OF oDlg ;
ACTION ( oDlg:End(), MsgInfo( nDimx ) )
ACTIVATE DIALOG oDlg CENTERED
return nil
the test run ok and It is the picture I wish
only at init I with the get ( empty) must be 0 instead of 0.0
I tried also with FWNumFormat( "E", .t. )
How I can resolve ?