Wednesday 30 March 2016

mapinfo - How to work with tables in MapBasic?


I try to get data from table use MapBasic:


Dim nCol = "ColumnName"
Fetch First From Untitled
Do While Not EOT(Untitled)

colValue = Selection.nCol
Note colValue
Fetch Next From Untitled
Loop

Compilation ends success but when i start application in MapInfo get error:


Not defined Selection.nCol

How to work with columns in this case?




No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...