• 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: Some help on dialog director
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Some help on dialog director


  • Subject: Re: Some help on dialog director
  • From: Sun Real <email@hidden>
  • Date: Mon, 25 Jun 2001 15:39:11 +1000

Jan Erik Mostrvm's message of 23/6/01 2:08 AM contained:

>I got a dialog in a handler which is specified like this

[
]

> set i to dd interact with user
> if i = 1 then
> -- Done button
> exit repeat
> else if i = 2 then
>
> else if i = 3 then
> set y to (dd get value of item 3 of s)

Item 3 is the button, so its value is going to be a bool - on/off,
pressed/not pressed

If you want the list selection, you have to get the value of item 2, an
integer corresponding to the index of the item in its list:

else if i = 3 then
set y to (dd get value of item 2 of s)



Cheers,

Richard Morton
-- Great Lies of the Music Business: "Band drinks are free"


  • Follow-Ups:
    • Re: Some help on dialog director
      • From: Jan Erik Moström <email@hidden>
  • Prev by Date: Re: say command, out of memory?
  • Next by Date: Re: Compile a string?
  • Previous by thread: Some help on dialog director
  • Next by thread: Re: Some help on dialog director
  • Index(es):
    • Date
    • Thread