|
MAPBASIC
Alan,
Try including this in your code.
include "mapbasic.def"
Dim sTabName as string
'if you just want the table name (i.e.
"MyTable")
sTabName = tableinfo(<table
identifier>,TAB_INFO_NAME)
'if you want the entire file path (i.e.
"C:\Data\MyTable.tab")
sTabName =
tableinfo(<table identifier>,TAB_INFO_TABFILE)
Look in the mapbasic
help for more detail on what to substitute for <table
identifier>.
Cheers,
John Hollingsworth GIS Manager - Outdoor IT Clear Channel Outdoor w) 919-789-4100x4169 c) 919-332-1869 f) 919-789-4190 NAC: 8FGHR NZ2WZ LEGAL NOTICE: Unless expressly stated otherwise, this message is confidential and may be privileged. It is intended for the addressee(s) only. Access to this e-mail by anyone else is unauthorized. If you are not an addressee, any disclosure or copying of the contents of this e-mail or any action taken (or not taken) in reliance on it is unauthorized and may be unlawful. If you are not an addressee, please inform the sender immediately. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Alan Silvester Sent: Friday, November 11, 2005 12:31 PM To: [email protected] Subject: [Mapinfo-l] MI-L Returning the name open files in MapInfo Hello
everyone, Does anybody know how / whether it
is possible to return the name of a file that is open in MapInfo as a string
variable? What I need to do, is through MapBasic declare a variable as a string,
then make that variable = the name of a file that is open in
MapInfo. Any thoughts gratefully
received. Regards Alan
Silvester |
_______________________________________________ Mapinfo-l mailing list [email protected] http://www.directionsmag.com/mailman/listinfo/mapinfo-l
