If you definately need the file name then you'll have to parse the data to
extract it. If MB isn't powerful enough VB definately will be. Use the instr
function recursively to determine the position of the last "\", and ".tab". And
then use mid() to extract the filename.

But are you sure you need it ? If you're trying to extract it in order to refer
to a just opened table in your code consider using

open table <filename> as myTable

then refer to the table as myTable. This will be its name and not a string
variable holding the name.
____________________________________________________________________
Debbie Bryan                            WRc plc
GIS Analyst                             Frankland Rd
01793 865050 Tel (Direct)               Blagrove
01793 865000 Tel (Switchboard)          Swindon
01793 865001 Fax                        SN5 8YF
----------------------------------------------------------------------
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