How's change negative number to bracket in TCBrowse/XBrowse?

How's change negative number to bracket in TCBrowse/XBrowse?

Postby richard-service » Wed Mar 01, 2017 8:44 am

Hi
As Title?
Ex.
-100,000 change to (100,000)
100,000 change to 100,000
Best Regards,

Richard

Harbour 3.2.0dev (r2402101027) => Borland C++ v7.7 32bit
MySQL v5.7 /ADS v10
Harbour 3.2.0dev (r2011030937) => Borland C++ v7.4 64bit
User avatar
richard-service
 
Posts: 765
Joined: Tue Oct 16, 2007 8:57 am
Location: New Taipei City, Taiwan

Re: How's change negative number to bracket in TCBrowse/XBrowse?

Postby Carlos Mora » Wed Mar 01, 2017 9:47 am

Hi,
I didn't tested but.. Have you used '@)' in the picture? I remember that the picture/transform ( function should do the trick.

Example from Clipper Guide:
Code: Select all  Expand view

@ 2, 1 SAY nNetLoss PICTURE "@)"
        // Result: (125.50)
 


Regardsj
Saludos
Carlos Mora
http://harbouradvisor.blogspot.com/
StackOverflow http://stackoverflow.com/users/549761/carlos-mora
“If you think education is expensive, try ignorance"
Carlos Mora
 
Posts: 988
Joined: Thu Nov 24, 2005 3:01 pm
Location: Madrid, España

Re: How's change negative number to bracket in TCBrowse/XBrowse?

Postby joseluisysturiz » Thu Mar 02, 2017 2:30 am

richard-service wrote:Hi
As Title?
Ex.
-100,000 change to (100,000)
100,000 change to 100,000


Saludos, -100.000 x (-1) = 100.000...saludos.. :shock:
Dios no está muerto...

Gracias a mi Dios ante todo!
User avatar
joseluisysturiz
 
Posts: 2064
Joined: Fri Jan 06, 2006 9:28 pm
Location: Guatire - Caracas - Venezuela

Re: How's change negative number to bracket in TCBrowse/XBrowse?

Postby Willi Quintana » Thu Mar 02, 2017 4:07 pm

Holas,,,

x := -1000.23

y := ABS(x)

? y

1000.23
User avatar
Willi Quintana
 
Posts: 1002
Joined: Sun Oct 09, 2005 10:41 pm
Location: Cusco - Perú

Re: How's change negative number to bracket in TCBrowse/XBrowse?

Postby richard-service » Thu Mar 02, 2017 4:42 pm

Hi Helper,
Thanks a lot for this.
I mean negative number replace to bracket.
Ex. -100,000 => I want to show (100,000)
-10 => I want to show (10)
1,000 => same as 1,000
Best Regards,

Richard

Harbour 3.2.0dev (r2402101027) => Borland C++ v7.7 32bit
MySQL v5.7 /ADS v10
Harbour 3.2.0dev (r2011030937) => Borland C++ v7.4 64bit
User avatar
richard-service
 
Posts: 765
Joined: Tue Oct 16, 2007 8:57 am
Location: New Taipei City, Taiwan

Re: How's change negative number to bracket in TCBrowse/XBrowse?

Postby kok joek hoa » Sat Mar 04, 2017 6:15 pm

Hi Richard,

Use :
picture '@( 9,999,999,999'

Regards,

Kok
kok joek hoa
 
Posts: 117
Joined: Tue Jan 03, 2006 6:18 pm

Re: How's change negative number to bracket in TCBrowse/XBrowse?

Postby richard-service » Sat Mar 04, 2017 11:45 pm

kok joek hoa wrote:Hi Richard,

Use :
picture '@( 9,999,999,999'

Regards,

Kok

Hi Kok
I will try it. Thanks a lot
Best Regards,

Richard

Harbour 3.2.0dev (r2402101027) => Borland C++ v7.7 32bit
MySQL v5.7 /ADS v10
Harbour 3.2.0dev (r2011030937) => Borland C++ v7.4 64bit
User avatar
richard-service
 
Posts: 765
Joined: Tue Oct 16, 2007 8:57 am
Location: New Taipei City, Taiwan


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 96 guests