Re: check list routine
Re: check list routine
- Subject: Re: check list routine
- From: "Arthur J Knapp" <email@hidden>
- Date: Wed, 14 Mar 2001 17:25:28 -0500
>
Date: Wed, 14 Mar 2001 06:38:03 -0600
>
From: Rick Plummer <email@hidden>
>
Subject: check list routine
>
Does anyone know how to check a list of strings to validate a script before
>
running?
I'm afraid that I don't really understand what you mean. Let
me know if the following is even close:
property listOfStrings : {"a", "b"}
on run
if ( startUpCheck() = true ) then
main()
else
tell me to quit -- or "error number -128"
end
end
on main()
-- whatever
end
on startUpCheck()
if item 1 of listOfStrings does not equal "a" then
return false
else if item x of listOfStrings dose not equal "b" then
return false
else
return true
end
end
Arthur J. Knapp
http://www.stellarvisions.com
mailto:email@hidden
Hey, check out:
http://home.earthlink.net/~eagrant/