MsgGet() function

MsgGet() function

Postby FiveWiDi » Mon Apr 27, 2020 6:08 am

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

Thanks
Un Saludo
Carlos G.

FiveWin 24.02 + Harbour 3.2.0dev (r2403071241), BCC 7.7 Windows 10
FiveWiDi
 
Posts: 1190
Joined: Mon Oct 10, 2005 2:38 pm

Re: MsgGet() function

Postby ukoenig » 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
..
..
Image

best regards
Uwe :D
Last edited by ukoenig on Mon Apr 27, 2020 6:22 pm, edited 11 times in total.
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.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: MsgGet() function

Postby nageswaragunupudi » Mon Apr 27, 2020 11:31 am

Assuming we want 4 decimal places
Code: Select all  Expand view  RUN

n := 0.0000
msgGet( "title", "message", @n )
? n
 
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10653
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: MsgGet() function

Postby FiveWiDi » Mon Apr 27, 2020 4:53 pm

nageswaragunupudi wrote:Assuming we want 4 decimal places
Code: Select all  Expand view  RUN

n := 0.0000
msgGet( "title", "message", @n )
? n
 


Fantastic!!!!
Thank you!!!
Un Saludo
Carlos G.

FiveWin 24.02 + Harbour 3.2.0dev (r2403071241), BCC 7.7 Windows 10
FiveWiDi
 
Posts: 1190
Joined: Mon Oct 10, 2005 2:38 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot], nageswaragunupudi and 53 guests