FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour MsgGet() function
Posts: 1446
Joined: Mon Oct 10, 2005 02:38 PM
MsgGet() function
Posted: Mon Apr 27, 2020 06:08 AM

MsgGet() function for a number with decimals?
How?

Thanks

Un Saludo

Carlos G.



FiveWin 25.12 + Harbour 3.2.0dev (r2502110321), BCC 7.7 Windows 11 Home

Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: MsgGet() function
Posted: Mon Apr 27, 2020 10:17 AM
Did You try with sample :
testmsg.prg :-)

test-section ( add any value : text, numeric ...)
change the textvar to numeric

local cName := "Easily editing a string"
..
..
if MsgGet( "Please type your name",; // Title
"Your Name:",; // Label
@cName ) // A variable by reference
..
..


best regards
Uwe :-)
Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: MsgGet() function
Posted: Mon Apr 27, 2020 11:31 AM
Assuming we want 4 decimal places
Code (fw): Select all Collapse
n := 0.0000
msgGet( "title", "message", @n )
? n
Regards



G. N. Rao.

Hyderabad, India
Posts: 1446
Joined: Mon Oct 10, 2005 02:38 PM
Re: MsgGet() function
Posted: Mon Apr 27, 2020 04:53 PM
nageswaragunupudi wrote:Assuming we want 4 decimal places
Code (fw): Select all Collapse
n := 0.0000
msgGet( "title", "message", @n )
? n


Fantastic!!!!
Thank you!!!

Un Saludo

Carlos G.



FiveWin 25.12 + Harbour 3.2.0dev (r2502110321), BCC 7.7 Windows 11 Home

Continue the discussion