Qbasicnews.com
November 19, 2019, 11:16:15 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Back to Qbasicnews.com | QB Online Help | FAQ | Chat | All Basic Code | QB Knowledge Base
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Call Routine  (Read 3206 times)
johnfin
New Member

Posts: 4


« on: November 11, 2008, 03:20:52 PM »

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?
Logged
Clippy
Member
*
Posts: 84



« Reply #1 on: November 11, 2008, 07:49:25 PM »

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
Logged

Ralph
Ancient Guru
****
Posts: 544


« Reply #2 on: November 12, 2008, 03:36:59 PM »

Ted:

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

Ralph, using QuickBASIC 4.5 and Windows XP Home Edition and Service Pack 2, with HP LaserJet 4L printer.
johnfin
New Member

Posts: 4


« Reply #3 on: November 14, 2008, 05:13:59 PM »

I figured it out. I had to load the library  qb /l to get my call routines to work.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!