• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question


  • Subject: Re: Question
  • From: Nigel Garvey <email@hidden>
  • Date: Mon, 4 Dec 2000 02:11:51 +0000

Michelle Steiner wrote on Sun, 3 Dec 2000 16:49:54 -0800:

>What unforeseen side effect does this script have, and why does it have
>it? (Yeah, I know the answer, but I first had to experience the side
>effect, because I did not foresee it when I wrote the script.)
>
>--Michelle
>
>set invalid to "What the????"
>
>display dialog "enter the radius" default answer ,
> "" buttons {"Compute diameter", " Compute area"}
>set {myAnswer, myButton} to ,
> {text returned, button returned} of the result
>
>try
> if myAnswer as number is greater than 0 then
> if myButton is "compute cirumference" then
> my displaydialog("cirumference", myAnswer * 2 * pi)
> else
[snip]

Aha! The first button should be "Compute circumference" and the spelling
in the inner 'if' block should be corrected to match.

NG


  • Prev by Date: Re: Question
  • Next by Date: re: Month as Integer (or he's ranting again)
  • Previous by thread: Re: Question
  • Next by thread: Re: Question
  • Index(es):
    • Date
    • Thread