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

For some reason my sub isn't 'linking' in MapBasic, I'm pretty new to this, but why is the sub assuming it begins on line 110 rather than where it actually says sub?

enter image description here

enter image description here

Thanks, Alan

share|improve this question
Try End Sub not end sub – Nathan W Mar 28 '13 at 0:28
Nope, still doing it :S – Alan Carr Mar 28 '13 at 9:42
up vote 1 down vote accepted

Got it! It didn't like the word 'Type', I remedied it by putting the file type on the same line as export

share|improve this answer
If this has resolved your issue you can mark your own answer aa the accepted answer to indicate that this question has been resolved. – Rob Quincey Jul 5 '13 at 12:42
Type is a reserved word in MapBasic.… – steenhulthin Feb 2 '14 at 12:03

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.