I am attempting to compile a quick MapBasic tool I have written, however it won't compile despite the variable being clearly defined

enter image description here

It's probably something simple I am missing, can somebody point out where I am going wrong?


It was an error later in my code:

I forgot to separate in instance of nMID from the run command string (I didn't have the "&" symbols before it) so it was referring to this instance.

enter image description here

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.