Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

Any ideas?

Cheers, Jon

share|improve this question
Next time it might be a good idea to provide the statement that you try to run – Peter Horsbøll Møller May 3 '13 at 7:53
up vote 2 down vote accepted

This should do it:

update table_id set some_field = TableInfo(table_id,1)

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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