Transform doubt

Transform doubt

Postby wartiaga » Sun Jan 28, 2024 4:53 pm

Hi,

I have a numeric var with content 14,000 How can I transform this value into 14.000,000?
Thanks in advance.
wartiaga
 
Posts: 210
Joined: Wed May 25, 2016 1:04 am

Re: Transform doubt

Postby paquitohm » Sun Jan 28, 2024 5:20 pm

Try so:

Code: Select all  Expand view
nVar:= 14000
cVar:= Transform(nVar, "@E 999,999.999")


Regards
paquitohm
 
Posts: 257
Joined: Fri Jan 14, 2022 8:37 am

Re: Transform doubt

Postby wartiaga » Sun Jan 28, 2024 9:23 pm

paquitohm wrote:Try so:

Code: Select all  Expand view
nVar:= 14000
cVar:= Transform(nVar, "@E 999,999.999")


Regards


Thanks, but in this case cVar type change to caracter.
wartiaga
 
Posts: 210
Joined: Wed May 25, 2016 1:04 am


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot], nageswaragunupudi and 57 guests