You lost the extra "s when you used the variable.
Try
str_Location = "D:\My document\class\Project\GIS\Data\boundary"
Mapinfo.do "Open Table """ & str_Location & """ Interactive"
----- Original Message -----
From: "Surakasem Vongsrivong" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 22, 2003 10:05 PM
Subject: MI-L How to use Visual Basic with MapInfo
Dear all,
I'm student doing my project now. My project is Visualbasic which need
to
communicate with MapInfo application. I had 1 small problem which I don't
know what to do.
I create Visual Basic application to search for Table file and this
application is able to preview
each file.
I knew from MapInfo support team that I can use command:
MapInfo.Do "Open Table ""D:\My
document\class\Project\GIS\Data\boundary""Interactive"
MapInfo.Do "Map from boundary"
Above commands let me open file "boundary.TAB"
but if I store file location into variable for example
str_Location = "D:\My document\class\Project\GIS\Data\boundary"
how can I use str_Location to open file in MapInfo.Do command?
I tried
MapInfo.Do "Open Table " & str_Location & "Interactive"
but it didn't work?
please suggest me
Thanks very much in advance
Surakasem V.
---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 7749