FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour problemas con FWNumFormat
Posts: 1364
Joined: Wed Jun 21, 2006 12:39 AM

problemas con FWNumFormat

Posted: Thu Jun 15, 2017 05: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


Con FWNumformat


Alguna idea ? Muchas gracias
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM

Re: problemas con FWNumFormat

Posted: Fri Jun 16, 2017 01:15 AM

FWNumFormat() applies to numeric values only.

Regards



G. N. Rao.

Hyderabad, India
Posts: 1364
Joined: Wed Jun 21, 2006 12:39 AM

Re: problemas con FWNumFormat

Posted: Fri Jun 16, 2017 02: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

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM

Re: problemas con FWNumFormat

Posted: Fri Jun 16, 2017 02: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

Continue the discussion