ole error writ

100 views
Skip to first unread message

Quique

unread,
Oct 26, 2011, 3:08:22 PM10/26/11
to Harbour Users
I have a program working fine with xHarbour with this line when
oMaq_movi:fecha_rec is an empty date

oHoja:cells( 10, 31 ):value := oMaq_movi:fecha_rec

but if I compile with Harbour I obtain this error

Application
===========
Path and name: C:\Quique\oegsa\oegsah.exe (32 bits)
Size: 3,663,872 bytes
Time from start: 0 hours 1 mins 38 secs
Error occurred at: 26-10-11, 11:49:27
Error description: (DOS Error -2147352567) WINOLE/1006 Error de
argumento: _VALUE
Args:
[ 1] = D - -

Stack Calls
===========
Called from: => TOLEAUTO:_VALUE(0)
Called from: ..\prg\maquinaria.prg =>
MAQUINARIA:CONTROLENVIOSIM(949)
Called from: ..\prg\maquinaria.prg =>
(b)MAQUINARIA_CONTROLENVIOS(900)
Called from: .\source\classes\BUTTON.PRG => TBUTTON:CLICK(176)
Called from: .\source\classes\CONTROL.PRG =>
TBUTTON:HANDLEEVENT(1674)

Can anyone help me?

Massimo Belgrano

unread,
Oct 26, 2011, 3:33:10 PM10/26/11
to harbou...@googlegroups.com
I found a sample using excel at 
can you try  
oHoja:cells( 10, 31 ):value := dtoc(oMaq_movi:fecha_rec) 

May be that xharbour do automatic data type conversion also known as coercion

In excel data is number of day from 1/1/1900 to date so you can write a little func

2011/10/26 Quique <qui...@quiquesoft.com>

--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.
Unsubscribe: harbour-user...@googlegroups.com
Web: http://groups.google.com/group/harbour-users



--
Massimo Belgrano

Quique .

unread,
Oct 27, 2011, 11:16:15 AM10/27/11
to Foro de usuarios de harbour
Thanks you, it works fine, in xHarbour this is transparent, but well already works.
 

From: mbel...@deltain.it
Date: Wed, 26 Oct 2011 21:33:10 +0200
Subject: Re: [harbour-users] ole error writ
To: harbou...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages