-- card: 4846 from stack: in.1 -- bmap block id: 5137 -- flags: 0000 -- background id: 4225 -- name: dolist1 -- part 1 (field) -- low flags: 01 -- high flags: 2002 -- rect: left=347 top=180 right=202 bottom=462 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 0 -- font id: 3 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: result -- part 2 (button) -- low flags: 00 -- high flags: A003 -- rect: left=76 top=130 right=152 bottom=176 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: Mode 1 ----- HyperTalk script ----- on mouseUp put card field list into theList DoList 999,theList,dis get the result put it into card field result put item 1 of it into card field numItems put item 2 of it into card field item1 end mouseUp -- part 3 (button) -- low flags: 00 -- high flags: 8003 -- rect: left=202 top=130 right=152 bottom=302 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: Mode 2 ----- HyperTalk script ----- on mouseUp put card field list into theList DoList "Select","Cancel",theList,one get the result put it into card field result put item 1 of it into card field numItems put item 2 of it into card field item1 end mouseUp -- part 4 (button) -- low flags: 00 -- high flags: 8003 -- rect: left=330 top=130 right=152 bottom=430 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: Mode 3 ----- HyperTalk script ----- on mouseUp put card field list into theList DoList "Select","Cancel",theList,one,20,156 get the result put it into card field result put item 1 of it into card field numItems put item 2 of it into card field item1 end mouseUp -- part 7 (field) -- low flags: 01 -- high flags: 2002 -- rect: left=347 top=212 right=234 bottom=462 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 0 -- font id: 3 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: numItems -- part 8 (field) -- low flags: 01 -- high flags: 2002 -- rect: left=347 top=244 right=266 bottom=462 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 0 -- font id: 3 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: Item1 -- part 9 (field) -- low flags: 01 -- high flags: 0002 -- rect: left=33 top=180 right=277 bottom=202 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 0 -- font id: 3 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: list -- part contents for background part 5 ----- text ----- Mode Examples: These buttons contain scripts that are examples of each mode of the DoList command. They each use the same list, which is below. This stack contains a dialog resource, which is used in Mode 1. Note the differences in appearance between each mode. -- part contents for card part 9 ----- text ----- Zebra,Elephant,Squirrel,Horse,Fox,Chicken,Cow,Roadrunner,Rabbit,Cobra,Beaver,Frog,Deer,Spider -- part contents for card part 1 ----- text ----- 1,Chicken -- part contents for card part 7 ----- text ----- 1 -- part contents for card part 8 ----- text ----- Chicken