Re: conditional error
Re: conditional error
- Subject: Re: conditional error
- From: monk <email@hidden>
- Date: Sun, 22 Jul 2001 12:30:22 -0400
-- 7/22/01 11:04 am: email@hidden said:
>
> if button returned of (display dialog "process by:" buttons {"word", "line",
>
> "paragraph"} default button "word") is "word" then
>
>
>
> set _listsource to (read _source as text using delimiter {return,
>
> space})
>
>
>
> else if button returned is "line" then ---
>
> <-----Here!
>
>
>
> set _listsource to (read _source as text using delimiter {return})
>
>
>
> else
>
>
>
> set _listsource to (read _source as text using delimiter {space})
>
>
>
> end if
>
>
>
> --
>
>
>
> any ideas on why this is failing?
>
>
>
> h 'monk' elmer
>
>
yes. The computer does not know what button returned you are talking about
>
<script>
>
set z to button returned of (display dialog "process by:" buttons
>
{"word", "line","paragraph"} default button "word")
>
if z is "word" then
>
do this
>
else if z is "line" the
>
do this other stuff
>
else -- button is paragraph
>
do yet something different
>
end if
>
</script>
>
>
the distinction between paragraph and line might be very thin! Go
>
there at your own risk. Sometimes line gets you screwed up.
>
>
Deivy Petrescu
>
http://www.dicas.com
thanks again deivy!
h 'monk' elmer
--
http://www.assemblage.org
[ _ o
o o _ -- - - -- > s y m p h o n i c j a m s ]