it errors...
If you want Harbour you will have to drop "|" ![]()
Life is hard ![]()
it errors...
If you want Harbour you will have to drop "|" ![]()
Life is hard ![]()
Antonio,
as I said, that's not the last problem. There are many others. It looks like I have to drop Harbour definitely... ![]()
EMG
Enrico,
Well, to have a xHarbour expert with us is always a good thing ![]()
Anyway, I'll slowly try again, as time permits...
EMG
![]()
Good news! I found a workaround (I replaced "|" with "+", it's not the same but worked fine in my case). Then I could fix the next problem too (I forgot the default value for an instance variable declared LOGICAL - xHarbour doesn't care).
It seems that now I can test my applications with Harbour! ![]()
EMG
Next problem: xHarbour supports the third parameter for MemoWrit() to get rid of EOF character. How to do that with Harbour?
EMG
Found! Hb_MemoWrit(). ![]()
EMG
Thank you.
EMG
#include "Fivewin.ch"
//REQUEST HB_CODEPAGE_ITWIN
FUNCTION MAIN()
// HB_SETCODEPAGE( "ITWIN" )
FCREATE( "testà " )
RETURN NILFUNCTION MAIN()
LOCAL oExcel := CREATEOBJECT( "Excel.Application" )
LOCAL oSheet
oExcel:WorkBooks:Add()
oSheet = oExcel:ActiveSheet
oSheet:Cells( 1, 1 ):Value = CTOD( "" )
oExcel:Visible = .T.
RETURN NILError 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 NILhua 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.
#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:
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:
Error WINOLE/1006 Â (0x800A03EC): _VALUE (DOS Error -2147352567) Called from TOLEAUTO:_VALUE(0) Called from MAIN(11)
EMG
Enrico,
is the same code working with xHarbour ?
Is Excel already running ?