Tim,

    In VB add a reference to the Microsoft Scripting Runtime library
(windows\system\scrrun.dll) to your project and then use the FileSystemObject
from that library.  There is a method called GetBaseName() that will do the
trick.

    In MB use the PathToTableName$() function (it should work with regular
file names, not just tables).

Gary.

Timothy Chinchen Cen-IT wrote:

> Not necessarily an MI question but in VB and/or MB does anyone know how I
> can remove the Path info and extension on a string e.g.
>
> From
> C:\data\MyTable.Tab
> to
> MyTable
>
> Many Thanks
>
> Tim Chinchen (GIS Systems Developer)
> I.T. Services Bournemouth Borough Council
> Mailto:[EMAIL PROTECTED]
>
> **********************************************************************
> This email and any files transmitted with it are confidential and
> intended solely for the use of the individual or entity to whom they
> are addressed. If you have received this email in error please notify
> the system manager.
>
> This footnote also confirms that this email message has been swept by
> MIMEsweeper for the presence of computer viruses.
>
> www.bournemouth.gov.uk
> **********************************************************************
>
> ----------------------------------------------------------------------
> To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
> "unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]

----------------------------------------------------------------------
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