My second function
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
My second function
I've copied working code from a button
script and put it in the stack script.
It has no parameters.
It won't work unless I give it a parameter
to pass. Seems any variable will do.
The docs state that a function can have
no parameters but seems this isn't so.
Comment anyone?
script and put it in the stack script.
It has no parameters.
It won't work unless I give it a parameter
to pass. Seems any variable will do.
The docs state that a function can have
no parameters but seems this isn't so.
Comment anyone?
Life is just a bowl of cherries.
-
- Posts: 179
- Joined: Sat Apr 08, 2006 11:08 pm
- Contact:
My second function
Malte
"I am happily using functions without params.
You still need the params in the call though".
If a function requires no params how do you use
params in the function call?
Seems to be what I did - just put in any variable as
a param get the function called.
Without something as a param the function
call is skipped over in the debugger. With a param
given (even though the param isn't needed by the
function) the debugger goes into the function and
processes the code.
Not what I consider conforming to the info in the
help file which states that a function can have no
parameters.
"I am happily using functions without params.
You still need the params in the call though".
If a function requires no params how do you use
params in the function call?
Seems to be what I did - just put in any variable as
a param get the function called.
Without something as a param the function
call is skipped over in the debugger. With a param
given (even though the param isn't needed by the
function) the debugger goes into the function and
processes the code.
Not what I consider conforming to the info in the
help file which states that a function can have no
parameters.
Life is just a bowl of cherries.