#include "Fivewin.ch"
//REQUEST HB_CODEPAGE_ITWIN
FUNCTION MAIN()
// HB_SETCODEPAGE( "ITWIN" )
FCREATE( "testà" )
RETURN NIL
FUNCTION MAIN()
LOCAL oExcel := CREATEOBJECT( "Excel.Application" )
LOCAL oSheet
oExcel:WorkBooks:Add()
oSheet = oExcel:ActiveSheet
oSheet:Cells( 1, 1 ):Value = CTOD( "" )
oExcel:Visible = .T.
RETURN NIL
Error WINOLE/1006 (0x800A03EC): _VALUE (DOS Error -2147352567)
Called from TOLEAUTO:_VALUE(0)
Called from MAIN(11)
Do you know if the code below is the right way to handle non-ascii characters? With the two line commented out I get "testα".
#include "Fivewin.ch"
REQUEST HB_CODEPAGE_IT437
FUNCTION MAIN()
HB_SETCODEPAGE( "IT437" )
FCREATE( "testà" )
RETURN NIL
hua wrote:Sorry Enrico. My programs don't use non-ascii character so I don't have any knowledge nor experience about it.
hua wrote:I only know the default codepage used by Harbour is CP437
The only observation I can offer you is that even enabling the rem'ed out lines I don't get testà. On my PC I had to change the code to as shown below to make it work.
- Code: Select all Expand view
#include "Fivewin.ch"
REQUEST HB_CODEPAGE_IT437
FUNCTION MAIN()
HB_SETCODEPAGE( "IT437" )
FCREATE( "testà" )
RETURN NIL
Enrico Maria Giordano wrote:One more problem. This is a sample:
- Code: Select all Expand view
FUNCTION MAIN()
LOCAL oExcel := CREATEOBJECT( "Excel.Application" )
LOCAL oSheet
oExcel:WorkBooks:Add()
oSheet = oExcel:ActiveSheet
oSheet:Cells( 1, 1 ):Value = CTOD( "" )
oExcel:Visible = .T.
RETURN NIL
It errors out with the following error message:
- Code: Select all Expand view
Error WINOLE/1006 (0x800A03EC): _VALUE (DOS Error -2147352567)
Called from TOLEAUTO:_VALUE(0)
Called from MAIN(11)
EMG
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 42 guests