Can you show how you're establishing "MapInfoObject"?

Should be something like:

Set MapInfoObject = GetObject(, "MapInfo.Application")

Alternatively you could use the CreateObject method.

Hope this helps.


[EMAIL PROTECTED] wrote:

> Hiya
>
> Could you please help me out, I am working on a project which uses MapInfo
> Pro v5.0 and I used this command line in Visual Basic v5.0
>
> MapInfoObject.Do "Close Table " & Tablename
>
> MapInfoObject.Do "Close All "
>
> Everytime I run into  error status, it always stop at those lines above and
> the error message read
>
> Method 'Do' of object 'IMapInfo' failed
>
> Can you all please shine any light into this problem and help me out
>
> Kind regards
>
> Joshua White - Ordnance Survey System developer.
>
> ----------------------------------------------------------------------
> To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
> "unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]

--
Sam Kome
5341 Three Waters Lane
Graham, NC 27253


----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]

Reply via email to