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

  1. {MACROS}
  2.  
  3. Description
  4.  
  5. {MACROS} is equivalent to the Macros key, Shift+F3, which displays a menu of macro commands to type into the input line.
  6.  
  7. {MapExpert}
  8.  
  9. Description
  10.  
  11. {MapExpert} displays the first Map Expert dialog box. The macro has no arguments.
  12.  
  13. {MapNew}
  14.  
  15. Syntax
  16.  
  17. {MapNew Name,<UseBlock>}
  18.  
  19. Description
  20.  
  21. {MapNew} creates maps that display data, using colors or patterns to distinguish regions from each other.
  22.  
  23. Parameters
  24.  
  25. Name    Name of the new map
  26.  
  27. UseBlock    1 to create the map using data in the current cells
  28.  
  29. {MARK}
  30.  
  31. Description
  32.  
  33. {MARK} is equivalent to the Select key, Shift+F7, which lets you begin selection of cells.
  34.  
  35. {MCORREL}
  36.  
  37. Syntax
  38.  
  39. {MCORREL InBlock, OutBlock, <Grouped>, <Labels>}
  40.  
  41. PerfectScript Syntax
  42.  
  43. MCORREL (InBlock:String; OutBlock:String; [Grouped:String]; [Labels?:Enumeration {Yes!; No!}])
  44.  
  45. Description
  46.  
  47. {MCORREL} computes the correlation matrix between two or more data sets. {MCORREL} is equivalent to the Correlation analysis tool.
  48.  
  49. Parameters
  50.  
  51. InBlock    Input cells containing two or more sets of numeric data arranged in columns or rows
  52.  
  53. OutBlock    Upper-left cell of the output cells
  54.  
  55. Grouped    "C" to group results by column or "R" to group results by row; the default is "C"
  56.  
  57. Labels    1 if labels are located in the first column or row of the input cells; 0 if the input cells do not contain labels; the default is 0
  58.  
  59. {MCOVAR}
  60.  
  61. Syntax
  62.  
  63. {MCOVAR InBlock, OutBlock, <Grouped>, <Labels>}
  64.  
  65. PerfectScript Syntax
  66.  
  67. MCOVAR (InBlock:String; OutBlock:String; [Grouped:String]; [Labels?:Enumeration {Yes!; No!}])
  68.  
  69. Description
  70.  
  71. {MCOVAR} returns the covariance matrix between two or more data sets. {MCOVAR} is equivalent to the Covariance analysis tool.
  72.  
  73. Parameters
  74.  
  75. InBlock    Input cells containing two or more sets of numeric data arranged in columns or rows
  76.  
  77. OutBlock    upper-left cell of the output cells
  78.  
  79. Grouped    "C" to group results by column or "R" to group results by row; the default is "C"
  80.  
  81. Labels    1 if labels are located in the first column or row of the input cells; 0 if the input cells do not contain labels; the default is 0
  82.  
  83. {MENU}
  84.  
  85. Description
  86.  
  87. {MENU} is equivalent to the Menu key (Alt or F10). This command moves the selector to the menu bar and highlights the first menu.
  88.  
  89. {MENUBRANCH}
  90.  
  91. Syntax
  92.  
  93. {MENUBRANCH Location}
  94.  
  95. Description
  96.  
  97. {MENUBRANCH} pauses macro execution to display the custom pop-up menu stored at Location. After you choose an item from the menu, macro execution continues with the cell below the description of the menu choice. Often this is a {BRANCH}. The only exception is if you press Esc or click outside the menu; in this case, the macro continues in the {MENUBRANCH} cell.
  98.  
  99. With the exception of the Esc key, a custom pop-up menu acts the same as one of Quattro Pro's own menus. You can press the arrow keys to look at each item, and can choose a menu item by pressing Enter while highlighting it, pressing the first letter of the menu item's name, or choosing it with the mouse.
  100.  
  101. Example
  102.  
  103. The following macro displays a custom menu that offers you three choices. If you press Esc, the menu is redisplayed with {BRANCH \F}.
  104.  
  105. quit_menu    Continue    Return    Quit
  106.  
  107.     Continue macro    Return to Ready    Leave Quattro Pro
  108.  
  109.     {BRANCH \F}    {BRANCH _continue}    {MENUBRANCH sure}
  110.  
  111.             
  112.  
  113. sure    No    Yes    
  114.  
  115.     Stay in Quattro Pro    Return to DOS    
  116.  
  117.     {BRANCH \F}    {FileExit}    
  118.  
  119.             
  120.  
  121. \F    {MENUBRANCH quit_menu}        
  122.  
  123.     {BRANCH \F}        
  124.  
  125. _continue            
  126.  
  127. Parameters
  128.  
  129. Location    cells containing menu cells
  130.  
  131. Note
  132.  
  133.   This command is obsolete
  134.   
  135. {MENUCALL}
  136.  
  137. Syntax
  138.  
  139. {MENUCALL Location}
  140.  
  141. Description
  142.  
  143. {MENUCALL} pauses macro execution and displays the custom pop-up menu stored at Location. It treats the called menu as a subroutine. After you choose an item from the menu, macro execution continues in the cell containing {MENUCALL}.
  144.  
  145. See {ADDMENU} and {ADDMENUITEM} for information on adding menus or menu items to the Quattro Pro menu bar.
  146.  
  147. Example
  148.  
  149. The following macro uses two consecutive custom menus to let you change search criteria for a database. It then copies records that meet the criteria to the output cells and branches to another macro to print the output cells as labels. The cell name stat references the cell in the criteria table containing A in the example; pay references the cell in the criteria table containing F.
  150.  
  151. m_status    Active    Retired
  152.  
  153.     Active Members     Retired Members
  154.  
  155.     {LET stat, "A"}    {LET stat, "R"}
  156.  
  157.         
  158.  
  159. m_paid    Paid    Unpaid
  160.  
  161.     Dues are paid    Dues are unpaid
  162.  
  163.     {LET pay, "T"}    {LET pay, "F"}
  164.  
  165.         
  166.  
  167. \M    {;Choose members for label print}    
  168.  
  169.     {MENUCALL m_status}    
  170.  
  171.     {MENUCALL m_paid}    
  172.  
  173.     {Query.Extract}    
  174.  
  175.     {BRANCH print_labels}    
  176.  
  177.  
  178.  
  179. Database Criteria Cells:
  180.  
  181.  
  182.  
  183.     STATUS    PAID
  184.  
  185.     A    F
  186.  
  187. Parameters
  188.  
  189. Location    Cells containing a custom Quattro pro menu
  190.  
  191. {MESSAGE}
  192.  
  193. Syntax
  194.  
  195. {MESSAGE Block,Left,Top,Time}
  196.  
  197. Description
  198.  
  199. {MESSAGE} displays the contents of Block in a dialog box until Time is reached; Time is a standard Quattro Pro date/time serial number (decimal portion). The window appears at the screen (not the notebook) coordinates Left,Top.
  200.  
  201. The message box contains a "snapshot" of current Block contents, including all fonts, colors, and other formatting. If Block includes a floating chart, bitmap, or macro button, its image displays in the message cells.
  202.  
  203. The height and width of the message box depend on the defined width and depth of Block. If text overflows the cell it is typed into, be sure to include adjoining cells in Block. Otherwise, the message will be truncated at the edge of Block.
  204.  
  205. The message box always appears over the frontmost window, even if that window is not a notebook (for example, a chart window).
  206.  
  207. If you enter 0 for Time, Quattro Pro displays the box until you press any key. (You can use {GRAPHCHAR} to test for which key is pressed.)
  208.  
  209. Example
  210.  
  211. This example displays a message box for 15 seconds and then displays another box indefinitely. If you press Y, the macro closes the notebook without saving it. If you press N (which is returned in the cells the_key), you remove the second message box.
  212.  
  213. the_key
  214.  
  215.  
  216.  
  217. \A    {MESSAGE msg1,15,5,+@NOW+@TIME(0,0,15)}
  218.  
  219.  
  220.  
  221. _warning    {MESSAGE msg2,15,5,0}
  222.  
  223.         {GRAPHCHAR the_key}
  224.  
  225.         {IF @UPPER(the_key)="Y"}{BRANCH _lose_data}
  226.  
  227.  
  228.  
  229. msg1    Warning! You may lose data if you continue.
  230.  
  231.  
  232.  
  233. msg2    Are you sure you want to continue?
  234.  
  235.         Press Y to continue or any other key to cancel...
  236.  
  237. _lose_data    {FileClose 0}
  238.  
  239.  
  240.  
  241. Parameters
  242.  
  243. Block    Cell name or coordinates of the text and/or floating object to display in the message box
  244.  
  245. Left    Screen column number (counting from 0) where the top-left corner of the box should appear
  246.  
  247. Top    Screen line number (counting from 0) where the top left corner of the box should appear
  248.  
  249. Time    Quattro Pro time serial number
  250.  
  251. {MOVEAVG}
  252.  
  253. Syntax
  254.  
  255. {MOVEAVG InBlock, OutBlock, <Interval>, <StdErrs>}
  256.  
  257. PerfectScript Syntax
  258.  
  259. MOVEAVG (InBlock:String; OutBlock:String; Interval:Numeric; [StdErrs?:Enumeration {Yes!; No!}])
  260.  
  261. Description
  262.  
  263. {MOVEAVG} returns a moving average for a specified Interval based on the values for the preceding periods in InBlock. {MOVEAVG} is equivalent to the Moving Average analysis tool.
  264.  
  265. Parameters
  266.  
  267. InBlock    Input cells containing a single column or row with at least four numeric values; the cells must not contain labels
  268.  
  269. OutBlock    Upper-left cell of the output cells
  270.  
  271. Interval    Number of values to include in the moving average; the default is 3
  272.  
  273. StdErrs    Flag indicating whether to include standard error values in the OutBlock: yes (1) or no (0); the default is 0
  274.  
  275. {MOVETO}
  276.  
  277. Syntax
  278.  
  279. {MOVETO x,y}
  280.  
  281. PerfectScript Syntax
  282.  
  283. MoveTo (x:Numeric; y:Numeric)
  284.  
  285. Description
  286.  
  287. {MOVETO} moves all selected objects in the active window (dialog, chart, or Objects sheet window) to the position specified by x,y. Since {MOVETO} is context sensitive, you can use it to move controls in a dialog window or drawings in a chart window. It also moves chart icons on the Objects sheet. (Use {FLOATMOVE} to move floating objects in a notebook window.)
  288.  
  289. The coordinates x and y represent where to move the upper-left corner of the object(s). Object size does not change.
  290.  
  291. Parameters
  292.  
  293. x,y    Position to move the currently selected object(s) to in pixels
  294.  
  295. {MTGAMT}
  296.  
  297. Syntax
  298.  
  299. {MTGAMT <OutBlock>, <Rate>, <Term>, <OrigBal>, <EndBal>, <LastYear>}
  300.  
  301. PerfectScript Syntax
  302.  
  303. MTGAMT ([OutBlock:String]; [Rate:Numeric]; [Term:Numeric]; [OrigBal:Numeric]; [EndBal:Numeric]; [LastYear:Numeric])
  304.  
  305. Description
  306.  
  307. {MTGAMT} generates an amortization schedule for a mortgage. {MTGAMT} is equivalent to the Amortization Schedule analysis tool.
  308.  
  309. Parameters
  310.  
  311. OutBlock    Upper-left cell of the output cells
  312.  
  313. Rate    Yearly interest rate; the default is 0.12
  314.  
  315. Term    Number of years in the loan; the default is 30 years; can be a fractional value to designate months (for example, 3+5/12)
  316.  
  317. OrigBal    Original loan balance; the default is $100,000
  318.  
  319. EndBal    Balance at loan completion; the default is $0
  320.  
  321. LastYear    Last year through which the amortization period is generated; the default is equal to Term (the end of the loan); can be a fractional value to designate months (for example, 3+5/12)
  322.  
  323. {MTGREFI}
  324.  
  325. Syntax
  326.  
  327. {MTGREFI <OutBlock>, <CurrBal>, <CurrRate>, <RemTerm>, <CandPctFees>, <CandRate>}
  328.  
  329. PerfectScript Syntax
  330.  
  331. MTGREFI (OutBlock:String; [CurrBal:Numeric]; [CurrRate:Numeric]; [RemTerm:Numeric]; [CandPctFees:Numeric]; [CandRate:Numeric])
  332.  
  333. Description
  334.  
  335. {MTGREFI} generates a table of information relating to refinancing a mortgage. {MTGREFI} is equivalent to the Mortgage Refinancing analysis tool.
  336.  
  337. Parameters
  338.  
  339. OutBlock    Upper-left cell of the output cells
  340.  
  341. CurrBal    Remaining principal on the current loan
  342.  
  343. CurrRate    Annual interest rate on the current loan
  344.  
  345. RemTerm    Remaining term on the current loan
  346.  
  347. CandPctFees    Percentage fees ("points") for the candidate loan
  348.  
  349. CandRate    Annual interest rate for the candidate loan
  350.  
  351. {Multiply}
  352.  
  353. Syntax
  354.  
  355. {Multiply.Option}
  356.  
  357. PerfectScript Syntax
  358.  
  359. Multiply_Destination (Block:String)
  360.  
  361. Multiply_Go ()
  362.  
  363. Multiply_Matrix_1 (Block:String)
  364.  
  365. Multiply_Matrix_2 (Block:String)
  366.  
  367. Description
  368.  
  369. {Multiply} multiplies one matrix ({Multiply.Matrix_1 Block}) by another ({Multiply.Matrix_2 Block}) and stores the product in other cells ({Multiply.Destination Block}). Use {Multiply.Go} after the other matrix-multiplication command equivalents to complete the operation.
  370.  
  371. You can use this command equivalent with {Invert.Option} to solve sets of linear equations.
  372.  
  373. You can use {Multiply?} or {Multiply!} to display the Matrix Multiply dialog box. {Multiply?} lets you manipulate the dialog box, whereas {Multiply!} relies on the macro to manipulate it.
  374.  
  375. Example
  376.  
  377. This macro multiplies cells C2..D6 by cells C18..G19 and stores the results in the cells with upper-left cell F1.
  378.  
  379. {Multiply.Matrix_1 A:C2..D6}
  380.  
  381. {Multiply.Matrix_2 A:C18..G19}
  382.  
  383. {Multiply.Destination A:F1}
  384.  
  385. {Multiply.Go}
  386.  
  387. Options
  388.  
  389. {Multiply.Destination Block}    Specifies the top-left cell of the area where you want to write the resulting matrix
  390.  
  391. {Multiply.Go}    Executes the multiplication
  392.  
  393. {Multiply.Matrix_1 Block}    Specifies the first matrix to multiply
  394.  
  395. {Multiply.Matrix_2 Block}    Specifies the second matrix to multiply
  396.  
  397.  
  398.  
  399.  
  400.  
  401.  
  402.