Posts: 1,688
Threads: 119
Joined: Jun 2003
no, i don't want you to practise your nitpicking on me. practise it on someone else.
no, i just copied and pasted lots of times. i was in a hurry, didn't worry about syntax.
Jumping Jahoolipers!
Posts: 1,752
Threads: 21
Joined: Jun 2002
Quote:Try this code:
Code:
SUB DoNothing
END SUB
CALL DoNothing ()
Error? Yes. Also try this:
Code:
SUB DoSometing (StrToPr$)
PRINT StrToPr$
END SUB
CALL DoSomething ("Yay")
Error? Yes.
If your SUB has no arguments, then you must omit the parenthesis with CALL. However, if you do have arguments, then the parenthesis are
required with CALL. Your second example will not produce an error.
Posts: 3,616
Threads: 287
Joined: Jan 2003
Oooh...right you are. Sorry.
I was getting mixed up. You can't use parentheses, however, when calling subs WITHOUT "CALL".
f only life let you press CTRL-Z.
--------------------------------------
Freebasic is like QB, except it doesn't suck.