1

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

  • 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
2

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, privacy policy and cookie policy

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