FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Problem with a get
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Problem with a get
Posted: 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 ###.##



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 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: Problem with a get
Posted: Tue Apr 11, 2023 03:10 PM

Use picture "@E 999.99"

Regards



G. N. Rao.

Hyderabad, India
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: Problem with a get
Posted: Tue Apr 11, 2023 04: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"
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: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: Problem with a get
Posted: 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 (fw): Select all Collapse
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 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

Continue the discussion