Spell

Spell

Postby ask » Tue Dec 20, 2005 1:18 pm

Bellow is a working sample in VB. Can anyone tell me what iam doing wrong with fivewin?
The program crasses at runtime with the error:
"Error description: Error Word.Basic/3 DISP_E_MEMBERNOTFOUND: INSERT"


VB:

Dim oWDBasic As Object

Set oWDBasic = CreateObject("Word.Basic")


oWDBasic.filenew

oWDBasic.Insert "testdsf"
oWDBasic.ToolsSpelling
oWDBasic.EditSelectAll


MsgBox oWDBasic.Selection()
oWDBasic.FileCloseAll 2
oWDBasic.AppClose



FIVEWIN

#include "fivewin.ch"

#DEFINE TRUE .T.
#DEFINE FALSE .F.


function main(strText)
local oWDBasic

default strText:="test ing re"

oWDBasic:=createobject("Word.Basic")
oWDBasic:filenew()

oWDBasic:Insert(strText)
oWDBasic:ToolsSpelling()
oWDBasic:EditSelectAll()


msginfo(oWDBasic:Selection())
oWDBasic:FileCloseAll(2)
oWDBasic:AppClose()
oWDBasic:=nil
return ""
ask
 
Posts: 99
Joined: Wed Nov 02, 2005 10:40 am

Re: Spell

Postby Enrico Maria Giordano » Tue Dec 20, 2005 1:49 pm

That error commonly means that the method does not exist or that you haven't provide all the required parameters.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Spell

Postby ask » Tue Dec 20, 2005 2:13 pm

EnricoMaria wrote:That error commonly means that the method does not exist or that you haven't provide all the required parameters.

EMG



But do you see any difference from the working vb sample?
ask
 
Posts: 99
Joined: Wed Nov 02, 2005 10:40 am

Re: Spell

Postby Enrico Maria Giordano » Tue Dec 20, 2005 2:18 pm

I found that parameters passing is somewhat different between xHarbour and VB.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Spell

Postby ask » Tue Dec 20, 2005 2:27 pm

EnricoMaria wrote:I found that parameters passing is somewhat different between xHarbour and VB.

EMG


Can you please explain the differences ?

Thanks you
A.S.K
ask
 
Posts: 99
Joined: Wed Nov 02, 2005 10:40 am


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 101 guests