When I simplify the code to the limit, this still won't work. Can
anyone tell me why the following example fails, or has the
MapBasic "Stop" statement been retired? Perhaps someone should
tell the technical writers that one the few detectives still left
on the programmer's side of their gripping MapBasic novel (pg
548, Reference Guide) has just been found murdered. Anyone have a
clue about why this doesn't work?

declare sub main
sub main
dim a, b as integer
   print chr$(12)
   a = 5
   stop 'This statement causes an "unknown error" in both 4.5 and
5.5
   b = 6
   print "a + b is " + str$(a+b)
end sub

It's been said that any program has at least one bug in it. It's
also been asserted than any program can be reduced by at least
one line of code. Therefore, we can conclude that any program can
be reduced to one line that doesn't work. 
And here it is:

Stop


This compiles, and fails with a fatal error. What beauty in such
flawed simplicity!

- Bill Thoen
----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]

Reply via email to