Does anyone know a straightforward way in MapBasic to automatically update a table column with the name of the table the column exists in?

Going from the MapBasic reference guide it seems the TableInfo function should serve this purpose but I can't seem to get it to work. In the MapBasic window whenever you use that function it says not unrecognised command.

  • 1
    Next time it might be a good idea to provide the statement that you try to run May 3, 2013 at 7:53

1 Answer 1


This should do it:

update table_id set some_field = TableInfo(table_id,1)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.