Quick question, is there any differnce in program speed if I use:
Function "variable1","variable2"
-or-
Call Function("variable1","variable2")
Printable View
Quick question, is there any differnce in program speed if I use:
Function "variable1","variable2"
-or-
Call Function("variable1","variable2")
The first one doesn't work, the second does. ;)
According to the MS help section on Call Function
Remarks
You are not required to use the Call keyword when calling a procedure. However, if you use the Call keyword to call a procedure that requires arguments, argumentlist must be enclosed in parentheses. If you omit the Call keyword, you also must omit the parentheses around argumentlist. If you use either Call syntax to call any intrinsic or user-defined function, the function's return value is discarded.
MSDN Library Jan, 2000
I can't imagine that calling a function with or with out the Call statement would make a speed difference
Roger
there is absolutely no difference, Why?...
Because they are both compiled into the same code in the EXE anyway, so it matters not methinks!
A function call takes 0.5 µs with an Athlon 600 :) Thats way too slow for me