HB_OemToAnsi Function

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
jparada
Posts: 433
Joined: Fri Jan 23, 2009 5:18 pm

HB_OemToAnsi Function

Post 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
Attachments
img.png
img.png (24.04 KiB) Viewed 2250 times
PeteWG
Posts: 176
Joined: Sun Mar 21, 2010 5:45 pm

Re: HB_OemToAnsi Function

Post 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
jparada
Posts: 433
Joined: Fri Jan 23, 2009 5:18 pm

Re: HB_OemToAnsi Function

Post by jparada »

Hi Pete,

Thanks a lot, now it works very well.

Best Regards
Javier
Post Reply