EMPTY ... image import

Ken Ray kray at sonsothunder.com
Sat Jun 19 11:04:49 EDT 2004


> on mouseDown
>   answer file "Is there any beer left?"
>   if the result is not "cancel" then
>         set the defaultstack to "B"
>         import paint from file it
>         set the name of last image to "XX"
>       end if
> end mouseDown
> 
> goes WONKY if I cancel....obviously not much space for
> non-beer drinkers

Honestly, I've never used the "result" when looking at what comes back from
"answer file". I've always done this:

  answer file "Is there any beer left?"
  if it <> "" then
    set the defaultStack to "B"
    import paint from file it
    set the name of last image to "XX"
  end if

HTH,

Ken Ray
Sons of Thunder Software
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/




More information about the use-livecode mailing list