RE: MI-L mapinfo.eval used in VB

2003-09-14 Thread Peter Zyczynski
TableInfo() takes two arguments, 1 - the table name, 2 what type of info to return about the table ie. TAB_INFO_NROWS. You have to define the TAB_INFO_NRWOS constant in your VB app: Const TAB_INFO_NROWS = 8 Have a look at the MAPBASIC.DEF file for a list of all constants. Cheers, Peter Zyczyn

RE: MI-L mapinfo.eval used in VB

2003-09-14 Thread asbro
Doh, don't you hate it when you send something like this and then you realise the answer? The value TAB_INFO_NROWS needs to be set in VB as an integer value. Sorry. Andrew >-- Original Message -- >Date: Mon, 15 Sep 2003 09:39:34 +1000 >From: [EMAIL PROTECTED] >To: [EMAIL PROTECTED] >Subject: MI-

Re: MI-L mapinfo.eval used in VB

2003-09-14 Thread Stefan Majtan
Try this strCmd = "TableInfo(""" + fileprefix + "_FEATURES"", 8)" nRows = Val(mapinfo.Eval(strCmd)) Hope this help you. Regards Stefan Majtan - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, September 15, 2003 1:39 AM Subject: MI-L mapinfo.eval used i