Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
This routine takes TOO LONG, please help....
#21
no, i don't want you to practise your nitpicking on me. practise it on someone else. Big Grin

no, i just copied and pasted lots of times. i was in a hurry, didn't worry about syntax.
Jumping Jahoolipers!
Reply
#22
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.
Reply
#23
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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)