Can a Handler Differentiate Between Empty & Missing Parameters?

Rob Cozens rcozens at
Thu Mar 9 17:02:59 EST 2006

Thanks Ken,

> If you provide *no* second param:
>   myHandler requiredParam
> Then you get an error trying to *execute* the command because
> pass-by-reference parameters can't be optional.

That's the issue that will probably make it necessary to change my 

Originally, I figured I could just try writing to optionalParam and 
trap for an error; ut it sounds like the engine won't let me get that 

I'm glad I asked before scripting what I had in mind.

Rob Cozens
CCW, Serendipity Software Company

"And I, which was two fooles, do so grow three;
Who are a little wise, the best fooles bee."

from "The Triple Foole" by John Donne (1572-1631)

More information about the Use-livecode mailing list