Page 1 of 1

Codepage return

Posted: Sat Jan 07, 2017 4:30 pm
by quartz565
Hello frieds,
My best wishes for the New Year to all !!

Α question:
Is there any function that returns the codepage of a string ?
(eg "ELWIN" or "EL737")

Nikos

Re: Codepage return

Posted: Sat Jan 07, 2017 6:42 pm
by KDJ
Hi Nikos

Try:
MsgBox(Set(_SET_CODEPAGE))

Re: Codepage return

Posted: Sat Jan 07, 2017 10:17 pm
by quartz565
Thank you very much my friend !

I would like something like this:

WHATCODEPAGE(cString) -> (eg "1253" or "737")

because "cString" may comes from DBF that contains strings with a different codepage format...difficult to explain why :|

Re: Codepage return

Posted: Sun Jan 08, 2017 9:03 am
by serge_girard
Nikos,

See : http://harbourlanguage.blogspot.be/2010 ... epage.html
? HB_CDPUNIID( "ESWIN" ) // -> cp1252

This may help?

Serge

Re: Codepage return

Posted: Sun Jan 08, 2017 10:34 am
by quartz565
Thank you Serge!
I would see this link. Maybe help. I will let you know.

Nikos