I would suggest you have a scope problem. Try making that object global in
scope, or moving references to it into the same class/routine. I scope them
global for the most part. If you don't burn RAM, why work in Windows? While
you're at it, remember to: Set MapInfoObject = Nothing
at quitting time.
Helpful? Muddy?
[EMAIL PROTECTED] wrote:
> Hiya
>
> Thanks for getting back to me and yes I used that line
>
> Set MapInfoObject = CreateObject("MapInfo.Application")
>
> Is this of any help ?
>
> Josh
>
> ----------
> From: [EMAIL PROTECTED]
> To: White, Joshua
> Cc: [EMAIL PROTECTED]
> Subject: Re: MI Visual Basic 5 Object
> Date: 19 January 1999 16:24
>
> 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
>
> ***************************************************************
> * This email/attachment(s) has been virus checked at OS *
> * and is free of all known viruses. *
> * *
> * All non work related emails/attachments should be deleted *
> * to comply with 'Internet code of practice' *
> * as per office notice 524/98. *
> * *
> ***************************************************************
--
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]