Page 1 of 1

My second function

Posted: Sun Feb 24, 2008 11:52 pm
by bjb007
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?

Posted: Mon Feb 25, 2008 3:41 am
by Mark Smith
Could you post the code?

Posted: Mon Feb 25, 2008 10:15 pm
by malte
without any code to answer all I can say is I am happiely using functions without params. You still need the parans in the call though

put myFunction() into myVar

My second function

Posted: Wed Feb 27, 2008 8:59 am
by bjb007
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.

Posted: Wed Feb 27, 2008 1:41 pm
by Mark
bjb007,

Please, post your scripts.

Mark

Posted: Wed Feb 27, 2008 6:27 pm
by malte
*nod*

No go without seeing the scripts

Posted: Thu Feb 28, 2008 2:45 pm
by Klaus
WE WANT SCRIPTS!
WE WANT SCRIPTS!
WE WANT SCRIPTS!
WE WANT SCRIPTS!
WE WANT SCRIPTS!

:D