At 9:55 PM -0700 1/3/03, you wrote:
Hello,
Question 1:
is there a way to set a list to "nothing"?
Let's say I want to populate a list with a text member that has
nothing in it. Sound's strange but I need to do it.
Example:
a = []
add a, the text of member("blablabla").line[?].item[?]
Now if I "put a" I get "". Is there a way to get "nothing"?
the text of member("blablabla").line[?].item[?]
note: this gets the text of a text thing
Question 2:
Is there a way to set a variable to not equal a number?
Example:
on setntothing me,a
if the text of member("blablabla").line[?].item[?] = 0 then
a <> 0
end
the text of member("blablabla").line[?].item[?] = 0
note: this compares text to a number, so it's always false
you probably want to compare text to an empty string
if member("blablabla").line[?].item[?] = ""
Also, what is the precedence of a<>0 vs a=0?
For example, if there were several if statements referencing variable "a"
if blabla then a = 0
else if blablabla then
a <>0
In general, Lingo uses 1 to mean TRUE or NOT 0, and 0 to mean FALSE.
on checkForEqualToAbc me, aString
if aString = "abc" then
return 1
else
return 0
end if
end checkForEqualToAbc
hth
-Buzz
Wierd Questions. Thank you for your time.
Kevin Pyatt
Ponderosa High School
Chemistry Teacher
Multimedia Developer/Instructional Designer
Scientific Creations
Business line:303.829.8960
www.scientificcreations.com
[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 with programming Lingo. Thanks!]