In MapInfo you can edit one table at a time.
How can I programmatically get the name or ID number of the table that is currently being edited?
I tried the following function:
Function GetEditableTable as String Dim i, j, WinID as integer Dim TableList() as String i = NumTables() ReDim TableList(i) WinID = FrontWindow() For j = 1 to i Note LayerInfo(WinID, j, LAYER_INFO_EDITABLE) If LayerInfo(WinID, j, LAYER_INFO_EDITABLE) = TRUE Then GetEditableTable = TableInfo(j, TAB_INFO_NAME) Exit Sub End If Next End Function
...but it returns the same table name no matter which table is editable.