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.

There are multiple rows in my .tab file in mapinfo. Is there any way to select nth row in mapbasic window of mapinfo?

share|improve this question

1 Answer 1

up vote 3 down vote accepted

Select * from 'table' Where RowID = n

If you want it into a selection table of your choice, put the selection into somename, then browse * from somename If not, just Browse from selection

edit

This is all from memory, so please play about and also read the online reference manual:

MapBasic Ref

MapInfo -L

share|improve this answer
    
By the way, the help is ok. –  Hairy Aug 11 '11 at 7:41
    
+1 @Hairy very helpful and thanks –  kinkajou Aug 11 '11 at 7:44
    
nps. Seriously though, have a look at the help, as they'll give code samples, you can play with. I'd also recommend 'MapInfo -l'. It's sort of a way of searching through some cracking code samples. –  Hairy Aug 11 '11 at 7:50
    
yes I have the user guide I am studying but small things confuse me :( –  kinkajou Aug 11 '11 at 7:57
    
well, nps, you'll get answers here as long as you accept them and act in good grace (which I fail to do sometimes). –  Hairy Aug 11 '11 at 8:48

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.