problemas con FWNumFormat

problemas con FWNumFormat

Postby horacio » Thu Jun 15, 2017 5:22 pm

Colegas, tengo un xbrowse donde quiero darle formato a los números, pero me altera algunas cadenas que tienen números. adjunto imagen

Sin FWNumFormat
Image

Con FWNumformat
Image

Alguna idea ? Muchas gracias
horacio
 
Posts: 1363
Joined: Wed Jun 21, 2006 12:39 am
Location: Capital Federal Argentina

Re: problemas con FWNumFormat

Postby nageswaragunupudi » Fri Jun 16, 2017 1:15 am

FWNumFormat() applies to numeric values only.
Regards

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

Re: problemas con FWNumFormat

Postby horacio » Fri Jun 16, 2017 2:04 pm

Thanks Rao for the answer, what I wanted to expose is that this function alters those strings that contain numbers, not just those that are numeric.

regards
horacio
 
Posts: 1363
Joined: Wed Jun 21, 2006 12:39 am
Location: Capital Federal Argentina

Re: problemas con FWNumFormat

Postby nageswaragunupudi » Fri Jun 16, 2017 2:32 pm

horacio wrote:Thanks Rao for the answer, what I wanted to expose is that this function alters those strings that contain numbers, not just those that are numeric.

regards

It is not correct.

function FWNumFormat() only stores programmer's options. This function does not do any formatting by itself.

Function NUMPICT( ) returns a numeric picture clause based on settings of FWNumFormat().

XBrowse uses NumPict() to decide the default picture clause of a column, whose datatype is 'N'.

XBrowse decides the datatype of a column on the basis of field type.

If your character fields are affected, I am sure there must be some issue with your source code, but FWNumFormat creating a problem can be ruled out.

We can help if you can produce any self contained sample using any dbf in the \fwh\samples folder.
Regards

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


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Natter and 55 guests