RE: chartonum 0?

2002-01-21 Thread Kerry Thompson
> on test >x=null > end > > in the scriptEditor, you'll get an alert saying: > "Script error: variable used before assigned a value x=null?" > Hmm... you get the same script error with my other example, x = numToChar(null). It's odd that it works in the message window. Or maybe not that odd

RE: chartonum 0?

2002-01-21 Thread Jakob Hede Madsen
At 13:50 -0800 21/01/02, Kerry Thompson wrote: >Is it? If you write "null" in the scriptEditor with color-coded syntax, you will see that it remains black, whereas "VOID" turns green, because it's a recognized keyword. Typing: x=null You could as well type: x=Kerry It's the same thing; an und

RE: chartonum 0?

2002-01-21 Thread Kerry Thompson
> Ahem, in this case x is actually void, because it was assigned an > undeclared variable, 'null', which is something different from > , which you have to construct otherwise. > Is it? x=numToChar(null) put charToNum(x) -- 0 put x -- "" put voidP(x) -- 0 or isn't it? x=null put charToNum(x) -

RE: chartonum 0?

2002-01-21 Thread Jakob Hede Madsen
At 10:39 -0800 21/01/02, Kerry Thompson wrote: >x=null >put x >-- >put voidP(x) >-- 1 > >That's clearly an error--x is null, not void. And, digging further: Ahem, in this case x is actually void, because it was assigned an undeclared variable, 'null', which is something different from , which

RE: chartonum 0?

2002-01-21 Thread Kerry Thompson
> At 13:45 -0800 19/01/02, Kerry Thompson wrote: > > >ASCII 0 is null, but Director won't tell you that. > Jakob Hede Madsen wrote: > Which "null"? > ASCII null, not Director null ^_^ The American Standard Code for Information Interchange (ASCII), proposed in 1963 by ANSI, and finalized in 19

Re: chartonum 0?

2002-01-21 Thread Jakob Hede Madsen
At 13:45 -0800 19/01/02, Kerry Thompson wrote: >>What's the ascii equivalent of chartonum = 0? > >ASCII 0 is null, but Director won't tell you that. Which "null"? -- Welcome to Director -- --- Comparing and : x = numToChar(0) y = call(#m, []) put x -- "&quo

Re: chartonum 0?

2002-01-19 Thread Kerry Thompson
>What's the ascii equivalent of chartonum = 0? ASCII 0 is null, but Director won't tell you that. Cordially, Kerry Thompson [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EM

Re: chartonum 0?

2002-01-19 Thread Jakob Hede Madsen
At 2:45 -0600 19/01/02, [EMAIL PROTECTED] wrote: >What's the ascii equivalent of chartonum = 0? Lingo interprets ascii 0 as an "End Of String" flag. You can play with that, like: on test tString = "End Of String" put 1, tString tZero = numToChar(0) put

Re: chartonum 0?

2002-01-19 Thread Fumio Nonaka
Is this what you are looking for? put numToChar(0) -- "" _ [EMAIL PROTECTED] wrote: > > What's the ascii equivalent of chartonum = 0? Good luck, Fumio Nonaka Phone: +81-42-397-9452 Fax: +81-42-397-9452 mailto:[EMAIL PROTECTED] http://www.FumioNonaka.com [To remove yo

chartonum 0?

2002-01-19 Thread grimmwerks
What's the ascii equivalent of chartonum = 0? [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping