> 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
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
> 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) -
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
> 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
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
>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
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
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
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
10 matches
Mail list logo