This is very strange. I have a SearchPoint and SearchInfo routine that
drills down thru' the open tables until it comes to a table that is named
one of three ways. When it gets to one of the three names, it jumps to
another sub that loads an image.
Here's the weird part: if the open table name is not the first (ie T1000)
and if I remove the "print " statement (3rd line), the routine fails, saying
it can't find the table. With the "print " statement in, any of the three
names will work. The only reason I put in the "print " was to see if it was
drilling properly, which it does.
Any thoughts?
For i = 1 to i_found
s_table = SearchInfo(i, SEARCH_INFO_TABLE)
print "s_table = "+ s_table
If s_table = T1000 Then
intRow = SearchInfo(i,SEARCH_INFO_ROW)
Fetch rec intRow From s_table
strTile = T1000.Sheet
Call map_tile
Exit Sub
End If
If s_table = Tile Then
intRow = SearchInfo(i,SEARCH_INFO_ROW)
Fetch rec intRow From s_table
strTile = Tile.Sheet
Call map_tile
Exit Sub
End If
If s_table = MapTile Then
intRow = SearchInfo(i,SEARCH_INFO_ROW)
Fetch rec intRow From s_table
strTile = MapTile.Sheet
Call map_tile
Exit Sub
End If
Next
Gerald Kornelsen
GIS Technologist
_______________________________________________________________________
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.