home *** CD-ROM | disk | FTP | other *** search
/ Cocktail Hour / image.iso / COCKTAIL.DIR / Internal_46.ls < prev    next >
Encoding:
Text File  |  1997-03-05  |  904 b   |  29 lines

  1. on outOfObjects
  2.   global LastMarker, Choice, RecipeNum, forClear
  3.   set forClear to 0
  4.   set x to the number of lines in field "backField"
  5.   put LastMarker into item 1 of line x + 1 of field "backField"
  6.   put "objects" into item 2 of line x + 1 of field "backField"
  7.   put Choice into item 3 of line x + 1 of field "backField"
  8.   put RecipeNum into item 4 of line x + 1 of field "backField"
  9.   if line x + 1 of field "backField" = line x of field "backField" then
  10.     set the text of field "backField" to line 1 to x of field "backField"
  11.   end if
  12.   clearPuppets()
  13.   set forClear to 1
  14. end
  15.  
  16. on abcSort
  17.   global current
  18.   set sorted to [:]
  19.   repeat with i = 1 to count(current)
  20.     set x to line getAt(current, i) of field "names"
  21.     setaProp(sorted, x, getAt(current, i))
  22.   end repeat
  23.   sort(sorted)
  24.   repeat with i = 1 to count(current)
  25.     set x to getAt(sorted, i)
  26.     setAt(current, i, x)
  27.   end repeat
  28. end
  29.