FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Get Numeric
Posts: 115
Joined: Wed Oct 26, 2005 02:38 PM
Get Numeric
Posted: Mon Mar 02, 2020 01:02 AM

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
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Get Numeric
Posted: Mon Mar 02, 2020 04:01 AM
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
Posts: 115
Joined: Wed Oct 26, 2005 02:38 PM
Re: Get Numeric
Posted: Mon Mar 02, 2020 10:31 AM

Thanks for the reply, I will check.

Christiano Augusto Silveira
christiano.silveira@gmail.com

MaxxTech Soluções em TI
http://www.maxxtech.com.br
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: Get Numeric
Posted: Tue Mar 03, 2020 08:16 AM
@ 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
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Get Numeric
Posted: Tue Mar 03, 2020 08:28 AM

Use RIGHTTOLEFT.
Please follow the syntax in fivewin.ch

Regards



G. N. Rao.

Hyderabad, India

Continue the discussion