Scripting help - PathCns - Dan 's attempt in Jscript.... 2005-06-03 - By Dan Yargici
Back Yeah, that's probably it now you mention it. The example I used was cut and pasted from Brad's example so I was probably doing the opposite and using caps instead of lowercase....
I'll definately remember that....
Yup - just checked, it needs to be lowercase. Thanks Bernard.
DAN
Bernard Lebel wrote:
> That happened to me as well, but only with Python scripts. Perhaps you > did use a capital for the boolean value? > > I don't know for other langages, but in Python, the boolean value is a > subtype of the integer type. Therefore, using an integer instead of > boolean (True/False -> 0/1) will always work, because it is > essentially the same value. > > > Cheers > Bernard > > > > Dan Yargici wrote: > >> >> P.S. I've just realised I forgot to ask something else, occasionally >> in my script I would get errors where I had a true or false - >> ".....addparameter3( "Value", siInt2, 1, 0, 4, true, false )" for >> instance. If I swapped them, for 1s or 0s things would work. Anyone >> experienced that before? Is there a logical reason? > > > > > --- > Unsubscribe? Mail Majordomo@(protected) with the following text in > body: > unsubscribe xsi > --- Unsubscribe? Mail Majordomo@(protected) with the following text in body: unsubscribe xsi
|
|