Get Numeric

Get Numeric

Postby ctoas » Mon Mar 02, 2020 1: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
User avatar
ctoas
 
Posts: 115
Joined: Wed Oct 26, 2005 2:38 pm
Location: São Paulo - Brasil

Re: Get Numeric

Postby nageswaragunupudi » Mon Mar 02, 2020 4: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
User avatar
nageswaragunupudi
 
Posts: 10306
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Get Numeric

Postby ctoas » 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
User avatar
ctoas
 
Posts: 115
Joined: Wed Oct 26, 2005 2:38 pm
Location: São Paulo - Brasil

Re: Get Numeric

Postby Silvio.Falconi » Tue Mar 03, 2020 8: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 November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 6848
Joined: Thu Oct 18, 2012 7:17 pm

Re: Get Numeric

Postby nageswaragunupudi » Tue Mar 03, 2020 8:28 am

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

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


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 59 guests