Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Call command
#1
Why is it better to skip the call command when calling a sub?
Reply
#2
I didn't think it was, I thought it was just.. something you could do.
I dislike it usually, it's harder for me to read organization wise.
Reply
#3
It makes the code look cleaner. I prefer to not use call.
Reply
#4
I think there is another reason why call doesnt need to be used than it looks cleaner.
Reply
#5
I'll try out a speed test.
Reply
#6
I always use it. It's just better to look at it, since all other languages use the ( ) to call a function, I hate this thing about vb6. Calling a function w/out ( ) ??? WTH
xD
Reply
#7
If im nto mistaken, subs need Call and functions its optional?

EDIT:
I was wrong, apparently si compeltely optional for everything

Only benefit i see is ease of use, call requires you use () to encase arguments, without ti you just type through, it only really saves you the call command and 2 characters, since you still need to space between sub or func name and the first arg.

so its just preference, they come out the same in the compiler end.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)