home *** CD-ROM | disk | FTP | other *** search
/ Chip: 25 Years Anniversary / CHIP_25Jahre_Jubilaeum.iso / downloads / 401065 / WPO11 / Data1.cab / _D9A7EBB92CE74396B95C43F9CC77E754 < prev    next >
Text File  |  2003-03-07  |  6KB  |  226 lines

  1. {QUERY}
  2.  
  3. Syntax
  4.  
  5. Query()
  6.  
  7. Description
  8.  
  9. {QUERY} repeats the last Notebook Query operation performed.
  10.  
  11. {Query}
  12.  
  13. Syntax
  14.  
  15. {Query.Option}
  16.  
  17. PerfectScript Syntax
  18.  
  19. Query_Assign_Names ()
  20.  
  21. Query_Criteria_Table (Block:String)
  22.  
  23. Query_Database_Block (Block:String)
  24.  
  25. Query_Delete ()
  26.  
  27. Query_EndLocate ()
  28.  
  29. Query_Extract ()
  30.  
  31. Query_Locate ()
  32.  
  33. Query_Output_Block (Block:String)
  34.  
  35. Query_Reset ()
  36.  
  37. Query_Unique ()
  38.  
  39. Description
  40.  
  41. {Query} lets you set up a Quattro Pro database and search for records in that database. {Query.Locate} enters FIND mode and stays under macro control until {PAUSEMACRO} is used or {Query.EndLocate}, which exits FIND mode.
  42.  
  43. You can use {Query?} or {Query!} to display the Notebook Data Query dialog box. {Query?} lets you manipulate the dialog box, whereas {Query!} relies on the macro to manipulate it.
  44.  
  45. Example
  46.  
  47. The following macro sets up database cells and criteria table (A2..G37 and H1..H2), searches for records using the criteria table, sets up output cells at J2..P2, and copies any records found there.
  48.  
  49. {Query.Database_Block A2..G37}
  50.  
  51. {Query.Criteria_Table H1..H2}
  52.  
  53. {Query.Locate}
  54.  
  55. {Query.EndLocate}
  56.  
  57. {Query.Output_Block J2..P2}
  58.  
  59. {Query.Extract}
  60.  
  61. Options
  62.  
  63. {Query.Assign_Names}    Assigns cell names to fields so you can use them in search queries
  64.  
  65. {Query.Criteria_Table Block}    Specifies cells containing search conditions, including field names
  66.  
  67. {Query.Database_Block Block}    Specifies the data, including field names, to search
  68.  
  69. {Query.Delete}    Deletes all records that meet the search criteria
  70.  
  71. {Query.Extract}    Copies all records that meet the search criteria to the output cells
  72.  
  73. {Query.Locate}    Highlights all records that meet the search criteria
  74.  
  75. {Query.Output_Block Block}    Specifies the cells where you want to copy records and field names that meet the search criteria
  76.  
  77. {Query.Reset}    Removes all selection settings
  78.  
  79. {Query.Unique}    Copies records like Extract, but skips duplicate records
  80.  
  81. {QuickCorrect}
  82.  
  83. Syntax
  84.  
  85. QuickCorrect(Enable_ As _QuickCorrect_Enable__enum)
  86.  
  87. PerfectScript Syntax
  88.  
  89. QuickCorrect (Enable?:Enumeration {1!; 0!})
  90.  
  91. Description
  92.  
  93. {QuickCorrect} replaces common spelling errors and mistyped words; it can also be used to automatically expand abbreviations. {QuickCorrect 1} activates the QuickCorrect feature; {QuickCorrect 0} turns it off.
  94.  
  95. {QuickFilter.Go}
  96.  
  97. Syntax
  98.  
  99. QuickFilter_Go([Block_ As String], [OpCode1_ As String], [Value1_ As String], [Conditional1_ As String], [OpCode2_ As String], [Value2_ As String], [Conditional2_ As String], [OpCode3_ As String], [Value3_ As String])
  100.  
  101. PerfectScript Syntax
  102.  
  103. QuickFilter_Go ([Block?:String]; [OpCode1?:String]; [Value1?:String]; [Conditional1?:String]; [OpCode2?:String]; [Value2?:String]; [Conditional2?:String]; [OpCode3?:String]; [Value3?:String])
  104.  
  105. Description
  106.  
  107. Performs QuickFilter operations on cells. You can have 2, 5, or 7 optional args.
  108.  
  109. Example:
  110.  
  111. {QuickFilter.Go A:A1}
  112.  
  113. Equivalent to "Show All." Flushes ALL filters associated with Column A
  114.  
  115. {QuickFilter.Go A:B5;equal to""}
  116.  
  117. Equivalent to "Blanks." Filters all rows out except for those with blanks in Column B.
  118.  
  119. {QuickFilter.Go A:F24;not equal to""}
  120.  
  121. Equivalent to "Non Blanks." Filters out all rows except for those without blanks in Column F.
  122.  
  123. Parameters
  124.  
  125. OpCode#    "Equal to," or "not equal to," "greater than," "less than," "greater than or equal to," "less than or equal to," "begins with," "does not begin with," "ends with," "does not end with," "contains," "does not contain."
  126.  
  127. Arg#    Can be numeric, or a string. Wildcards are not valid.
  128.  
  129. Conditional#    AND or OR
  130.  
  131. {QuickFilter.Toggle}
  132.  
  133. Syntax
  134.  
  135. QuickFilter_Toggle([Block_ As String])
  136.  
  137. PerfectScript Syntax
  138.  
  139. QuickFilter_Toggle ([Block?:String])
  140.  
  141. Description
  142.  
  143. Turns on/off QuickFilters for the current cells.
  144.  
  145. {QuickFilter.TopGo}
  146.  
  147. Syntax
  148.  
  149.  QuickFilter_TopGo([Block_ As String], [OpCode1_ As String], [Value1_ As Integer])
  150.  
  151. PerfectScript Syntax
  152.  
  153. QuickFilter_TopGo ([Block?:String]; [OpCode1?:String]; [Value1?:Numeric])
  154.  
  155. Description
  156.  
  157. Performs QuickFilter operations on cells.
  158.  
  159. Example:
  160.  
  161. {QuickFilter.TopGo A:C51;top value;10}
  162.  
  163. Equivalent to Top Ten Values. Filters out all rows except for those that contain the top 10 values in column C.
  164.  
  165. {QuickFilter.TopGo A:E17;bottom percent;23}
  166.  
  167. Equivalent to Bottom 23 Percent. Filters out all rows except for those that contain the bottom 23% in column E.
  168.  
  169. Parameters
  170.  
  171. OpCode    "Top value," "top percent," "bottom value," "bottom percent"
  172.  
  173. Arg    Must be numeric. Wildcards are not valid.
  174.  
  175. {QuickFunction}
  176.  
  177. Syntax
  178.  
  179. QuickFunction(Name_ As String, [Block_ As String])
  180.  
  181. PerfectScript Syntax
  182.  
  183. QuickFucntion(Name?: String!, Block?: <Block>)
  184.  
  185. Description
  186.  
  187. {QuickFunction} is equivalent to selecting cells and clicking the QuickFunction button on the toolbar. Block includes rows and/or columns to sum plus adjacent empty cells to hold the results. The default Block is the current selection.
  188.  
  189. Parameters
  190.  
  191. Name    SUM, MIN, MAX, AVG, PUREAVG, MULT, PMT, RATE, IRATE, TERM, PV, FV
  192.  
  193. Block    A database block including field labels and records
  194.  
  195.  
  196.  
  197. {QUIT}
  198.  
  199. Syntax
  200.  
  201. Quit()
  202.  
  203. Description
  204.  
  205. {QUIT} ends all macro execution, and returns control of Quattro Pro to you.
  206.  
  207. Example
  208.  
  209. The following macro displays a menu that has a "Quit" option, which returns you to Ready mode.
  210.  
  211. quit_menu    Continue    Quit
  212.  
  213.         Keep going    Quit to Ready mode
  214.  
  215.         {BRANCH \G}    {QUIT}
  216.  
  217.  
  218.  
  219. \G    {MENUBRANCH quit_menu}
  220.  
  221.  
  222.  
  223.  
  224.  
  225.  
  226.