home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 1997 September / Personal_Computer_World_Sep_97.iso / DXRS / RVXPCW09.DXR / 00009_RVXShowResults.ls < prev    next >
Encoding:
Text File  |  1997-06-25  |  8.3 KB  |  205 lines

  1. on RVXShowResults
  2.   global RVXpageselect, RVXrecordsfound, CDTypeList, CDProdList, RVSupplist, CDDeptList, CDCateList, CDIssuList, CDPageList, CDContList, RVXResFieldsList, RVXSearchMasterList, RVXTitle, RVXScrollBarSprite, RVXScrollBoxSprite, RVXNumCharList
  3.   set display to EMPTY
  4.   put EMPTY into field "RVXRESType"
  5.   set maxnum to getAt(RVXNumCharList, 1)
  6.   repeat with g = 1 to count(CDTypeList)
  7.     if the number of chars in getAt(CDTypeList, g) > maxnum then
  8.       set display to display & char 1 to maxnum of getAt(CDTypeList, g) & RETURN
  9.       next repeat
  10.     end if
  11.     set display to display & getAt(CDTypeList, g) & RETURN
  12.   end repeat
  13.   put display into field "RVXRESType"
  14.   set the textSize of member "RVXRESType" to 9
  15.   set the boxType of member "RVXRESType" to #adjust
  16.   if the machineType > 200 then
  17.     set the textFont of member "RVXRESType" to "arial"
  18.   else
  19.     set the textFont of member "RVXRESType" to "geneva"
  20.   end if
  21.   set display to EMPTY
  22.   put EMPTY into field "RVXRESProd"
  23.   set maxnum to getAt(RVXNumCharList, 2)
  24.   repeat with g = 1 to count(CDProdList)
  25.     if the number of chars in getAt(CDProdList, g) > maxnum then
  26.       set display to display & char 1 to maxnum of getAt(CDProdList, g) & RETURN
  27.       next repeat
  28.     end if
  29.     set display to display & getAt(CDProdList, g) & RETURN
  30.   end repeat
  31.   put display into field "RVXRESProd"
  32.   set the textSize of member "RVXRESProd" to 9
  33.   set the boxType of member "RVXRESProd" to #adjust
  34.   if the machineType > 200 then
  35.     set the textFont of member "RVXRESProd" to "arial"
  36.   else
  37.     set the textFont of member "RVXRESProd" to "geneva"
  38.   end if
  39.   set display to EMPTY
  40.   put EMPTY into field "RVXRESSupp"
  41.   set maxnum to getAt(RVXNumCharList, 3)
  42.   repeat with g = 1 to count(RVSupplist)
  43.     if the number of chars in getAt(RVSupplist, g) > maxnum then
  44.       set display to display & char 1 to maxnum of getAt(RVSupplist, g) & RETURN
  45.       next repeat
  46.     end if
  47.     set display to display & getAt(RVSupplist, g) & RETURN
  48.   end repeat
  49.   put display into field "RVXRESSupp"
  50.   set the textSize of member "RVXRESSupp" to 9
  51.   set the boxType of member "RVXRESSupp" to #adjust
  52.   if the machineType > 200 then
  53.     set the textFont of member "RVXRESSupp" to "arial"
  54.   else
  55.     set the textFont of member "RVXRESSupp" to "geneva"
  56.   end if
  57.   set display to EMPTY
  58.   put EMPTY into field "RVXRESDept"
  59.   set maxnum to getAt(RVXNumCharList, 4)
  60.   repeat with g = 1 to count(CDDeptList)
  61.     if the number of chars in getAt(CDDeptList, g) > maxnum then
  62.       set display to display & char 1 to maxnum of getAt(CDDeptList, g) & RETURN
  63.       next repeat
  64.     end if
  65.     set display to display & getAt(CDDeptList, g) & RETURN
  66.   end repeat
  67.   put display into field "RVXRESDept"
  68.   set the textSize of member "RVXRESDept" to 9
  69.   set the boxType of member "RVXRESDept" to #adjust
  70.   if the machineType > 200 then
  71.     set the textFont of member "RVXRESDept" to "arial"
  72.   else
  73.     set the textFont of member "RVXRESDept" to "geneva"
  74.   end if
  75.   set display to EMPTY
  76.   put EMPTY into field "RVXRESCate"
  77.   set maxnum to getAt(RVXNumCharList, 5)
  78.   repeat with g = 1 to count(CDCateList)
  79.     if the number of chars in getAt(CDCateList, g) > maxnum then
  80.       set display to display & char 1 to maxnum of getAt(CDCateList, g) & RETURN
  81.       next repeat
  82.     end if
  83.     set display to display & getAt(CDCateList, g) & RETURN
  84.   end repeat
  85.   put display into field "RVXRESCate"
  86.   set the textSize of member "RVXRESCate" to 9
  87.   set the boxType of member "RVXRESCate" to #adjust
  88.   if the machineType > 200 then
  89.     set the textFont of member "RVXRESCate" to "arial"
  90.   else
  91.     set the textFont of member "RVXRESCate" to "geneva"
  92.   end if
  93.   set display to EMPTY
  94.   put EMPTY into field "RVXRESissu"
  95.   set maxnum to getAt(RVXNumCharList, 6)
  96.   repeat with g = 1 to count(CDIssuList)
  97.     if the number of chars in getAt(CDIssuList, g) > maxnum then
  98.       set display to display & char 1 to maxnum of getAt(CDIssuList, g) & RETURN
  99.       next repeat
  100.     end if
  101.     set display to display & getAt(CDIssuList, g) & RETURN
  102.   end repeat
  103.   put display into field "RVXRESissu"
  104.   set the textSize of member "RVXRESissu" to 9
  105.   set the boxType of member "RVXRESissu" to #adjust
  106.   if the machineType > 200 then
  107.     set the textFont of member "RVXRESissu" to "arial"
  108.   else
  109.     set the textFont of member "RVXRESissu" to "geneva"
  110.   end if
  111.   set display to EMPTY
  112.   put EMPTY into field "RVXRESPage"
  113.   set maxnum to getAt(RVXNumCharList, 7)
  114.   repeat with g = 1 to count(CDPageList)
  115.     if the number of chars in getAt(CDPageList, g) > maxnum then
  116.       set display to display & char 1 to maxnum of getAt(CDPageList, g) & RETURN
  117.       next repeat
  118.     end if
  119.     set display to display & getAt(CDPageList, g) & RETURN
  120.   end repeat
  121.   put display into field "RVXRESPage"
  122.   set the textSize of member "RVXRESPage" to 9
  123.   set the boxType of member "RVXRESPage" to #adjust
  124.   if the machineType > 200 then
  125.     set the textFont of member "RVXRESPage" to "arial"
  126.   else
  127.     set the textFont of member "RVXRESPage" to "geneva"
  128.   end if
  129.   set display to EMPTY
  130.   put EMPTY into field "RVXRESCont"
  131.   set maxnum to getAt(RVXNumCharList, 8)
  132.   repeat with g = 1 to count(CDContList)
  133.     if the number of chars in getAt(CDContList, g) > maxnum then
  134.       set display to display & char 1 to maxnum of getAt(CDContList, g) & RETURN
  135.       next repeat
  136.     end if
  137.     set display to display & getAt(CDContList, g) & RETURN
  138.   end repeat
  139.   put display into field "RVXRESCont"
  140.   set the textSize of member "RVXRESCont" to 9
  141.   set the boxType of member "RVXRESCont" to #adjust
  142.   if the machineType > 200 then
  143.     set the textFont of member "RVXRESCont" to "arial"
  144.   else
  145.     set the textFont of member "RVXRESCont" to "geneva"
  146.   end if
  147.   if the member of sprite 20 = member "RVXSomethingGraphic" then
  148.   else
  149.     repeat with t = 1 to count(RVXSearchMasterList)
  150.       if getAt(getAt(RVXSearchMasterList, t), 1) <> 31 then
  151.         set the locH of sprite getAt(getAt(RVXSearchMasterList, t), 1) to 2000
  152.       end if
  153.     end repeat
  154.     set the member of sprite RVXScrollBarSprite to member "RVXScrollBar"
  155.     set the loc of sprite RVXScrollBarSprite to point(320, 118)
  156.     set the ink of sprite RVXScrollBarSprite to 36
  157.     set the member of sprite RVXScrollBoxSprite to member "RVXScrollBox"
  158.     set the loc of sprite RVXScrollBoxSprite to point(38, 118)
  159.     set the ink of sprite RVXScrollBoxSprite to 0
  160.   end if
  161.   if RVXpageselect > 0 then
  162.     put "Table" && RVXpageselect && "of " && integer(RVXrecordsfound / 18) + 1 into field "RVXpagexofy"
  163.     set the textSize of member "RVXpagexofy" to 12
  164.     set the boxType of member "RVXpagexofy" to #fixed
  165.     if the machineType > 200 then
  166.       set the textFont of member "RVXpagexofy" to "arial"
  167.     else
  168.       set the textFont of member "RVXpagexofy" to "geneva"
  169.     end if
  170.     set the textStyle of member "RVXpagexofy" to "bold"
  171.   else
  172.     put "Table 1 of 1" into field "RVXpagexofy"
  173.   end if
  174.   repeat with t = 1 to count(RVXResFieldsList)
  175.     set the member of sprite getAt(getAt(RVXResFieldsList, t), 1) to member getAt(getAt(RVXResFieldsList, t), 5)
  176.     set the loc of sprite getAt(getAt(RVXResFieldsList, t), 1) to point(getAt(getAt(RVXResFieldsList, t), 2), getAt(getAt(RVXResFieldsList, t), 3))
  177.     set the ink of sprite getAt(getAt(RVXResFieldsList, t), 1) to getAt(getAt(RVXResFieldsList, t), 4)
  178.   end repeat
  179.   set the member of sprite RVXTitle to member "RVXResult"
  180.   set the member of sprite 4 to member "RVXExplanation"
  181.   set the loc of sprite 4 to point(262, 451)
  182.   set the ink of sprite 4 to 36
  183.   set the member of sprite 20 to member "RVXSomethingGraphic"
  184.   set the loc of sprite 20 to point(209, 156)
  185.   set the ink of sprite 20 to 36
  186.   put "RVXrecordsfound", RVXrecordsfound
  187.   if RVXrecordsfound > 18 then
  188.     if (the member of sprite 31 = member "RVXPREVIOUS") or (the member of sprite 31 = member "RVXPreviousRedOne") or (the member of sprite 31 = member "RVXPreviousRedTwo") then
  189.     else
  190.       set the locH of sprite 31 to 2000
  191.     end if
  192.     set the member of sprite 31 to member "RVXPREVIOUS"
  193.     set the member of sprite 32 to member "RVXNEXT"
  194.     if RVXpageselect = (integer(RVXrecordsfound / 18) + 1) then
  195.       set the locH of sprite 32 to 2000
  196.     else
  197.       set the loc of sprite 32 to point(95, 420)
  198.     end if
  199.   end if
  200.   set the castNum of sprite 33 to the number of member "RVXpagexofy"
  201.   set the loc of sprite 33 to point(21, 388)
  202.   set the ink of sprite 33 to 36
  203.   updateStage()
  204. end
  205.