USE ... CODEPAGE (cCodepage)

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
User avatar
AUGE_OHR
Posts: 2117
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

USE ... CODEPAGE (cCodepage)

Post by AUGE_OHR »

hi,

i have this working line in HBFM

Code: Select all

USE (cPath+cDBF) VIA (cVia) EXCLUSIVE CODEPAGE (cCodepage)
now i use

Code: Select all

USE ( cFile ) VIA (_cVia) EXCLUSIVE CODEPAGE (_cCodePage)
where cFile, _cVia and _cCodePage are OK ... but i got this Error
USE_CODEPAGE.jpg
USE_CODEPAGE.jpg (39.7 KiB) Viewed 462 times
it work when i don´t use CODEPAGE

Code: Select all

USE ( cFile ) VIA (_cVia) EXCLUSIVE 
but i know it does work with Codepage ( what i need )
so what is going wrong ... out of Idee :idea:
have fun
Jimmy
User avatar
AUGE_OHR
Posts: 2117
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: USE ... CODEPAGE (cCodepage)

Post by AUGE_OHR »

hi,

after TRIM() it work ... :o

Code: Select all

LOCAL cVia      := TRIM(_cVia)
LOCAL cCodepage := TRIM(_cCodepage)
   USE ( cFile ) VIA (cVia) ALIAS "IMPORT" EXCLUSIVE CODEPAGE (cCodepage)
don´t understand Difference ...
have fun
Jimmy
Post Reply