Problem with a get

Problem with a get

Postby Silvio.Falconi » Tue Apr 11, 2023 10:12 am

I have to insert a measure 5 digit 2 dec

sample 300.12 or 0.12

local nTop := 0

I take the value not from a dbf but fron an array

@ nRow, 20 GET aGet[6] VAR nTop OF oModulo SIZE 50, 20 PIXEL FONT oFont UPDATE

I wish no insert PICTURE "999.99" because on dialog I have 000.00
I with not show any 0 on get control I tried also with ###.##

Image

I saw the samples testgetn.prg testgetr.prg on folder samples of fwh i have another problem


I explain you I have

@ nRow, 20 GET aGet[6] VAR nTop OF oModulo SIZE 50, 20 PIXEL FONT oFont PICTURE "999,99" UPDATE RIGHT
@ nRow, 82 GET aGet[7] VAR nLeft OF oModulo SIZE 50, 20 PIXEL FONT oFont PICTURE "999,99" UPDATE RIGHT

if I digit 0,1 it write 0 on first get and 1 on second get

but I need to wriyte 0,1 on first get


How I can resolve ?
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: 7033
Joined: Thu Oct 18, 2012 7:17 pm

Re: Problem with a get

Postby nageswaragunupudi » Tue Apr 11, 2023 3:10 pm

Use picture "@E 999.99"
Regards

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

Re: Problem with a get

Postby Silvio.Falconi » Tue Apr 11, 2023 4:40 pm

nageswaragunupudi wrote:Use picture "@E 999.99"


it run as U can see here



But I wish show only a zero and nont "0.00"
Last edited by Silvio.Falconi on Thu Jan 18, 2024 8:35 am, edited 1 time in total.
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: 7033
Joined: Thu Oct 18, 2012 7:17 pm

Re: Problem with a get

Postby Silvio.Falconi » Fri Apr 14, 2023 12:36 pm

nageswaragunupudi wrote:Use picture "@E 999.99"



Found the good solution

PICTURE "@Z 999.99"

on guide

Code: Select all  Expand view

B Formats numbers left-justified
C Adds CR (credit) after positive numbers
D Formats dates in SET DATE format
E Formats dates and numbers in British format
L Pads numbers with zeros instead of blank spaces
R Nontemplate characters are inserted
X Adds DB (debit) after negative numbers
Z Formats zeros as blanks
( Encloses negative numbers in parentheses
! Converts alphabetic characters to uppercase
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: 7033
Joined: Thu Oct 18, 2012 7:17 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 40 guests