Page 1 of 1

HB_OemToAnsi Function

Posted: Tue Apr 13, 2010 6:24 pm
by jparada
Hi,

In the columns of the Browse control, I'm trying to do something like this:

Code: Select all

FIELDS { "FechaLegible(Facturas->f_fech_fac)", "HB_OemToAnsi(Clientes->f_nomb_cte)", "Transform(f_total,'99,999.99')" }
And presents the error shown in the attached image (just in HB_OemToAnsi function), please take a look.

And if I do another test like:

Code: Select all

DEFINE LABEL cNombreCte
	VALUE HB_OemToAnsi(Clientes->f_nomb_cte)
	ROW 80
	COL 30
	AUTOSIZE .T.
END LABEL
This works well.

The question is if I'm doing something wrong in the columns of the Browse control

Please can someone give me some advice.

Best Regards
Javier

Re: HB_OemToAnsi Function

Posted: Tue Apr 13, 2010 7:12 pm
by PeteWG
jparada wrote:Hi,

In the columns of the Browse control, I'm trying to do something like this:

Code: Select all

FIELDS { "FechaLegible(Facturas->f_fech_fac)", "HB_OemToAnsi(Clientes->f_nomb_cte)", "Transform(f_total,'99,999.99')" }
And presents the error shown in the attached image (just in HB_OemToAnsi function), please take a look.
..
You get the error above, because HB_OEMTOANSI() is not linked into your executable.
This happens due to HB_OEMTOANSI() it is enclosed by apostrophes which
"hide" the function from the linker.

Put the line :
REQUEST HB_OEMTOANSI

on top of your program and see if it helps.


---
Pete

Re: HB_OemToAnsi Function

Posted: Tue Apr 13, 2010 7:23 pm
by jparada
Hi Pete,

Thanks a lot, now it works very well.

Best Regards
Javier