Page 1 of 1

Get Numeric

Posted: Mon Mar 02, 2020 1:02 am
by ctoas
Hello

Could you tell me if it is possible to enter numerical data in a get from right to left as in a calculator?

I already scanned the posts and found nothing.

Thanks

Re: Get Numeric

Posted: Mon Mar 02, 2020 4:01 am
by nageswaragunupudi
Yes.
Use the clause "RIGHTTOLEFT" while defining the Get. This works from FWG18.04 onwards.
Please check the command for GET in fivewin.ch.

This is from whatsnew.txt of FWH1804:
- New clause RIHGTTOLEFT. Applies to numeric gets only. When specified, formatted number
is displayed right aligned, even during edit. Digits entered are inserted at the right
most position and the text shifted to the left. Delete key or back key removes the
last digit and moves the remaining text to the right.

Re: Get Numeric

Posted: Mon Mar 02, 2020 10:31 am
by ctoas
Thanks for the reply, I will check.

Re: Get Numeric

Posted: Tue Mar 03, 2020 8:16 am
by Silvio.Falconi
@ 9,180 GET oNum2 VAR nNumTO SIZE 150,75 RIHGTTOLEFT PIXEL OF oGr PICTURE "999" FONT oFontBigNum

give me an error

test.prg(56) Error E0030 Syntax error "syntax error at '@'"

because there is a error also on whatsnew.txt file

RIGHTTOLEFT instead of RIHGTTOLEFT

Re: Get Numeric

Posted: Tue Mar 03, 2020 8:28 am
by nageswaragunupudi
Use RIGHTTOLEFT.
Please follow the syntax in fivewin.ch