Get Numeric

Post Reply
User avatar
ctoas
Posts: 103
Joined: Wed Oct 26, 2005 2:38 pm
Location: São Paulo - Brasil
Contact:

Get Numeric

Post 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
Christiano Augusto Silveira
christiano.silveira@gmail.com

MaxxTech Soluções em TI
http://www.maxxtech.com.br
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: Get Numeric

Post 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.
Regards

G. N. Rao.
Hyderabad, India
User avatar
ctoas
Posts: 103
Joined: Wed Oct 26, 2005 2:38 pm
Location: São Paulo - Brasil
Contact:

Re: Get Numeric

Post by ctoas »

Thanks for the reply, I will check.
Christiano Augusto Silveira
christiano.silveira@gmail.com

MaxxTech Soluções em TI
http://www.maxxtech.com.br
User avatar
Silvio.Falconi
Posts: 4956
Joined: Thu Oct 18, 2012 7:17 pm

Re: Get Numeric

Post 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
I use : FiveWin for Harbour August 2020 (Revision) - Harbour 3.2.0dev (r1712141320) - Bcc7.30 - xMate ver. 1.15.3 - PellesC
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: Get Numeric

Post by nageswaragunupudi »

Use RIGHTTOLEFT.
Please follow the syntax in fivewin.ch
Regards

G. N. Rao.
Hyderabad, India
Post Reply