G'day Robert You asked
> Is there a simple way of querying the database format for a table in mapbasic, eg (if the table is native, dbase or access)? The only way that I can find is by reading > the tab file and looking at the relevant line there. Seems brutal. For MapInfo tables of type BASE the possible subtypes seem to be NATIVE or ACCESS, ASCII, DBF, WKS, XLS. As far as I know, there is no MapBasic function that exposes these subtype values. The only way to discover the subtype is therefore to parse the contents of the table's TAB file yourself. I've done just this in a MapBasic tool called TABINFO 1.3, the source code of which is available at www.acslink.aone.net.au/actaa/iaa.htm under the topic [Products][Downloads]. Regards David M Haycraft Information Analysis Associates Pty Ltd ABN 47 085 516 105 1 Cumming Place, Wanniassa, 2903 Aust Capital Territory, Australia Phone/Fax: 61 + 2 + 6231 8104 Mobile: 0412 001 134 Email: [EMAIL PROTECTED] Web : www.acslink.aone.net.au/actaa/iaa.htm A MapInfo Technology Partner _______________________________________________________________________ List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, send e-mail to [EMAIL PROTECTED] and put "unsubscribe MapInfo-L" in the message body.
