David,

You can create points for a table with just a single line of code.

Try This

Update sNewTabName Set obj = CreatePoint(sLongColumn, sLatColumn)


Tim Fast
Pioneer Hi-Bred International


-----Original Message-----
From: Scott, David [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 01, 2002 10:16 AM
To: MapInfo L (E-mail)
Subject: MI-L Problem creating points.


Hello all.  I am trying to write an app that takes a table of points and
maps them.  The problem that I am having is that all the points are on top
of each other.  I cannot figure out what is happening.  Here is the sub that
I am using:
 
dim iCPLoop as integer
   dim iNumCP as integer
   
   iNumCP = tableinfo(sNewTabName,tab_info_nrows)
 
   for iCPLoop = 1 to iNumCP
 
       fetch first from sNewTabName
 
       update sNewTabName set obj = createpoint(sLongColumn,sLatColumn)
       fetch next from sNewTabName
       iCPLoop = iCPLoop + 1
 
   next
 
Any help would be much appreciated.
 
thanks
 
David Scott
GIS Specialist
RF Engineering
U.S. Unwired
Sprint PCS Network Partner
52 Corporate Circle
Albany, New York 12203
PCS: 518.506.2172
 

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

Reply via email to