Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #12547

Re: Quickest way to show decimal seperator in SLE

From "Jamal" <nospam@example.com>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: Quickest way to show decimal seperator in SLE
Date 2019-06-25 13:42 -0400
Organization Aioe.org NNTP Server
Message-ID <qetmdk$1af9$1@gioia.aioe.org> (permalink)
References <r1r3hepj1a7bbklfdeu8iquj4rvmu1ji58@4ax.com>

Show all headers | View raw


Dick,

You need to use the @R picture function. The following example shows how 
it's done.

local n as float

// EU users
? "EU"
SetDecimal(2)
SetDecimalSep(Asc(","))
SetThousandSep(Asc("."))

n := 987654.12

? Transform(n, "@R 999,999,999.99")      // 987.654,12

// US Users
? "US"
SetDecimal(2)
SetDecimalSep(Asc("."))
SetThousandSep(Asc(","))

n := 987654.12

? Transform(n, "@R 999,999,999.99")     //  987,654.12

wait


Jamal

"D.J.W. van Kooten"  wrote in message 
news:r1r3hepj1a7bbklfdeu8iquj4rvmu1ji58@4ax.com...

I actually never had this question, to my surprise.

A client asked me to show a decimal seperator in a numeric SLE, like
this for European users:

100.000,25

or USA etc:

100,000.25

instead of 100000,25 (100000.25).

What is the quickest way to achieve this?

Probably RightSLE (which I never used so far) ? Or can I do this
without external libs?

Dick 

Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Quickest way to show decimal seperator in SLE D.J.W. van Kooten <vankooten@removethis.ic2.com> - 2019-06-25 11:44 +0200
  Re: Quickest way to show decimal seperator in SLE Johan Nel <johan.nel@xsinet.co.za> - 2019-06-25 13:18 +0200
    Re: Quickest way to show decimal seperator in SLE D.J.W. van Kooten <vankooten@removethis.ic2.com> - 2019-06-25 17:01 +0200
  Re: Quickest way to show decimal seperator in SLE "Jamal" <nospam@example.com> - 2019-06-25 13:42 -0400
    Re: Quickest way to show decimal seperator in SLE D.J.W. van Kooten <vankooten@removethis.ic2.com> - 2019-06-25 23:24 +0200
      Re: Quickest way to show decimal seperator in SLE Johan Nel <johan.nel@xsinet.co.za> - 2019-06-26 08:37 +0200
        Re: Quickest way to show decimal seperator in SLE D.J.W. van Kooten <vankooten@removethis.ic2.com> - 2019-06-26 12:40 +0200

csiph-web