EMPTY ... image import
Klaus Major
klaus at major-k.de
Sat Jun 19 11:38:50 EDT 2004
Hi Ken,
>> 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
actually this is a leftover from a time where one or two versions of MC
failed report "IT = empty" correctly...
Loooong time ago, but at that time i got used to it :-)
> HTH,
>
> Ken Ray
> Sons of Thunder Software
> Email: kray at sonsothunder.com
> Web Site: http://www.sonsothunder.com/
Regards
Klaus Major
klaus at major-k.de
http://www.major-k.de
More information about the use-livecode
mailing list