16-10-2008, 09:00 PM
Why is it better to skip the call command when calling a sub?
Call command
|
16-10-2008, 09:00 PM
Why is it better to skip the call command when calling a sub?
16-10-2008, 10:05 PM
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.
16-10-2008, 10:11 PM
It makes the code look cleaner. I prefer to not use call.
16-10-2008, 10:13 PM
I think there is another reason why call doesnt need to be used than it looks cleaner.
16-10-2008, 11:38 PM
I'll try out a speed test.
17-10-2008, 06:23 PM
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
19-10-2008, 03:17 AM
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. |
« Next Oldest | Next Newest »
|