Hello Guest it is December 15, 2019, 06:03:44 PM

Author Topic: How can I use subprograms in the subroutines folder?  (Read 20770 times)

0 Members and 1 Guest are viewing this topic.

vmax549

*
Re: How can I use subprograms in the subroutines folder?
« Reply #10 on: May 19, 2009, 10:38:38 AM »
HIYA Chip ,

here the m98 call for the sub just stalls out and sits and waits. It never gets to load the sub. IF I remove the M99 from the sub it will then load the sub and run the sub but will NOT return to the main program.(;-)

AND it should have errored out with SUB in effect with NO RETURN but did not

V.019 runs just fine  Anything above that is hit and miss here.

IF it requires more than 1" M30" there IS a problem lurking(;-) It is just coming out deferently on your computer(;-)


(;-) TP
« Last Edit: May 19, 2009, 11:24:42 AM by vmax549 »

Offline simpson36

*
  •  1,374 1,374
    • View Profile
Re: How can I use subprograms in the subroutines folder?
« Reply #11 on: May 27, 2009, 10:51:56 AM »
An interesting anomoly I discovered in subroutines is that there has to be a return at the end of the M99 line of Mach is unhappy. This behavior was with imbedded subs, but may also be true for extrenal subs.

There is a recent version of Mach that would skip the next line of code in the main program after returning from a sub, so watch out for that . . . I think it may have been .26 but the Changelog has the info.