At 12:23 PM +0000 11/2/00, David Kimmer wrote:
>How do I check whether a graphic exists in a cast library. I am trying to
>display a logo graphic associated with an item selected form a drop menu - I
>do not want it to error when it cannot find a corresponding graphic. Please
>help!
>
Dave,
if the number of member("YourQuestionableMember", "Castlibname") < 0 then
-- not found, do whatever
end if
If Lingo can't find a member, the number of member is set to -1.
Irv
--
Lingo / Director / Shockwave development for all occasions.
(Over two millions lines of Lingo code served!)
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/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!]