Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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
add comment

1 Answer

up vote 2 down vote accepted

This should do it:

update table_id set some_field = TableInfo(table_id,1)

share|improve this answer
add comment

Your Answer

 
discard

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.