I am long trying to find a better way to get types of all objects stored in a map other than looping through all objects in a table. I know it must be somewhere, because MapInfo knows it immediately - for instance, after pressing the style override button, only those style buttons are offered that correspond to bject types found in a table (region, line, point or text). Is it in a map header? Is the map header documented somewhere?
Thanks!
(I hope my english is comprehensible...)


--
Jaromir SVASTA
Hydrogeologist
Geological Survey of Slovak Republic
Mlynska dolina 1
817 04 Bratislava
Slovak Republic

Tel: +421 2 59375326
Fax: +421 2 54771940

On Wed, 04 May 2005 12:08:04 +0200, Mills, Daniel <[EMAIL PROTECTED]> wrote:

hi,

sometime ago i asked if it was possible to determine the number of features
within a tab file by directly reading the .data or .map file. somebody
kindly supplied the following code


Open File strMapFile for binary as #1 ByteOrder LowHigh
Get #1, 317, nPoints    ' nPoints etc are integer variables
Get #1, 321, nLines     ' plines + lines + arcs
Get #1, 325, nRegions   ' regions + rects + ellipses
Get #1, 329, nText

however, this only seems to work within MapBasic.  I am trying to do the
same thing in VBA but to no avail.  Does anybody have any idea what the
problem could be?

Thanks

Daniel

--------------------------------------------------------------------- List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 16368



Reply via email to