Sub Load
Dim i As Integer
Dim oPath As String
i = 0
Fetch First from TABLE_Selection
Do While Not EOT(TABLE_Selection)
i = i + 1
oPath = """Open Table """ & COL1 & """ Interactive"""
Run Command oPath
Fetch Next from TABLE_Selection
Loop
End Sub
Sub Load
Dim i As Integer
Dim tPath As String
Dim oPath As String
i = 0
Fetch First from TABLE_Selection
Do While Not EOT(TABLE_Selection)
i = i + 1
tPath = TABLE_Selection.Path
oPath = """Open Table """ & tPath & """ Interactive"""
Run Command oPath
Fetch Next from TABLE_Selection
Loop
End SubDim i As Integer
Dim iRecord As Integer
Dim tPath As String
'Do While NOT EOT(TABLE_Selection)
i = 1
For iRecord = i to TableInfo(TABLE_Selection,TAB_INFO_NROWS)
i = i + 1
tPath = TABLE.COL1
Open Table tPath Interactive
Next
'LoopDim i As Integer
Dim iRecord As Integer
Dim tPath As String
i = 1
For iRecord = i to TableInfo(TABLE_Selection,TAB_INFO_NROWS)
i = i + 1
tPath =TABLE.COL1
Open Table tPath Interactive
Fetch Next From TABLE_Selection
Next
Ah, I didn’t see that you were missing the Fetch Next statement.
I would recommend that you go back to the Do structure. Otherwise you might run into problems if you have deleted records in your table:
Fetch First from TABLE_Selection
Do While NOT EOT(TABLE_Selection)
tPath = TABLE.COL1
Open Table tPath Interactive
Fetch Next from TABLE_Selection
Loop
Peter Horsbøll Møller
Pitney Bowes
--
--
You received this message because you are subscribed to the
Google Groups "MapInfo-L" group.To post a message to this group, send
email to
To unsubscribe from this group, go to:
http://groups.google.com/group/mapinfo-l/subscribe?hl=en
For more options, information and links to MapInfo resources (searching
archives, feature requests, to visit our Wiki, visit the Welcome page at
http://groups.google.com/group/mapinfo-l?hl=en
---
You received this message because you are subscribed to the Google Groups "MapInfo-L" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
mapinfo-l+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.