Page 1 of 1
MsgGet() function
Posted: Mon Apr 27, 2020 6:08 am
by FiveWiDi
MsgGet() function for a number with decimals?
How?
Thanks
Re: MsgGet() function
Posted: Mon Apr 27, 2020 10:17 am
by ukoenig
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
Re: MsgGet() function
Posted: Mon Apr 27, 2020 11:31 am
by nageswaragunupudi
Assuming we want 4 decimal places
Code: Select all
n := 0.0000
msgGet( "title", "message", @n )
? n
Re: MsgGet() function
Posted: Mon Apr 27, 2020 4:53 pm
by FiveWiDi
nageswaragunupudi wrote:Assuming we want 4 decimal places
Code: Select all
n := 0.0000
msgGet( "title", "message", @n )
? n
Fantastic!!!!
Thank you!!!