Qbasicnews.com
Call Routine - Printable Version

+- Qbasicnews.com (http://qbasicnews.com/newforum)
+-- Forum: QBasic (http://qbasicnews.com/newforum/forum-4.html)
+--- Forum: QB Discussion & Programming Help (http://qbasicnews.com/newforum/forum-11.html)
+--- Thread: Call Routine (/thread-10181.html)



Call Routine - johnfin - 11-11-2008

I have a mouse routine but when I run it there seems to be a problem with the CALL function. I recall I had to load or download something to get it to work the last time I used it. Any ideas?


Re: Call Routine - Clippy - 11-12-2008

CALL requires parenthesis around the parameters passed.

CALL MySub (AX, BX, CX, DX)

You don't need parenthesis without CALL.

MySub AX, BX, CX, DX    'call without call lol

Ted


Re: Call Routine - Ralph - 11-12-2008

Ted:

I smiled at your quick wit ith your "'call without call lol".  And very appropriate, too!


Re: Call Routine - johnfin - 11-15-2008

I figured it out. I had to load the library  qb /l to get my call routines to work.