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

  1. {  }
  2.  
  3. Description
  4.  
  5. {  } does nothing; use it to reserve space or insert blank lines in the macro without stopping it. Corel Quattro Pro continues running the macro command following {  }.
  6.  
  7. See { ; } and {STEPON} for examples.
  8.  
  9.     Related topics
  10.  
  11. {;}
  12.  
  13. Syntax
  14.  
  15. {;String}
  16.  
  17. Description
  18.  
  19. { ; } lets you add explanatory remarks or comments to a macro. When Corel Quattro Pro encounters this macro command, it skips over it.
  20.  
  21. { ; } is a convenient way to temporarily hide other macro commands, such as a branch to an incomplete macro.
  22.  
  23. Example
  24.  
  25. This example runs the _int_update subroutine, which calculates interest to date, then branches to the_print_inv subroutine to print the invoice. Notice how the comments embedded in the macro help make it easier to follow.
  26.  
  27. {; calculate interest to date}
  28.  
  29. {_int_update}
  30.  
  31. {  }
  32.  
  33. {; print the invoice}
  34.  
  35. {BRANCH _print_inv}
  36.  
  37. Parameters
  38.  
  39. Parameter    Description
  40.  
  41. String    numbers or letters up to 1020
  42.  
  43.     Related topics
  44.  
  45. { ? }
  46.  
  47. Description
  48.  
  49. { ? } pauses macro execution and lets macro users press function keys, access menus, and choose commands until Enter is pressed. At that point the macro resumes execution.
  50.  
  51. Since this command gives users complete program control, use it with caution.
  52.  
  53. You must append a {CR} or ~ command after the { ? } to complete any user entry that requires Enter. For example, if the macro { ? } was used, and the user typed 67 then pressed Enter, the value would remain on the input line at the top of the application window even though the macro resumes. {CR} or ~ (or pressing Enter again) would then enter 67 into the cell.
  54.  
  55. Example
  56.  
  57. This macro selects cell E15, enters the label Check Number? in the cell to act as a prompt, then passes control to the keyboard so the user can enter a check number. The information the user enters replaces the Check Number? prompt.
  58.  
  59. {EditGoto E15}
  60.  
  61. {PUTCELL "Check Number?"}
  62.  
  63. {?}~
  64.  
  65.     Related topics
  66.  
  67. {ABS}
  68.  
  69. Syntax
  70.  
  71. {ABS <Number>}
  72.  
  73. Description
  74.  
  75. {ABS} is equivalent to the Abs key, F4. The {ABS} macro converts relative cell addresses to absolute addresses. Number provides control over what part of the formula converts to an absolute address. {ABS 1} is equivalent to pressing F4 one time with the cell address selected; {ABS 2} is equivalent to pressing F4 twice, and so on, up to 8. If Number is missing, {ABS 1} is assumed.
  76.  
  77. {ABS} is most commonly used to create absolute addresses, which are handy for referencing a constant value that appears in only one place in a notebook but is copied in several formulas. The advantage of using absolute addresses is that formulas do not have to be edited if the absolute addresses are created before the formula is copied.
  78.  
  79. Tips
  80.  
  81. ¿    Include the {EDIT} command before {ABS} to make sure Edit mode is active.
  82.  
  83. Example
  84.  
  85. The following example converts the formula in the active cell with a relative cell address to an absolute cell address. Then it copies the formula to a new location five cells below and five cells to the right of the active cell.
  86.  
  87. \A    {EDIT}{ABS}~
  88.  
  89.         {BlockCopy C(0)R(0),C(5)R(5)}
  90.  
  91. Parameters
  92.  
  93. Parameter    Description
  94.  
  95. Number    1 through 8; 1 = pressing F4 once, 2 = pressing F4 twice, and so on (optional)
  96.  
  97.     Related topics
  98.  
  99. {ACTIVATE}
  100.  
  101. Syntax
  102.  
  103. {ACTIVATE WindowName}
  104.  
  105. You can find the name of a window on its title bar.
  106.  
  107. Description
  108.  
  109. {ACTIVATE} makes the window specified by the string WindowName active.
  110.  
  111. Example
  112.  
  113. To make the named chart PROFITS (in the notebook REPORT.WB3) active, use
  114.  
  115.     {ACTIVATE "C:\SALES\REPORT.WB3:PROFITS"}
  116.  
  117. Use the same syntax for activating dialog windows. To make the notebook itself active, use
  118.  
  119.     {ACTIVATE "C:\SALES\REPORT.WB3"}
  120.  
  121. Parameters
  122.  
  123. Parameter    Description
  124.  
  125. WindowName    name of the window to make active
  126.  
  127.     Related topics
  128.  
  129. {ADDMENU}
  130.  
  131. Syntax
  132.  
  133. {ADDMENU MenuPath, MenuBlk}
  134.  
  135. Description
  136.  
  137. {ADDMENU} lets you add menus to the active menu system. (Use {ADDMENUITEM} to add individual menu items to the active menu system.) MenuPath is a string that specifies where the new menu should appear. For example, to insert a menu before the Edit menu, use /Edit; to insert a menu before the Copy command on the Edit menu, use /Edit/Copy. You can use <- and -> to place a menu at the top or before the bottom of a menu, respectively. For example, /File/<- specifies the first item on the File menu.
  138.  
  139. You can also use numbers to identify menu items. For example, /File/0 specifies the first item on the File menu (the ID numbers start at zero). When identifying a menu item with numbers, divider lines are considered menu items (for example, /File/5 specifies the first divider line on the File menu, not Properties).
  140.  
  141. MenuBlk includes the cells containing a menu definition. MenuBlk must include all cells in the new menu.
  142.  
  143. Tips
  144.  
  145. ¿    You can only add new menus to the menu bar on either side of the Edit and Tools menus--that is, one position to the left or right of the Edit menu and one position to the left or right of the Tools menu. The area between these menu positions is reserved for menus that change depending on the active window. Likewise, you cannot delete menus within this menu, either. You can add menu items to menus between the Edit and Tools menus, but the new menu items will be swapped out of the menu when the context changes.
  146.  
  147. ¿    Changes made to the menu system using this command are not saved; they are lost when you exit Corel Quattro Pro. Each time you run a macro containing {ADDMENU}, the menu changes appear again.
  148.  
  149. ¿    To restore the original menu bar, use the macro command {SETMENUBAR} without an argument.
  150.  
  151. Parameters
  152.  
  153. Parameter    Description
  154.  
  155. MenuPath    location in the menu system to insert a new menu
  156.  
  157. MenuBlk    location in the menu system to insert a new menu
  158.  
  159.     Related topics
  160.  
  161. {ADDMENUITEM}
  162.  
  163. Syntax
  164.  
  165. {ADDMENUITEM MenuPath, Name, <Link>, <Hint>, <HotKey>, <DependString>, <Checked>}
  166.  
  167. Description
  168.  
  169. {ADDMENUITEM} is like {ADDMENU}, but inserts a single menu item before MenuPath instead of a new menu.
  170.  
  171. See the description of {ADDMENU} for the syntax of MenuPath. Name is the name of the new menu item; if a command, precede its underlined letter with an ampersand (&).
  172.  
  173. Link specifies the actions the menu item performs (for example, "MACRO _remove_file" runs the macro _remove_file).
  174.  
  175. Tips
  176.  
  177. ¿    You can add menu items to any menu, but if you change a context-sensitive menu (all menus between Edit and Tools on the menu bar), the change only applies to the menu in the active window. For example, suppose you use a macro to change the View menu when the notebook window is active. If you then open a chart window, the chart View menu appears--without the change. If you want the change to apply to that View menu as well, you must run the macro again.
  178.  
  179. ¿    Changes made to the menu system using this command are not saved; they are lost when you exit Corel Quattro Pro. Each time you run a macro containing {ADDMENUITEM}, the menu changes appear again.
  180.  
  181. ¿    To restore the original menu bar, use the macro command {SETMENUBAR} without an argument.
  182.  
  183. Example
  184.  
  185. The following macro adds the menu item Find Object above Edit  Go To. Find Object runs a macro command called _FINDOBJ.
  186.  
  187. {ADDMENUITEM "/Edit/Go To","Find Object", "MACRO _FINDOBJ", "Finds a floating object on the notebook sheet", "Ctrl+Shift+F", "No, Yes, No, No, No, No", "No"}
  188.  
  189. Parameters
  190.  
  191. Parameter    Description
  192.  
  193. MenuPath    location in the menu system to insert a new menu item; enter the sequence of menu items separated by forward slashes (/); you can use <- and -> to place a menu at the top or before the bottom of a menu, respectively. For example, /File/<- specifies the first item on the File menu. You can also use numbers to identify menu items. For example, /File/0 specifies the first item on the File menu (the ID numbers start at zero).
  194.  
  195. Name    name of the command to add; if you want a letter of the name to appear underlined, precede it with an ampersand (&); to add a divider line, type a series of hyphens (-).
  196.  
  197. Link    action to perform when the command is chosen (optional); this argument can specify a link command or a macro command to run when the menu item is chosen; click here  for details.
  198.  
  199. Hint    help text to display in a popup window when the command is highlighted (optional)
  200.  
  201. HotKey    shortcut key that chooses the command (optional); separate key combinations with a plus sign (+), for example, Alt+F4.
  202.  
  203. DependString    areas in which the command is available (optional); enter Yes or No for each area, separated by commas, in the following order: desktop, notebook, chart window, dialog window, input line, Objects sheet. Example: "No, No, Yes, No, No, No" makes the menu item available only when the chart window is active.
  204.  
  205. Checked    type "Yes" if the command should have a checkmark display by it (optional)
  206.  
  207.     Related topics
  208.  
  209. {ADDSERIES}
  210.  
  211. Syntax
  212.  
  213. {ADDSERIES Block, Name}
  214.  
  215. Description
  216.  
  217. {ADDSERIES} adds a data series to a floating chart. Use {ADDSERIES} as an equivalent to dragging cells onto a chart on a notebook sheet to add a series.
  218.  
  219. Example
  220.  
  221. The following macro adds the series contained in the cells A:E3..E13 to the floating chart named BUDGET:
  222.  
  223. {ADDSERIES A:E3..E13, BUDGET}
  224.  
  225. Parameters
  226.  
  227. Parameter    Description
  228.  
  229. Block    cells containing a data series
  230.  
  231. Name    name of the chart to which you want to add a series
  232.  
  233.     Related topics
  234.  
  235. {ADDSUBMENUITEM}
  236.  
  237. Syntax
  238.  
  239. {ADDSUBMENUITEM MenuPath, Name, <Link>, <Hint>, <HotKey>, <DependString>, <Checked>}
  240.  
  241. Description
  242.  
  243. {ADDSUBMENUITEM} is like {ADDMENUITEM}, but converts the command indicated by MenuPath into a submenu and adds the new command to the submenu.
  244.  
  245. Link specifies the actions the submenu item performs (for example, "MACRO _remove_file" runs the macro _remove_file).
  246.  
  247. Tips
  248.  
  249. ¿    You can add menu items to any menu, but if you change a context-sensitive menu (all menus between Edit and Tools on the menu bar), the change only applies to the menu in the active window. For example, suppose you use a macro to change the View menu when the notebook window is active. If you then open a chart window, the chart View menu appears--without the change. If you want the change to apply to that View menu as well, you must run the macro again.
  250.  
  251. ¿    Changes made to the menu system using this command are not saved; they are lost when you exit Corel Quattro Pro. Each time you run a macro containing {ADDSUBMENUITEM}, the menu changes appear again.
  252.  
  253. Parameters
  254.  
  255. Parameter    Description
  256.  
  257. MenuPath    location in the menu system to insert a new menu item; enter the sequence of menu items separated by forward slashes (/); you can use <- and -> to place a menu at the top or before the bottom of a menu, respectively. For example, /File/<- specifies the first item on the File menu. You can also use numbers to identify menu items. For example, /File/0 specifies the first item on the File menu (the ID numbers start at zero).
  258.  
  259. Name    name of the command to add; if you want a letter of the name to appear underlined, precede it with an ampersand (&)
  260.  
  261. Link    action to perform when the command is chosen (optional); this argument can specify a link command or a macro command to run when the menu item is chosen; click here  for details.
  262.  
  263. Hint    help text to display on the status line when the command is highlighted (optional)
  264.  
  265. HotKey    shortcut key that chooses the command (optional); separate key combinations with a plus sign (+), for example, Alt+F4.
  266.  
  267. DependString    areas in which the command is available (optional); enter Yes or No for each area, separated by commas, in the following order: desktop, notebook, chart window, dialog window, input line, Objects sheet. Example: "No, No, Yes, No, No, No" makes the menu item available only when the chart window is active.
  268.  
  269. Checked    type "Yes" if the command should have a checkmark display by it (optional)
  270.  
  271.     Related topics
  272.  
  273. {Alert}
  274.  
  275. Syntax
  276.  
  277. {Alert Title; Message; OKExit?<; Type; Icon; DefaultBtn>}
  278.  
  279. Description
  280.  
  281. Message displays a dialog box "message" for the user of the macro to manipulate. You set the title and message text of the dialog via the Title and Message arguments.
  282.  
  283. OKExit stores the result of the dialog box, so the macro can determine which button was pushed to close it.
  284.  
  285. Type specifies what type of message box will appear. It can be a message box with just an OK button, or one with both an OK and Cancel, etc.
  286.  
  287. Icon specifies which graphic to use on the above dialog. Zero represents the Error icon you would see on a regular error message under Windows. One is for the Question Mark icon, etc.
  288.  
  289. DefaultBtn determines which button (if there are multiple) is the "default" button. If this argument is a number greater than the number of buttons on the dialog, then the first button will be default.
  290.  
  291. Parameters
  292.  
  293. Parameter    Description
  294.  
  295. Title    Title of resultant dialog.
  296.  
  297. Message    Message text of resultant dialog.
  298.  
  299. OKExit?    Cell to store how the dialog box closed (1 for OK, 2 for Cancel, 3 for Abort, 4 for Retry, 5 for Ignore, 6 for Yes, 7 for No).
  300.  
  301. Type    0 for dialog with just an OK button, 1 for OK/Cancel, 2 for Abort/Retry/Ignore,3 for Yes/No/Cancel, 4 for Yes/No, and 5 for Retry/Cancel (optional; 0 is default).
  302.  
  303. Icon    0 for icon of type Error, 1 for Question, 2 for Warning, 3 for Info (optional; 0 is the default).
  304.  
  305. DefaultBtn    0 for first button being default, 1 for second, etc... (optional; 0 is the default).
  306.  
  307.  
  308.  
  309. {Align.Option}
  310.  
  311. Command equivalent    Equivalent to
  312.  
  313. {Align.Bottom}    Format  Align  Bottom
  314.  
  315. {Align.Horizontal_Center}    Format  Position  Horizontal Center
  316.  
  317. {Align.Horizontal_Space Value}    Format  Space  Horizontal Space
  318.  
  319. {Align.Left}    Format  Align  Left
  320.  
  321. {Align.Right}    Format  Align  Right
  322.  
  323. {Align.Top}    Format  Align  Top
  324.  
  325. {Align.Vertical_Center}    Format  Position  Vertical Center
  326.  
  327. {Align.Vertical_Space Value}    Format  Space  Vertical Space
  328.  
  329. Description
  330.  
  331. {Align.Option} is the command equivalent for Format  Align; its action depends on whether a chart or dialog window is active.
  332.  
  333. Value is the amount of space to leave between controls, in pixels.
  334.  
  335.     Related topics
  336.  
  337. {ALT}
  338.  
  339. Syntax
  340.  
  341. {ALT+Key <Number>}
  342.  
  343. Description
  344.  
  345. {ALT} emulates holding down the Alt key while pressing the key specified by Key. Uses of {ALT} that would perform Windows task-switching functions (like Alt+Tab and Alt+Esc) are ignored.
  346.  
  347. You can combine {ALT}, {CTRL}, and {SHIFT}. For example, {CTRL+SHIFT+D} is equivalent to pressing Ctrl+Shift+D, the Date keys.
  348.  
  349. Example
  350.  
  351. {ALT+F} emulates pressing Alt+F, which could activate a control in a dialog box with an underlined letter of F.
  352.  
  353. Parameters
  354.  
  355. Parameter    Description
  356.  
  357. Key    keyboard macro command (PGUP, DOWN, and so on)
  358.  
  359. Number    number of times to repeat the operation (optional)
  360.  
  361.     Related topics
  362.  
  363. {AnalysisExpert}
  364.  
  365. Description
  366.  
  367. {AnalysisExpert} is the command equivalent for Tools  Numeric Tools  Analysis. The macro has no arguments. {AnalysisExpert} displays the first Analysis Tools Expert dialog box.
  368.  
  369.     Related topics
  370.  
  371. {ANOVA1}
  372.  
  373. Syntax
  374.  
  375. {ANOVA1 InBlock, OutBlock, <Grouped>, <Labels(0|1)>, <Alpha>}
  376.  
  377. Description
  378.  
  379. {ANOVA1} performs a one-way analysis of variance. Use {ANOVA1} to test whether two or more samples come from the same population. {ANOVA1} is equivalent to the Anova: One-Way analysis tool.
  380.  
  381. Parameters
  382.  
  383. Parameter    Description
  384.  
  385. InBlock    input cells containing two or more sets of numeric data arranged in columns or rows
  386.  
  387. OutBlock    upper left cell of the output cells
  388.  
  389. Grouped    "C" to group results by column or "R" to group results by row; the default is "C"
  390.  
  391. 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
  392.  
  393. Alpha    the significance level at which to evaluate values for the F-statistic; the default is 0.05
  394.  
  395.     Related topics
  396.  
  397. {ANOVA2}
  398.  
  399. Syntax
  400.  
  401. {ANOVA2 InBlock, OutBlock, SampleRows, <Alpha>}
  402.  
  403. Description
  404.  
  405. {ANOVA2} performs a two-way analysis of variance, with more than one sample for each group of data. {ANOVA2} is equivalent to the Anova: Two-Way with Replication analysis tool.
  406.  
  407. Parameters
  408.  
  409. Parameter    Description
  410.  
  411. InBlock    input cells containing two or more sets of numeric data arranged in columns; the first row must contain labels for each group; the first column must contain row labels indicating the beginning of each sample
  412.  
  413. OutBlock    upper left cell of the output cells
  414.  
  415. SampleRows    the number of rows in each sample
  416.  
  417. Alpha    the significance level at which to evaluate values for the F-statistic; the default is 0.05
  418.  
  419.     Related topics
  420.  
  421. {ANOVA3}
  422.  
  423. Syntax
  424.  
  425. {ANOVA3 InBlock, OutBlock, <Labels(0|1)>, <Alpha>}
  426.  
  427. Description
  428.  
  429. {ANOVA3} performs a two-way analysis of variance, with only one sample for each group of data. {ANOVA3} is equivalent to the Anova: Two-Way Without Replication analysis tool.
  430.  
  431. Parameters
  432.  
  433. Parameter    Description
  434.  
  435. InBlock    input cells containing two or more sets of numeric data arranged in columns or rows
  436.  
  437. OutBlock    upper left cell of the output cells
  438.  
  439. 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
  440.  
  441. Alpha    the significance level at which to evaluate the F-statistic; the default is 0.05
  442.  
  443.     Related topics
  444.  
  445. {ANSIREAD}
  446.  
  447. Syntax
  448.  
  449. {ANSIREAD #Bytes, Location}
  450.  
  451. Description
  452.  
  453. {ANSIREAD} reads #Bytes bytes of characters from a file previously opened using {OPEN} (starting at the current position of the file pointer), and stores them as a label in Location, like {READ} but without any character mapping. This macro is provided for international users. See {READ}, for more information.
  454.  
  455. Parameters
  456.  
  457. Parameter    Description
  458.  
  459. #Bytes    number of bytes of characters to read from a file
  460.  
  461. Location    cell in which to store the characters read
  462.  
  463.     Related topics
  464.  
  465. {ANSIREADLN}
  466.  
  467. Syntax
  468.  
  469. {ANSIREADLN Location}
  470.  
  471. Description
  472.  
  473. {ANSIREADLN} is like {ANSIREAD}, but instead of using a number of bytes to determine the amount of text to read, {ANSIREADLN} reads forward from the current file pointer location up to and including the carriage-return/linefeed at the end of the line, like {READLN} but without any character mapping. This macro is provided for international users. See {READLN}, for more information.
  474.  
  475. Parameters
  476.  
  477. Parameter    Description
  478.  
  479. Location    cell in which to store the characters read
  480.  
  481.     Related topics
  482.  
  483. {ANSIWRITE}
  484.  
  485. Syntax
  486.  
  487. {ANSIWRITE String,<String2>,<String3,...>}
  488.  
  489. Description
  490.  
  491. {ANSIWRITE} copies String(s) to a file opened with the {OPEN} command, starting at the location of the file pointer, like {WRITE} but without any character mapping. This macro is provided for international users. See {WRITE}, for more information.
  492.  
  493. Parameters
  494.  
  495. Parameter    Description
  496.  
  497. String    string of characters to be written into the open file
  498.  
  499.     Related topics
  500.  
  501. {ANSIWRITELN}
  502.  
  503. Syntax
  504.  
  505. {ANSIWRITELN String,<String2>,<String3,...>}
  506.  
  507. Description
  508.  
  509. {ANSIWRITELN} copies String(s) to a file opened with {OPEN}, starting at the location of the file pointer, and ends the string(s) with the carriage-return and linefeed characters, like {WRITELN} but without any character mapping. This macro is provided for international users. See {WRITELN}, for more information.
  510.  
  511. Parameters
  512.  
  513. Parameter    Description
  514.  
  515. String    string of characters to be written into the open file as a single line
  516.  
  517.     Related topics
  518.  
  519. {Application.Property}
  520.  
  521. Description
  522.  
  523. {Application.Property} is equivalent to choosing Tools  Settings. The next table lists the possible settings. Items marked with an asterisk (*) appear only in Developer mode.
  524.  
  525. To display a property description with syntax, choose that property in the following list:
  526.  
  527. Property    Tools  Settings option
  528.  
  529. Country_Settings    Currency  Change
  530.  
  531. Current_File    none
  532.  
  533. Display    Display
  534.  
  535. Enable_Inspection    Enable Inspection
  536.  
  537. File Options    File Options
  538.  
  539. General    General
  540.  
  541. International    International
  542.  
  543. Macro    Macro
  544.  
  545. Title    Title
  546.  
  547. You can use {Application?} or {Application!} to display the Application dialog box. {Application?} lets the user manipulate the dialog box, whereas {Application!} relies on the macro to manipulate it. {Application.Property} is equivalent to Tools  Settings.
  548.  
  549.     Related topics
  550.  
  551. {Application.Country_Settings "Symbol, Prefix|Suffix, Country"}
  552.  
  553. Description
  554.  
  555. {Application.Country_Settings} sets the type of currency symbol and its placement before or after values for a particular country.
  556.  
  557. This macro replaces previous Corel Quattro Pro macros, {Application.International.Currency_Symbol} and {Application.International.Placement}.
  558.  
  559. Example
  560.  
  561. The following macro sets the currency symbol to $ and places the symbol before values for United States currency values.
  562.  
  563. {Application.Country_Settings "$,Prefix,United States"}
  564.  
  565.     Related topics
  566.  
  567. {Application.Current_File}
  568.  
  569. Description
  570.  
  571. {Application.Current_File} returns the name of the active notebook. This command equivalent is only used with @COMMAND and has no equivalent menu item.
  572.  
  573.     Related topics
  574.  
  575. {Application.Display<.Option>}
  576.  
  577. {Application.Display<.Option>}    Equivalent to Tools  Settings...
  578.  
  579. {Application.Display "Toolbar, InputLine, Status, RangeSyntax, PropBand, ScrollIndicator, Hint, DefaultView, SheetTabLabel, MinNumSheets, ShowGroupboxAsLine, ShowPreselection, ShowHistoryList"}    ... Display
  580.  
  581. {Application.Display.Default_View Draft|Page}       Determines whether new Notebooks come up in Draft view or Page Preview view.  Equivalent to Tools  Settings  Display  Default View.
  582.  
  583. {Application.Display.History_List Yes|No}       Determines whether to display the File History List off the File menu or not.  Equivalent to Tools  Settings  Display  Display last open documents on the File menu.
  584.  
  585. {Application.Display.Min_Number_Sheets N}        Sets the default number of sheets on new Notebooks.  Equivalent to Tools  Settings  Display  Minimum Number of Sheet Tabs.
  586.  
  587. {Application.Display.Range_Syntax "A..B:A1..B2"|"A:A1..B:B2"}    ... Display  3-D Syntax
  588.  
  589. {Application.Display.Sheet_Tab_Label Letters|Numbers}        Allows you to choose whether your default sheet tab names are letters (A..IV) or numeric (Sheet1..Sheet256).  Equivalent to Tools  Settings  Display  Sheet Tab Label.
  590.  
  591. {Application.Display.Show_GroupBox_As_Line Yes|No}       Toggles dialog Group Boxes between being a "box", or just a line above the group.  Equivalent to Tools  Settings  Display  Show Groupbox as Line.
  592.  
  593. {Application.Display.Show_InputLine Yes|No}    ... Display  Show Input Line
  594.  
  595. {Application.Display.Show_PreSelection Yes|No}       Toggles Windows buttons and other controls between being 3-D to being "flat." Equivalent to Tools  Settings  Display  Show PreSelection.
  596.  
  597. {Application.Display.Show_Property_Band Yes|No}    ... Display  Show Property Bar
  598.  
  599. {Application.Display.Show_Scroll_Indicator Yes|No}    ... Display  Show Scroll Indicators
  600.  
  601. {Application.Display.Show_StatusLine Yes|No}    ... Display  Show Application Bar
  602.  
  603. {Application.Display.Sheet_Tab_Label Letters|Numbers}       Toggles dialog Group Boxes between being a "box," or just a line above the group.  Equivalent to Tools  Settings  Display  Sheet Tab Label.
  604.  
  605. {Application.Display.Show_Tool_Hint Yes|No}    ... Display  Show QuickTips
  606.  
  607. {Application.Display.Show_Toolbar Yes|No}    ... Display  Show Toolbar
  608.  
  609. Description
  610.  
  611. {Application.Display.Option} is equivalent to choosing Tools  Settings  Display. It lets you specify cell syntax and display parts of the Corel Quattro Pro user interface. The arguments of {Application.Display} (which sets all options of the Display property in one command) use the same syntax as those in the {Application.Display.Option} commands.
  612.  
  613. Example
  614.  
  615. The following macro command hides the time, hides the standard Toolbar, displays the input line and status line, sets the cell syntax to standard, hides the Property Bar, and displays the scroll indicators and QuickTips.
  616.  
  617. {Application.Display "None,No,Yes,Yes,A..B:A1..B2,No,Yes,Yes"}
  618.  
  619.     Related topics
  620.  
  621. {Application.Enable_Inspection Yes|No}
  622.  
  623. Description
  624.  
  625. {Application.Enable_Inspection} enables (Yes) or disables (No) Object Inspector menus. It is the command equivalent for choosing Tools  Settings  Enable Inspection, which is only available in Developer mode.
  626.  
  627.     Related topics
  628.  
  629. {Application.File_Options<.Option>}
  630.  
  631. {Application.File_Options<.Option>}    Equivalent to Tools  Settings
  632.  
  633. {Application.File_Options StartupDir, AutoFile, FileExt, AutoBackup?(Yes|No),AutoBackupTime, FullPathTitles?(Yes|No), AutoBack,QuickTemplates?(Yes|No), QuickTemplateDir, URLUpdateTime, UpdateURL}    ... File Options
  634.  
  635. {Application.File_Options.AutoBack_Enabled Yes|No}    ... File Options  Timed document backup every
  636.  
  637. {Application.File_Options.AutoBack_Time Integer}    ... File Options  Timed document backup every N minutes spinner
  638.  
  639. {Application.File_Options.Autoload_File String}    ... File Options  Autoload File
  640.  
  641. {Application.File_Options.AutoRefreshTime N}        Sets when URLs Refresh.  Equivalent to Tools  Settings  File Options  Refresh URLs every N  minutes spinner.
  642.  
  643. {Application.File_Options.DoRefresh Yes|No}       Turns on/off URL Refresh.  Equivalent to Tools  Settings  File Options  Refresh URLs every.
  644.  
  645. {Application.File_Options.File_Extension String}    ... File Options  File Extension
  646.  
  647. {Application.File_Options.Full_Path_Titles Yes|No}    ... File Options  Enable Full Path Titles
  648.  
  649. {Application.File_Options.QuickTemplates Yes|No}    ... File Options  Enable QuickTemplates
  650.  
  651. {Application.File_Options.Startup_Directory String}    ... File Options  Default Folder
  652.  
  653. {Application.File_Options.TempDir Path}    ... File Options  QuickTemplates
  654.  
  655. {Application.File_Options.WPDialogs Yes|No}    ... File Options  Use enhanced file dialogs
  656.  
  657. Description
  658.  
  659. {Application.File_Options.Option} is equivalent to choosing Tools  Settings  File Options. It lets you specify the startup folder, autoload file, default file extension, and other options. The arguments of {Application.File_Options} (which sets all options of the File Options property in one command) use the same syntax as those in the {Application.File_Options.Option} commands.
  660.  
  661. ¿    {Application.File_Options.AutoBack_Enabled} and {Application.File_Options.AutoBack_Time} enable the creation of temporary backup files at a specified time interval.
  662.  
  663. ¿    {Application.File_Options.Autoload_File} sets the file to be loaded every time Corel Quattro Pro is started.
  664.  
  665. ¿    {Application.File_Options.File_Extension} sets the default file extension to be used with file-handling commands.
  666.  
  667. ¿    {Application.File_Options.Full_Path_Titles} shows the full path of notebook files in the title bar of the notebook window.
  668.  
  669. ¿    {Application.File_Options.QuickTemplates} enables or disables the use of notebook templates when you choose File  New.
  670.  
  671. ¿    {Application.File_Options.Startup_Directory} sets the directory initially displayed by file-handling commands.
  672.  
  673. ¿    {Application.File_Options.TempDir} specifies the directory containing QuickTemplate files.
  674.  
  675. Example
  676.  
  677. The following macro command sets the startup directory to C:\COREL\SUITE8, sets the autoload file to QUATTRO.WB3, sets the file extension to .WB3, enables autobackup at 15 minute intervals, enables the display of full path titles, enables QuickTemplates, sets the QuickTemplate directory, and sets the custom @function directory.
  678.  
  679. {Application.File_Options "C:\COREL\SUITE8\, QUATTRO.WB3, WB3, Yes, 15, Yes,, Yes,
  680.  
  681.         C:\COREL\SUITE8\TEMPLATE, C:\COREL\SUITE8"}
  682.  
  683.     Related topics
  684.  
  685. {Application.General<.Option>}
  686.  
  687. {Application.General<.Option>}    Equivalent Tools  Settings...
  688.  
  689. {Application.General "UseUndo?(Yes|No), CompatibleKeys?(Yes|No), MoveCellOnEnter?(Yes|No),, DelayTime, Compatible_Formula_Entry?(Yes|No), Fit-As-You-Go?(Yes|No), Calc-As-You-Go?(Yes|No),QuickType?(Yes|No), CellReferenceChecker?(Yes|No)}    ... General
  690.  
  691. {Application.General.Calc-As-You-Go Yes|No}       Turns on/off Calc As You Go.  Equivalent to Tools  Settings  General  Calc-As-You-Go.
  692.  
  693. {Application.General.Cell_Reference_Checker Yes|No}       Turns on/off the Cell Reference Checker.  Equivalent to Tools  Settings  General  Cell Reference Checker.
  694.  
  695. {Application.General.Compatible_Formula_Entry Yes|No}    ... General  Compatible Formula Entry
  696.  
  697. {Application.General.Compatible_Keys Yes|No}    ... General  Compatible Keys
  698.  
  699. {Application.General.Delay_Time Integer}    ... General  Cell Drag and Drop Delay Time
  700.  
  701. {Application.General.Fit-As-You-Go Yes|No}       Turns on/off Fit-As-You-Go, which automatically sizes columns on data entry.  Equivalent to Tools  Settings  General  Fit-As-You-Go.
  702.  
  703. {Application.General.MoveCellOnEnterKey Yes|No}    ... General  Move Cell Selector on Enter Key
  704.  
  705. {Application.General.QuickType Yes|No}       Turns on/off QuickType, which as you type a label or function, finds the the closest match. Equivalent to Tools  Settings  General  QuickType.
  706.  
  707. {Application.General.Undo Yes|No}    ... General  Undo Enabled
  708.  
  709. Description
  710.  
  711. {Application.General.Option} is equivalent to choosing Tools  Settings  General. It lets you
  712.  
  713. ¿    enable the Edit  Undo command
  714.  
  715. ¿    makes a variety of keys work in the same way as in Corel Quattro Pro for DOS
  716.  
  717. ¿    sets the behavior of the cell selector when you press Enter
  718.  
  719. ¿    specifies how long to wait before changing from cell selection to Drag-and-Drop mode
  720.  
  721. ¿    specifies whether to use formula entry from Corel Quattro Pro version 5
  722.  
  723. Example
  724.  
  725. The following macro command enables Undo, makes the cell selector move down when you enter data, sets the cell drag and drop delay time to 400 milliseconds, and uses Corel Quattro Pro formula entry.
  726.  
  727. {Application.General "Yes,No,Yes,Yes,400,No,No,No,No"}
  728.  
  729.     Related topics
  730.  
  731. {Application.International<.Option>}
  732.  
  733. {Application.International<.Option>}    Equivalent to Tools  Settings... 
  734.  
  735. {Application.International ", Currency, , Negative, Punctuation, DateFmt, TimeFmt, Language, Conversion, Country"}    ... International
  736.  
  737. {Application.International.Currency "Windows Default"|"Corel Quattro Pro"}    ... International  Currency
  738.  
  739. {Application.International.Date_Format String}    ... International  Date Format
  740.  
  741. {Application.International.Language String}    ... International  Language
  742.  
  743. {Application.International.LICS_Conversion Yes|No}    ... International  Conversion
  744.  
  745. {Application.International.Negative Signed|Parens}    ... International  Negative Values
  746.  
  747. {Application.International.Punctuation "1 234,56 (a1.a2)" | "1 234,56 (a1;a2)" | "1 234.56 (a1,a2)" | "1 234.56 (a1;a2)" | "1,234.56 (a1,a2)"| "1,234.56 (a1;a2)" | "1.234,56 (a1;a2)" | "1.234,56 (a1.a2)" | "Windows Default"}    ... International  Punctuation
  748.  
  749. {Application.International.Time_Format String}    ... International  Time
  750.  
  751. Description
  752.  
  753. {Application.International.Option} is equivalent to choosing Tools  Settings  International, which lets you specify the punctuation, sort order, and numeric formats used by Corel Quattro Pro. The arguments of {Application.International} (which sets all options of the International property in one command) use the same syntax as those in the {Application.International.Option} commands. For example, the Negative argument can be Signed or Parens, the same settings that {Application.International.Negative} accepts.
  754.  
  755. To set the currency symbol and its placement either before or after values, use the {Application.Country_Settings} macro.
  756.  
  757. Example
  758.  
  759. The following macro command specifies that the Corel Quattro Pro currency format is used with parentheses to indicate negative values, sets the punctuation, sets the date and time formats to Windows defaults, sets the sort order to English, disables LICS conversion, and sets the country used for currency to United States. The entire string must be enclosed within a set of quotes. (Enter all of the example into one cell.)
  760.  
  761.     {Application.International ", Corel Quattro Pro,, Parens,""1,234.56 (a1,a2)"", Windows Default, Windows Default, Corel Quattro Pro, English (American), No, United States"}
  762.  
  763.     Related topics
  764.  
  765. {Application.Macro<.Option>}
  766.  
  767. {Application.Macro<.Option>}    Equivalent to Tools  Settings...
  768.  
  769. {Application.Macro "MacSuppress,, SlashKey, StartupMacro"}    ... Macro
  770.  
  771. {Application.Macro.Macro_Redraw Both|None|Panel|Window}    ... Macro  Suppress-Redraw
  772.  
  773. {Application.Macro.Slash_Key MenuName}    ... Macro  Slash Key
  774.  
  775. {Application.Macro.Startup_Macro String}    ... Macro  Startup Macro
  776.  
  777. Description
  778.  
  779. {Application.Macro.Option} is equivalent to choosing Tools  Settings  Macro, which lets you control screen updates, display alternative menu systems, and run startup macros when you open a notebook. The arguments of {Application.Macro} (which sets all options of the Macro property in one command) use the same syntax as those in the {Application.Macro.Option} commands.
  780.  
  781. Example
  782.  
  783. The following macro command specifies that windows should not display when a macro runs, makes the slash key display the Corel Quattro Pro for DOS menu system, and sets the startup macro to BUDGET (Corel Quattro Pro will run a macro named BUDGET whenever a notebook is opened containing a macro by that name).
  784.  
  785.     {Application.Macro "Window,,Corel Quattro Pro - DOS,BUDGET"}
  786.  
  787.     Related topics
  788.  
  789. {Application.Title Title}
  790.  
  791. Description
  792.  
  793. {Application.Title Title} sets the title appearing in the Corel Quattro Pro title bar. It is equivalent to choosing Tools  Settings  Title, and it is only available in Developer mode.
  794.  
  795.     Related topics
  796.  
  797. {ASSIGN}
  798.  
  799. Syntax
  800.  
  801. {ASSIGN VarExpr, ValExpr}
  802.  
  803. Description
  804.  
  805. The {ASSIGN} macro command is equivalent to the assignment statement variable=value in a programming language.
  806.  
  807. Example
  808.  
  809. {ASSIGN calc, CreateObject("DispCalc.Application")} creates an object of the DispCalc application and assigns it to a named variable calc.
  810.  
  811. {ASSIGN calc.accum, 0} clears the accumulated value of DispCalc.
  812.  
  813. {ASSIGN calc.accum, @SUM(A1..A10)} assigns the sum of A1..A10 to the accumulated value of DispCalc.
  814.  
  815. For more details on using {ASSIGN} and other OLE automation macro commands, Using OLE Automation Features.
  816.  
  817. Parameters
  818.  
  819. Parameter    Description
  820.  
  821. VarExpr    a variable expression
  822.  
  823. ValExpr    a value expression
  824.  
  825.     Related topics
  826.  
  827. {Audit.Remove_All_Arrows}
  828.  
  829. Description
  830.  
  831. Removes all precedent and dependent arrows.
  832.  
  833. Equivalent to Tools  Auditing  Remove All Arrows
  834.  
  835.     Related topics
  836.  
  837. {Audit.Trace_Dependents}
  838.  
  839. Description
  840.  
  841. Traces dependents of current formula.
  842.  
  843. Equivalent to Tools  Auditing  Trace Dependents
  844.  
  845.     Related topics
  846.  
  847. {Audit.Trace_Precedents}
  848.  
  849. Description
  850.  
  851. Traces precedents to current formula.
  852.  
  853. Equivalent to Tools  Auditing  Trace Precedents.
  854.  
  855.     Related topics
  856.  
  857. {BACKSPACE} and {BS}
  858.  
  859. Syntax
  860.  
  861. {BACKSPACE <Number>}
  862.  
  863. Description
  864.  
  865. {BACKSPACE} and {BS} are equivalent to the Backspace key, which deletes one character to the left of the insertion point in Edit mode. The optional argument Number specifies how many times to repeat the operation; for example, {BACKSPACE 2} is equivalent to pressing Backspace twice.
  866.  
  867. Parameters
  868.  
  869. Parameter    Description
  870.  
  871. Number    any positive integer or the address of a cell containing a positive integer (optional)
  872.  
  873.     Related topics
  874.  
  875. {BACKTAB}
  876.  
  877. Syntax
  878.  
  879. {BACKTAB <Number>}
  880.  
  881. Description
  882.  
  883. {BACKTAB} is equivalent to the Shift+Tab key. It is the same as {BIGLEFT}, which moves one cell to the left.
  884.  
  885. When the Compatible Keys option of Tools  Settings  General is checked, {BACKTAB} selects the leftmost cell of the screen that is to the left of the current one.
  886.  
  887. The optional argument Number specifies how many times to repeat the operation; for example, {BACKTAB 3} is equivalent to pressing Shift+Tab three times.
  888.  
  889. Parameters
  890.  
  891. Parameter    Description
  892.  
  893. Number    any positive integer or the address of a cell containing a positive integer (optional)
  894.  
  895.     Related topics
  896.  
  897. {BEEP}
  898.  
  899. Syntax
  900.  
  901. {BEEP <Number>}
  902.  
  903. Description
  904.  
  905. {BEEP} sounds the computer's built-in speaker.
  906.  
  907. Number dictates the tone of the beep. If Number is omitted, {BEEP 1} sounds. If Number is larger than 10, the pattern repeats; for example, {BEEP 11} is the same as {BEEP 1}.
  908.  
  909. Use {BEEP} to catch the user's attention. You can use it in interactive macros to introduce a prompt for information or to indicate a macro has finished.
  910.  
  911. Example
  912.  
  913. The following macro checks a cell area named error_check for an error condition (indicated by error_check containing zero). If there is no error, it branches to a macro called _continue, which carries on the previous procedure. If there is an error, it gives a low beep, then a medium beep, and moves the selector to the cell area called message_area, where an error message is stored.
  914.  
  915. {IF error_check = 0}{BRANCH _continue}
  916.  
  917. {BEEP 1}{BEEP 5}{EditGoto message_area}
  918.  
  919. Parameters
  920.  
  921. Parameter    Description
  922.  
  923. Number    1 to 10 (optional)
  924.  
  925.     Related topics
  926.  
  927. {BIGLEFT}
  928.  
  929. Syntax
  930.  
  931. {BIGLEFT <Number>}
  932.  
  933. Description
  934.  
  935. {BIGLEFT} is equivalent to the Shift+Tab key. It is the same as {BACKTAB}, which moves one cell to the left.
  936.  
  937. When the Compatible Keys option of Tools  Settings  General is checked, {BIGLEFT} selects the leftmost cell of the screen that is to the left of the current one.
  938.  
  939. The optional argument Number specifies how many times to repeat the operation; for example, {BIGLEFT 2} is equivalent to pressing Shift+Tab twice.
  940.  
  941. Parameters
  942.  
  943. Parameter    Description
  944.  
  945. Number    any positive integer or the address of a cell containing a positive integer (optional)
  946.  
  947.     Related topics
  948.  
  949. {BIGRIGHT}
  950.  
  951. Syntax
  952.  
  953. {BIGRIGHT <Number>}
  954.  
  955. Description
  956.  
  957. {BIGRIGHT}, like {TAB}, is equivalent to the Tab key, which moves one cell to the right.
  958.  
  959. When the Compatible Keys option of Tools  Settings  General is checked, {BIGRIGHT} selects the leftmost cell of the screen that is to the right of the current one.
  960.  
  961. The optional argument Number specifies how many times to repeat the operation; for example, {BIGRIGHT 2} is equivalent to pressing Tab twice.
  962.  
  963. Parameters
  964.  
  965. Parameter    Description
  966.  
  967. Number    any positive integer or the address of a cell containing a positive integer (optional)
  968.  
  969.     Related topics
  970.  
  971. {BLANK}
  972.  
  973. Syntax
  974.  
  975. {BLANK Location}
  976.  
  977. Description
  978.  
  979. {BLANK} erases the contents of the cells referred to as Location. You can also use the command equivalents {ClearContents} and {EditClear} to erase the contents of the currently selected cells.
  980.  
  981. Example
  982.  
  983. This macro erases the cells named part_list:
  984.  
  985. \F    {BLANK part_list}
  986.  
  987. Parameters
  988.  
  989. Parameter    Description
  990.  
  991. Location    cell(s) you want erased
  992.  
  993.     Related topics
  994.  
  995. {BlockCopy}
  996.  
  997. Syntax
  998.  
  999. {BlockCopy SourceBlock, DestBlock, <ModelCopy?(0|1)>, <Formula?(0|1)>, <Values?(0|1)>, <Properties?(0|1)>, <Objects?(0|1)>, <Row/Col_Sizes?(0|1)>, <Labels?(0|1)>, <Numbers?(0|1)>}
  1000.  
  1001. Description
  1002.  
  1003. {BlockCopy} is the command equivalent for Edit  Copy Cells. It copies the source cells to the specified destination. If ModelCopy? is 1, absolute references to cells within the copied cells adjust to reflect the new location. Formula?, Values?, Properties?, Object?, Row/Col_Sizes?, Labels?, and Numbers? apply only if ModelCopy? is 1.
  1004.  
  1005. You can use {BlockCopy?} or {BlockCopy!} to display the Copy Cells dialog box. {BlockCopy?} lets the user manipulate the dialog box, whereas {BlockCopy!} relies on the macro to manipulate it.
  1006.  
  1007. Parameters
  1008.  
  1009. Parameter    Description
  1010.  
  1011. SourceBlock    cells to copy
  1012.  
  1013. DestBlock    location to copy cells
  1014.  
  1015. ModelCopy?    whether to use Model Copy option; 0 = no, 1 = yes; the default is 0
  1016.  
  1017. Formula?    whether to copy formula cells; 0 = no, 1 = yes; the default is 1
  1018.  
  1019. Values?    whether to copy value cells; 0 = no, 1 = yes; the default is 1
  1020.  
  1021. Properties?    whether to copy properties; 0 = no, 1 = yes; the default is 1
  1022.  
  1023. Object?    whether to copy objects; 0 = no, 1 = yes; the default is 1
  1024.  
  1025. Row/Col_Sizes?    whether to copy row and column sizes; 0 = no, 1 = yes; the default is 1
  1026.  
  1027. Labels?    whether to copy label cells; 0 = no, 1 = yes; the default is 1
  1028.  
  1029. Numbers?    whether to copy number cells; 0 = no, 1 = yes; the default is 1 (reserved for Cell Comments)
  1030.  
  1031.     Related topics
  1032.  
  1033. {BlockDelete.Option}
  1034.  
  1035. Command equivalent    Equivalent Edit  Delete...
  1036.  
  1037. {BlockDelete.Columns Block, Entire|Partial}    ... Columns
  1038.  
  1039. {BlockDelete.Pages Block, Entire|Partial}    ... Sheets
  1040.  
  1041. {BlockDelete.Rows Block, Entire|Partial}    ... Rows
  1042.  
  1043. Description
  1044.  
  1045. {BlockDelete.Option} is the command equivalent for Edit  Delete. It deletes entire or partial columns, rows, and sheets. Block is the 2-D or 3-D selection where material is deleted.
  1046.  
  1047. You can use {BlockDelete?} or {BlockDelete!} to display the Delete dialog box. {BlockDelete?} lets the user manipulate the dialog box, whereas {BlockDelete!} relies on the macro to manipulate it.
  1048.  
  1049.     Related topics
  1050.  
  1051. {BlockFill.Option}
  1052.  
  1053. Command equivalent    Equivalent to Edit  Fill  Fill Series...
  1054.  
  1055. {BlockFill.Block Block}    ... Cells
  1056.  
  1057. {BlockFill.Go}    ... OK
  1058.  
  1059. {BlockFill.Order Column|Row}    ... Fill  Order
  1060.  
  1061. {BlockFill.Series Linear | Growth | Power | Year | Month | Week | Weekday |Day | Hour | Minute | Second}    ... Fill  Series
  1062.  
  1063. {BlockFill.Start Value}    ... Fill  Start
  1064.  
  1065. {BlockFill.Step Value}    ... Fill  Step
  1066.  
  1067. {BlockFill.Stop Value}    ... Fill  Stop
  1068.  
  1069. Description
  1070.  
  1071. {BlockFill.Option} is the command equivalent for Edit  Fill  Fil Series. It fills Block with sequential data. You can use numbers, dates, times, or even formulas for Value.
  1072.  
  1073. If {BlockFill.Start} is a number or formula, you can enter one of these strings for {BlockFill.Series}:
  1074.  
  1075. ¿    "Linear" adds the step value to the previous value (defined at first to be the start value).
  1076.  
  1077. ¿    "Growth" multiplies the step value by the previous value.
  1078.  
  1079. ¿    "Power" uses the step value as the exponent of the previous value.
  1080.  
  1081. If {BlockFill.Start} is a date or time, the fill operation is always linear, but you can specify the step unit as "Year", "Month", "Week", "Weekday", "Day", "Hour", "Minute", or "Second". For example, with a start value of 6/20/92, a step value of 2, and "Month" as the {BlockFill.Series Option} setting, the second cell in the filled cells contains August.
  1082.  
  1083. You can enter the date and time directly as a serial number or use one of the date and time @functions.
  1084.  
  1085. You can use {BlockFill?} or {BlockFill!} to display the Fill Series dialog box. {BlockFill?} lets the user manipulate the dialog box, whereas {BlockFill!} relies on the macro to manipulate it.
  1086.  
  1087. Example
  1088.  
  1089. The following macro uses @DATEVALUE to enter 6/20/92 as the start value. The 3-D selection to fill is B..C:B1..D4 with a step value of 2. Fill order is "Row".
  1090.  
  1091. {BlockFill.Block B:B1..C:D4}
  1092.  
  1093. {BlockFill.Start @DATEVALUE("6/20/92")}
  1094.  
  1095. {BlockFill.Step 2}
  1096.  
  1097. {BlockFill.Stop @DATEVALUE("12/31/2099")}
  1098.  
  1099. {BlockFill.Order Row}
  1100.  
  1101. {BlockFill.Series Month}
  1102.  
  1103. {BlockFill.Go}
  1104.  
  1105.     Related topics
  1106.  
  1107. {BlockInsert.Option}
  1108.  
  1109. Command equivalent    Equivalent to...
  1110.  
  1111. {BlockInsert.Columns Block, Entire|Partial}    Insert  Cells  Columns
  1112.  
  1113. {BlockInsert.File FileName, BeforeBlock}    Insert  File
  1114.  
  1115. {BlockInsert.Pages Block, Entire|Partial}    Insert Cells  Sheets
  1116.  
  1117. {BlockInsert.Rows Block, Entire|Partial}    Insert Cells  Rows
  1118.  
  1119. Description
  1120.  
  1121. {BlockInsert.Option} is the command equivalent for Insert  Cells and Insert  File. It inserts entire or partial columns, rows, and sheets, or complete files. Block is the 2-D or 3-D selection where material is inserted. In {BlockInsert.File}, Filename is inserted into the active notebook before BeforeBlock.
  1122.  
  1123. You can use {BlockInsert?} or {BlockInsert!} to display the Insert Cells dialog box. {BlockInsert?} lets the user manipulate the dialog box, whereas {BlockInsert!} relies on the macro to manipulate it.
  1124.  
  1125. {BlockMovePages}
  1126.  
  1127. Syntax
  1128.  
  1129. {BlockMovePages SrcPages, BeforePage}
  1130.  
  1131. Description
  1132.  
  1133. {BlockMovePages} is the command equivalent for Edit  Move Sheets. It reorders sheets within a notebook. Moved sheets appear before BeforePage.
  1134.  
  1135. You can use {BlockMovePages?} or {BlockMovePages!} to display the Move Sheets dialog box. {BlockMovePages?} lets the user manipulate the dialog box, whereas {BlockMovePages!} relies on the macro to manipulate it.
  1136.  
  1137. Parameters
  1138.  
  1139. Parameter    Description
  1140.  
  1141. SrcPages    range of sheets to move
  1142.  
  1143. BeforePage    new location for SrcPages
  1144.  
  1145.     Related topics
  1146.  
  1147. {BlockName.Option}
  1148.  
  1149. Command equivalent    Equivalent to Insert  Cell Names...
  1150.  
  1151. {BlockName.Autogenerate Block, LabelsTop?(0|1), LabelsLeft?(0|1), LabelsBottom?(0|1), LabelsRight?(0|1), Intersection?(0|1)}    ... Generate
  1152.  
  1153. {BlockName.Create BlockName, Block}    ... Add
  1154.  
  1155. {BlockName.Delete BlockName}    ... Delete
  1156.  
  1157. {BlockName.Labels Block,Left|Right|Up|Down}    ... Labels
  1158.  
  1159. {BlockName.MakeTable Block}    ... Output
  1160.  
  1161. {BlockName.Reset}    ... Delete All
  1162.  
  1163. Description
  1164.  
  1165. {BlockName.Option} is the command equivalent for Insert  Cell Names. It creates, deletes, and displays names for contiguous and noncontiguous selections.
  1166.  
  1167. BlockName is the cell name to create or delete. In {BlockName.Create}, Block refers to the cells to name; in {BlockName.MakeTable}, Block indicates where to create the name table. {BlockName.Reset} clears all cell names in the notebook.
  1168.  
  1169. You can use {BlockName?} or {BlockName!} to display the Cell Names dialog box. {BlockName?} lets the user manipulate the dialog box, whereas {BlockName!} relies on the macro to manipulate it.
  1170.  
  1171.     Related topics
  1172.  
  1173. {BlockReformat}
  1174.  
  1175. Syntax
  1176.  
  1177. {BlockReformat Block}
  1178.  
  1179. Description
  1180.  
  1181. {BlockReformat} is the command equivalent for Format  Text Reformat. It adjusts word wrapping in a series of label entries (contained in Block) as though they were in a paragraph.
  1182.  
  1183. Parameters
  1184.  
  1185. Parameter    Description
  1186.  
  1187. Block    the cells to reformat
  1188.  
  1189.     Related topics
  1190.  
  1191. {BlockTranspose}
  1192.  
  1193. Syntax
  1194.  
  1195. {BlockTranspose SourceBlock,DestBlock}
  1196.  
  1197. Description
  1198.  
  1199. {BlockTranspose} is the command equivalent for Tools  Numeric Tools  Transpose. It copies SourceBlock to another location and reverses its rows and columns. Existing data in DestBlock is overwritten.
  1200.  
  1201. You can use {BlockTranspose?} or {BlockTranspose!} to display the Transpose Cells dialog box. {BlockTranspose?} lets the user manipulate the dialog box, whereas {BlockTranspose!} relies on the macro to manipulate it.
  1202.  
  1203. Parameters
  1204.  
  1205. Parameter    Description
  1206.  
  1207. SourceBlock    cells to transpose
  1208.  
  1209. DestBlock    cells to hold transposed copy
  1210.  
  1211.     Related topics
  1212.  
  1213. {BlockValues}
  1214.  
  1215. Syntax
  1216.  
  1217. {BlockValues SourceBlock,DestBlock}
  1218.  
  1219. Description
  1220.  
  1221. {BlockValues} is the command equivalent for Edit  Convert to Values. It copies cells to another location and converts their formulas to values. Existing data in DestBlock is overwritten.
  1222.  
  1223. You can use {BlockValues?} or {BlockValues!} to display the Convert to Values dialog box. {BlockValues?} lets the user manipulate the dialog box, whereas {BlockValues!} relies on the macro to manipulate it.
  1224.  
  1225. Parameters
  1226.  
  1227. Parameter    Description
  1228.  
  1229. SourceBlock    cells to copy as values
  1230.  
  1231. DestBlock    cells to hold converted copy
  1232.  
  1233.     Related topics
  1234.  
  1235. {BRANCH}
  1236.  
  1237. Syntax
  1238.  
  1239. {BRANCH Location}
  1240.  
  1241. Description
  1242.  
  1243. {BRANCH} runs the macro stored in Location. If Location references cells, Corel Quattro Pro starts with the macro command in the top left cell.
  1244.  
  1245. {BRANCH} can change the flow of execution based on a condition test. For example, you can use it to run a different macro depending on the contents of a certain cell.
  1246.  
  1247. {BRANCH} is like {Subroutine} in that it passes control to another macro. Unlike {Subroutine}, it does not hold your place in the original macro, waiting for control to return. Use {BRANCH} when you do not intend to return to the original macro. To run another macro and then return to the calling macro, use {Subroutine}.
  1248.  
  1249. Example
  1250.  
  1251. The following macro branches to a macro named _high if the value in cell D10 is greater than 1000; otherwise, it continues to run the macro on the next line:
  1252.  
  1253. {IF D10 > 1000}{BRANCH _high}
  1254.  
  1255. Parameters
  1256.  
  1257. Parameter    Description
  1258.  
  1259. Location    location or name of another macro
  1260.  
  1261.     Related topics
  1262.  
  1263. {BREAK}
  1264.  
  1265. Description
  1266.  
  1267. {BREAK} clears any displayed dialog boxes or prompts and returns Corel Quattro Pro to Ready mode. It does not stop macro execution; use {QUIT} for that operation.
  1268.  
  1269.     Related topics
  1270.  
  1271. {BREAKOFF}
  1272.  
  1273. Description
  1274.  
  1275. {BREAKOFF} disables Ctrl+Break, which can be used to end a macro before it is done. After {BREAKOFF}, the user will not be able to exit a macro until the end of the macro or until {BREAKON} is used.
  1276.  
  1277. Use {BREAKOFF} only when necessary. Without access to Ctrl+Break, the only way to stop a "runaway" macro is to reboot or turn off the computer.
  1278.  
  1279. Example
  1280.  
  1281. This macro disables Ctrl+Break while the user inputs a name:
  1282.  
  1283. {PUTCELL "Enter your name here:"}
  1284.  
  1285. {BREAKOFF}
  1286.  
  1287. {?}~
  1288.  
  1289. {BREAKON}
  1290.  
  1291. {PUTCELL "Try again: "}
  1292.  
  1293. {?}~
  1294.  
  1295.     Related topics
  1296.  
  1297. {BREAKON}
  1298.  
  1299. Description
  1300.  
  1301. {BREAKON} enables Ctrl+Break after a previous {BREAKOFF} command has disabled it.
  1302.  
  1303. {BREAKON} should be used as soon as possible after {BREAKOFF}, because with Ctrl+Break disabled, the only way to halt a "runaway" macro is to reboot or turn off the computer.
  1304.  
  1305. See {BREAKOFF}for an example of {BREAKOFF} and {BREAKON}.
  1306.  
  1307.     Related topics
  1308.  
  1309. {BudgetExpert}
  1310.  
  1311. Description
  1312.  
  1313. {BudgetExpert} is the command equivalent for Tools  Numeric Tools  Budget. The macro has no arguments. {BudgetExpert} displays the first Budget Expert dialog box.
  1314.  
  1315.     Related topics
  1316.  
  1317. {CALC}
  1318.  
  1319. Description
  1320.  
  1321. {CALC} is equivalent to the Calc key, F9, which recalculates the active notebook, or converts the formula on the input line into its result when editing a cell.
  1322.  
  1323.     Related topics
  1324.  
  1325. {CAPOFF} and {CAPON}
  1326.  
  1327. Description
  1328.  
  1329. {CAPOFF} and {CAPON} are equivalent to Caps Lock off and Caps Lock on, respectively.
  1330.  
  1331.     Related topics
  1332.  
  1333. {ChartExpert}
  1334.  
  1335. Description
  1336.  
  1337. {ChartExpert} is the command equivalent for Insert  Chart. The macro has no arguments. {ChartExpert} displays the first Chart Expert dialog box.
  1338.  
  1339.     Related topics
  1340.  
  1341. {CHOOSE}
  1342.  
  1343. Description
  1344.  
  1345. {CHOOSE} displays a pick list of open windows. Your choice becomes the active window.
  1346.  
  1347.     Related topics
  1348.  
  1349. {CLEAR}
  1350.  
  1351. Description
  1352.  
  1353. {CLEAR} is the equivalent of Ctrl+Backspace, which erases any previous entry in a prompt line or on the input line in Edit mode. This command is useful when loading or retrieving files.
  1354.  
  1355.     Related topics
  1356.  
  1357. {ClearComments <PageOnly? (0|1)>}
  1358.  
  1359. Description
  1360.  
  1361. Deletes the comment in the active cell. PageOnly? flat refers to Group Mode.  If Group mode is off, enter 0; if Group mode is on, and the active sheet belongs to a group, enter 1 to operate on only the active sheet or 0 to act on all sheets in the group. Equivalent to Rt-Clicking on the current cell, and choosing Delete Comment.
  1362.  
  1363. {ClearContents}
  1364.  
  1365. Syntax
  1366.  
  1367. {ClearContents <PageOnly?(0|1)>}
  1368.  
  1369. Description
  1370.  
  1371. {ClearContents} is the command equivalent for Edit  Clear  Values. It erases the contents of the selected cells but leaves cell property settings intact.
  1372.  
  1373. Parameters
  1374.  
  1375. Parameter    Description
  1376.  
  1377. PageOnly?    if Group mode is off, enter 0; if Group mode is on, and the active sheet belongs to a group, enter 1 to operate on only the active sheet or 0 to act on all sheets in the group
  1378.  
  1379.     Related topics
  1380.  
  1381. {ClearFormats}
  1382.  
  1383. Syntax
  1384.  
  1385. {ClearFormats <PageOnly?(0|1)>}
  1386.  
  1387. Description
  1388.  
  1389. {ClearFormats} is the command equivalent for Edit  Clear  Formats. It resets the properties of cells but retains the values.
  1390.  
  1391. Parameters
  1392.  
  1393. Parameter    Description
  1394.  
  1395. PageOnly?    if Group mode is off, enter 0; if Group mode is on, and the active sheet belongs to a group, enter 1 to operate on only the active sheet or 0 to act on all sheets in the group
  1396.  
  1397.     Related topics
  1398.  
  1399. {CLOSE}
  1400.  
  1401. Description
  1402.  
  1403. {CLOSE} ends access to a file previously opened using {OPEN}. This lets another file be opened (only one can be open at a time). {CLOSE} completes the process of writing information to a file, including an update of the disk directory. This step is crucial to the integrity of any file. If your computer is turned off before a file is closed, that file's contents may become corrupted or lost.
  1404.  
  1405. {CLOSE} fails in the event of a disk error, such as when a disk is removed from the disk drive before the file is closed. In this case, {ONERROR} is useful in intercepting the error. If {CLOSE} succeeds, macro execution continues in the cell below the cell containing the {CLOSE} command, ignoring any other commands in that cell. If {CLOSE} fails, macro execution continues in the same cell as the {CLOSE} command.
  1406.  
  1407. Example
  1408.  
  1409. The following macro opens a new file in drive A called AFILE, writes the text line Hello, world! to the file, and closes the file.
  1410.  
  1411. \F    {OPEN "A:\AFILE",W}
  1412.  
  1413.         {WRITELN "Hello, world!"}
  1414.  
  1415.         {CLOSE}
  1416.  
  1417.     Related topics
  1418.  
  1419. {COLUMNWIDTH}
  1420.  
  1421. Syntax
  1422.  
  1423. {COLUMNWIDTH Block, FirstPane?, Set/Reset/Auto, Size}
  1424.  
  1425. Description
  1426.  
  1427. {COLUMNWIDTH} provides three ways to change the width of a column or columns (it is equivalent to the cell property Column Width). The columns to change are specified by Block. FirstPane? is used when the active window is split into panes (using View  Split Windows). To resize the columns in the left or top pane, set FirstPane? to 1; to resize the columns in the right or bottom pane, set FirstPane? to 0.
  1428.  
  1429. The argument Set/Resize/Auto specifies how to change the width. To set a column width, use this syntax: {COLUMNWIDTH Block, FirstPane?, 0, NewSize}.
  1430.  
  1431. NewSize is the new column width, in twips (a twip is 1/1440th of an inch). The maximum width is 20 inches (28,800 twips).
  1432.  
  1433. To reset a column to the default width (set by Default Width in the sheet Object Inspector) use this syntax: {COLUMNWIDTH Block, FirstPane?, 1}.
  1434.  
  1435. To automatically size a column based on what is entered in it, use this syntax: {COLUMNWIDTH Block, FirstPane?, 2, ExtraCharacters}
  1436.  
  1437. ExtraCharacters is the number of characters to add on to the calculated width. If this argument is omitted, the default is used (1 character).
  1438.  
  1439. Example
  1440.  
  1441. {COLUMNWIDTH A:A..B,1,0,1440} sets the width of columns A and B (on sheet A) to one inch (1,440 twips).
  1442.  
  1443. {COLUMNWIDTH A:A..B,0,0,2160} sets the width of columns A and B (on sheet A) to one and a half inches (2,160 twips). If the window is split, the columns are resized in the left or top pane.
  1444.  
  1445. {COLUMNWIDTH A:C,1,1} resets the width of column C (on sheet A) to the default width.
  1446.  
  1447. {COLUMNWIDTH A:C,1,2,3} automatically sizes column C (on sheet A) and adds three characters to the calculated width.
  1448.  
  1449. Parameters
  1450.  
  1451. Parameter    Description
  1452.  
  1453. Block    cells containing columns to resize
  1454.  
  1455. FirstPane?    1 to resize columns in left or top window pane; 0 to resize columns in right or bottom window pane
  1456.  
  1457. Set/Reset/Auto    0 to set the column width; 1 to reset the column width; 2 to automatically size the column(s)
  1458.  
  1459. Size    new width (in twips) if Set/... = 0; not needed if Set/... = 1; resetting size; extra characters (optional) if Set/... = 2
  1460.  
  1461.     Related topics
  1462.  
  1463. {Comment.Edit <CommentText>}
  1464.  
  1465. Description
  1466.  
  1467. Creates/updates a comment in the active cell, and leaves comment "bubble" in edit mode for you to insert the comment text. If a comment already exists, it brings up the comment "bubble" in edit mode for you to edit the existing comment. Equivalent to Insert  Comment, or Rt-Clicking on a cell, and choosing Insert Comment (or Edit Comment, if you are editing an existing comment).
  1468.  
  1469. {Comment.EditURL <URLText>}
  1470.  
  1471. Description
  1472.  
  1473. Brings up the Insert  Hyperlink dialog, allowing the user to insert, modify, or delete a hyperlink. Equivalent to Insert  Hyperlink.
  1474.  
  1475. {ComposeFormula}
  1476.  
  1477. Description
  1478.  
  1479. {Compose Formula} is the command equivalent of clicking the Formula Composer button on the Notebook toolbar. The macro has no arguments. {ComposeFormula} displays the Formula Composer dialog box.
  1480.  
  1481.     Related topics
  1482.  
  1483. {Consolidate.Option}
  1484.  
  1485. Command equivalent    Equivalent to Tools  Consolidate  Edit...
  1486.  
  1487. {Consolidate.Add_Source_Block <Block>}    ... Add
  1488.  
  1489. {Consolidate.Destination <Block>}    ... Destination Cells
  1490.  
  1491. {Consolidate.Function SummaryFunction}    ... Operation
  1492.  
  1493. {Consolidate.Go}    ... Consolidate
  1494.  
  1495. {Consolidate.Options OutputWithFormulas?(0|1), LabelsInTopRow?(0|1), LabelsInLeftCol?(0|1)}    ... Options
  1496.  
  1497. {Consolidate.Remove Name}    ... Delete
  1498.  
  1499. {Consolidate.Remove_Source_Block <Block>}    ... Remove
  1500.  
  1501. {Consolidate.Reset}    No equivalent; clears Source Cells and Destination Cells, and resets Options to default values in the Consolidation dialog box.
  1502.  
  1503. {Consolidate.Save Name}    ... Save As
  1504.  
  1505. {Consolidate.Use Name}    ... Consolidations
  1506.  
  1507. Description
  1508.  
  1509. {Consolidate.Option} is the command equivalent for Tools  Consolidate  New. It combines data from multiple selections into one using your choice of operators. Block defaults to the current selection if the argument is not supplied.
  1510.  
  1511. You can use {Consolidate?} or {Consolidate!} to display the Consolidation dialog box. {Consolidate?} lets the user manipulate the dialog box, whereas {Consolidate!} relies on the macro to manipulate it.
  1512.  
  1513. Example
  1514.  
  1515. The following macro adds the values in the source cellss B2..B4, C2..C3, and D2..D4, and returns values in the destination cells F2..F4.
  1516.  
  1517. {Consolidate.Add_Source_Block A:B2..B4}
  1518.  
  1519. {Consolidate.Add_Source_Block A:C2..C3}
  1520.  
  1521. {Consolidate.Add_Source_Block A:D2..D4}
  1522.  
  1523. {Consolidate.Function SUM}
  1524.  
  1525. {Consolidate.Destination A:F2..F4}
  1526.  
  1527. {Consolidate.Options 1,0,0}
  1528.  
  1529. {Consolidate.Go}
  1530.  
  1531. {Consolidate.Save CONSOL1}
  1532.  
  1533.     Related topics
  1534.  
  1535. {ConsolidateExpert}
  1536.  
  1537. Description
  1538.  
  1539. {ConsolidateExpert} is the command equivalent for Tools  Consolidate  New. The macro has no arguments. {ConsolidateExpert} displays the first Consolidate Expert dialog box.
  1540.  
  1541.     Related topics
  1542.  
  1543. {CONTENTS}
  1544.  
  1545. Syntax
  1546.  
  1547. {CONTENTS Dest, Source, <Width#>, <Format#>}
  1548.  
  1549. Description
  1550.  
  1551. {CONTENTS} copies the contents of Source into Dest, but unlike {LET} or other copy commands, if Source contains a value entry, it translates the copied value into a label and stores it in Dest. It also lets you specify a different numeric format and column width using the Width# and Format# arguments.
  1552.  
  1553. Width# can be any number from 1 to 1023. Corel Quattro Pro will not alter the width of the destination column but will treat the resulting string as if it came from a column with the specified width. For example, if a value is displayed as ***** in the source column because the column is not wide enough, specifying a wider Width# will let the value be copied as it would be displayed within that width, not as *****. Width# is optional, but must be provided if Format# is used. If you do not specify Width#, the width of the source column is assumed. Use the maximum width if you want all values to come across properly. You can use @TRIM with a {LET} command to remove any leading spaces from the label.
  1554.  
  1555. Format# can be any number from 0 to 127. Each number in this range corresponds to a specific numeric format and decimal precision. Format# affects the Dest entry only, not the Source value. See Numeric Format Codes for a list of special codes used to indicate numeric formats with Format#.
  1556.  
  1557. Example
  1558.  
  1559. The following examples assume cell C18 contains the value 48,988 in comma format with a column width of 12.
  1560.  
  1561. {CONTENTS A18,C18}
  1562.  
  1563. Places the 12-character label '      48,988 in cell A18 (six spaces are inserted at the beginning).
  1564.  
  1565. {CONTENTS E10,C18,3}
  1566.  
  1567. Places the 3-character label '*** in cell E10. (Only asterisks are copied because the value does not fit within three spaces.)
  1568.  
  1569. {CONTENTS A5,C18,15,34}
  1570.  
  1571. Places the 15-character label '     $48,988.00 in cell A5 (five spaces are inserted at the beginning).
  1572.  
  1573. Parameters
  1574.  
  1575. Parameter    Description
  1576.  
  1577. Dest    cell you want data written to
  1578.  
  1579. Source    cell you want data copied from
  1580.  
  1581. Width#    optional column width (1 to 1023)
  1582.  
  1583. Format#    optional format code
  1584.  
  1585.     Related topics
  1586.  
  1587. {Controls.Option}
  1588.  
  1589. Command equivalent    Equivalent to...
  1590.  
  1591. {Controls.Order}    Format  Value Order  Set New
  1592.  
  1593. {Controls.OrderFrom}    Format  Value Order  Reorder From First
  1594.  
  1595. {Controls.OrderTab}    Format  Tab Order  Set New
  1596.  
  1597. {Controls.OrderTabFrom}    Format  Tab Order  Reorder From First
  1598.  
  1599. Description
  1600.  
  1601. {Controls.Option} is equivalent to Format  Value Order and Format  Tab Order. It affects selected objects in the dialog window.
  1602.  
  1603.     Related topics
  1604.  
  1605. {CR} or ~
  1606.  
  1607. Description
  1608.  
  1609. {CR} or ~ (tilde) are equivalent to the Enter key.
  1610.  
  1611.     Related topics
  1612.  
  1613. {CREATEOBJECT}
  1614.  
  1615. Syntax
  1616.  
  1617. {CREATEOBJECT ObjectType, x1, y1, x2, y2<, x3, y3, ...>}
  1618.  
  1619. Description
  1620.  
  1621. With {CREATEOBJECT} you can add objects to the active window normally added using the Toolbar. {CREATEOBJECT} is context-sensitive, letting you create lines in a chart window or check boxes in a dialog window. Corel Quattro Pro interprets the coordinates specified after ObjectType differently based on the object type. The following table lists the possible chart object settings for ObjectType, and how each chart object uses the (x,y) coordinates.
  1622.  
  1623. Chart Objects {CREATEOBJECT} Can Generate
  1624.  
  1625. Object    # of (x,y)'s    Coordinates
  1626.  
  1627. Line    2    1st: Start point, 2nd: End point
  1628.  
  1629. Arrow        (same as for Line)
  1630.  
  1631. Block    2    1st: Upper left corner, 2nd: Width and height of the objects (in relative coordinates)
  1632.  
  1633. Rect (Rectangle)    2    (same as for Block)
  1634.  
  1635. Ellipse    2    1st: Upper left corner of a rectangle bounding the ellipse; 2nd: Width and height of the bounding rectangle
  1636.  
  1637. Rounded_Rect        (same as for Block)
  1638.  
  1639. Text        (same as for Block)
  1640.  
  1641. Polyline    Varies    1st: Start point, 2nd: End point of first segment and start of second segment; 3rd: End point of second segment and start of third segment, ... nth: End point
  1642.  
  1643. Polygon        (same as for Polyline)
  1644.  
  1645. Freehand_Polyline        (same as for Polyline)
  1646.  
  1647. Freehand_Polygon        (same as for Polyline)
  1648.  
  1649. Block Objects
  1650.  
  1651. The Block object has additional arguments for {CREATEOBJECT}:
  1652.  
  1653. {CREATEOBJECT ObjectType, x1, y1, x2, y2, "Block", "RowBorders?(Yes|No), ColBorders?(Yes|No), HorzGridLines?(Yes|No), VertGridLines?(Yes|No), AspectRatio?(Yes|No)"}
  1654.  
  1655. Block sets the notebook cells to use. The remaining arguments specify whether to show borders and grid lines and whether to maintain the cells' aspect ratio.
  1656.  
  1657. Dialog Controls {CREATEOBJECT} Can Generate
  1658.  
  1659. You can create these dialog controls listed in the order they appear on the Dialog Toolbar: Button, CheckBox, RadioButton, BitmapButton, Label, EditField, SpinCtrl, Rectangle, GroupBox, RangeBox, ComboBox, PickList, FileCtrl, ColCtrl, ScrollBar, HScrollBar, TimeCtrl. When creating a control, x1 and y1 specify the upper-left corner of the control; x2 and y2 specify the width and height of the control, in pixels.
  1660.  
  1661. ObjectType is enclosed in quotes. The x and y coordinates for each point follow, separated by commas.
  1662.  
  1663. Example
  1664.  
  1665. {CREATEOBJECT "Rect",86,11,94,74} creates a rectangle with upper-left corner = (86,11), width = 94, and height =74 (pixels).
  1666.  
  1667. {CREATEOBJECT "Block", 363, 260, 1278, 1139, "A:B2..D9", "No,No,Yes,Yes,Yes"} creates notebook cells in a chart window with upper-left corner = (363, 260), width = 1278, and height = 1139; the other arguments specify the notebook cells, turn off row and column borders, show grid lines, and maintain the cells' aspect ratio.
  1668.  
  1669. {CREATEOBJECT "Line",260,238,356,228} creates a line that starts at (260,238) and ends at (356,228).
  1670.  
  1671. {CREATEOBJECT "Polyline",2,2,23,59,11,26} creates a polyline that starts at (2,2), draws a line to (23,59), and then draws a line from that point to (11,26).
  1672.  
  1673. Parameters
  1674.  
  1675. Parameter    Description
  1676.  
  1677. ObjectName    type of object to create
  1678.  
  1679. x1, y1    xy coordinates for the starting point of the object; the upper left corner for rectangles and objects bounded by rectangles
  1680.  
  1681. x2, y2    xy coordinates for the end point or next point of the object; the width and height for rectangles and objects bounded by rectangles
  1682.  
  1683. x3, y3    xy coordinates for the next or last point of a polyline or polygon object
  1684.  
  1685.     Related topics
  1686.  
  1687. {CrossTab}
  1688.  
  1689. Syntax
  1690.  
  1691. {CrossTab "Input Cells";"Output cells";"<3D Page Name>";"Row 1;<Row 2>;<Row 3>";"Column 1;<Column 2>;<Column 3>";"Data 1: Data Option,<Data 2: Data Option>";"<Row 1: Option>,<Row 2: Option>,<Row 3: Option>,<Column 1: Option>,<Column 2: Option>,<Column 3: Option>"}
  1692.  
  1693. Description
  1694.  
  1695. Equivalent to Tools  Data Tools  Cross Tabs.
  1696.  
  1697. All items surrounded by <> are optional. All quotes in this macro command must be included in order for the macro to function.
  1698.  
  1699. All Column, Row and Data items are to be replaced with the field number containing the data to be used. Fields go from 0 to however many columns are passed into Cross Tabs. Columns are numbered from left to right in the source range, 0 being the first column of the selection.
  1700.  
  1701. Example
  1702.  
  1703. {CrossTab "A:A1..H145";"B:A1";"";"0,1";"2,3,4";"6: SUM";"4: AVERAGE"}
  1704.  
  1705. Notice that if the 3D Sheet Name is not included, the macro must have the empty quotes or it will not function properly.
  1706.  
  1707. Parameters
  1708.  
  1709. Parameter    Description
  1710.  
  1711. Data Option    SUM, AVERAGE, COUNT, % of COLUMN, % of ROW, % of GRAND, or STRING
  1712.  
  1713. Row and Column Options    SUM, AVERAGE, COUNT, % of COLUMN, % of ROW, % of GRAND, INCREASE, % INCREASE, or STRING
  1714.  
  1715. {CTRL}
  1716.  
  1717. Syntax
  1718.  
  1719. {CTRL+Key <Number>}
  1720.  
  1721. Description
  1722.  
  1723. {CTRL} emulates holding down the Ctrl key while pressing a keystroke. For example, {CTRL+PGDN 5} emulates pressing Ctrl+PgDn five times to move down five notebook sheets. Keystrokes that would perform Windows task switching, such as Ctrl+Esc, are ignored.
  1724.  
  1725. You can combine {ALT}, {CTRL}, and {SHIFT}. For example, {CTRL+SHIFT+D} is equivalent to pressing Ctrl+Shift+D, the Date keys.
  1726.  
  1727. Parameters
  1728.  
  1729. Parameter    Description
  1730.  
  1731. Key    keyboard macro command (PGUP, DOWN, and so on)
  1732.  
  1733. Number    number of times to repeat the operation (optional)
  1734.  
  1735. {DatabaseQuery}
  1736.  
  1737. Syntax
  1738.  
  1739. {DatabaseQuery Type; Name; QueryString; Destination}
  1740.  
  1741. Description
  1742.  
  1743. The {DatabaseQuery} macro sends the specified SQL statement to either ODBC or BDE and places the returned data in the specified block of cells.
  1744.  
  1745. {DatabaseQuery} is equivalent to Insert  External Data  Expert.
  1746.  
  1747. Parameters
  1748.  
  1749. Parameter    Description
  1750.  
  1751. Type    Type of database to query: "Paradox", "ODBC", or "BDE (Borland Database Engine)".
  1752.  
  1753. Name    Name of the database. If the type is Paradox, the name must be a path. If the type is ODBC, the name is a Data Source Name (DSN) from the user's ODBC configuration. If the name is BDE, the name is an alias name from the user's IDAPI/BDE configuration.
  1754.  
  1755. QueryString    An SQL Statement.
  1756.  
  1757.  Destination    The destination block of cells where to send the result.
  1758.  
  1759. {DATE}
  1760.  
  1761. Description
  1762.  
  1763. {DATE} is equivalent to pressing Ctrl+Shift+D, which lets users enter a date or time into the active cell.
  1764.  
  1765. You can enter a date in a cell without using Ctrl+Shift+D. Just type a date in one of Corel Quattro Pro's date formats--for example, 6/1/95.
  1766.  
  1767. Example
  1768.  
  1769. {DATE}8/6/90~    enters 8/6/90 in the active cell as a date.
  1770.  
  1771. {DATE}{?}~    pauses to let the user enter a date, then enters that date into the active cell.
  1772.  
  1773.     Related topics
  1774.  
  1775. {DbAlias}
  1776.  
  1777. Syntax
  1778.  
  1779. {DbAlias WORK | PRIV, Path}
  1780.  
  1781. Description
  1782.  
  1783. {DbAlias} is the command equivalent for Insert  External Data  Aliases which lets you specify a private directory to hold temporary files, or a working directory where external data tables are most likely to be found.
  1784.  
  1785. Parameters
  1786.  
  1787. Parameter    Description
  1788.  
  1789. WORK | PRIV    WORK to specify a Working directory; PRIV to specify a Private directory
  1790.  
  1791. Path    path for the Working directory or the Private directory
  1792.  
  1793.     Related topics
  1794.  
  1795. {DEFINE}
  1796.  
  1797. Syntax
  1798.  
  1799. {DEFINE Location1<:Type1>, Location2<:Type2>,...}
  1800.  
  1801. Description
  1802.  
  1803. When you pass control to a subroutine with the {Subroutine} command, you can also pass arguments for use by that subroutine. If you do, you must include a {DEFINE} command in the subroutine's first line. This command defines the data type of *each argument passed and indicates which cells to store the arguments in. If no {DEFINE} command is included, the arguments are ignored.
  1804.  
  1805. {DEFINE} sequentially defines the arguments passed to the subroutine. The first location and type given are assigned to the first argument passed, the second location and type to the second argument, and so on.
  1806.  
  1807. You must specify a location for each argument. This tells Corel Quattro Pro where to copy them. If there are more locations given than arguments passed, or more arguments than locations, the macro ends immediately, and an error message displays.
  1808.  
  1809. Type is optional. It tells Corel Quattro Pro whether the argument is a value or string. If no data type is given, the argument is assumed to be a literal string (even if it is a valid cell name, cell address, or value). If you add :string (or :s) to the location, any argument passed is stored as a label. If you add :value (or :v), Corel Quattro Pro treats the coming argument as a number or value resulting from a numeric formula. It it is not a numeric value, Corel Quattro Pro treats it as a string (or string value from a formula).
  1810.  
  1811. Example
  1812.  
  1813. In the following example, the \F macro passes three arguments (principal, interest, and term) to the subroutine _calc_loan, which stores the arguments in named cells and defines them as values. It then
  1814.  
  1815. ¿    uses the arguments to calculate the monthly payment on a loan
  1816.  
  1817. ¿    stores the result in a cell named amount
  1818.  
  1819. ¿    creates a label in a cell named payment displaying that amount as currency
  1820.  
  1821. ¿    returns control to the main macro
  1822.  
  1823. The main macro (\F) displays the result in the active cell preceded by the string "The monthly payment will be ".
  1824.  
  1825. \F    {_calc_loan 79500,12%,30}
  1826.  
  1827.  
  1828.  
  1829. _calc_loan    {DEFINE prin:value,int:value,term:value}
  1830.  
  1831.         {LET amount,@PMT(prin,int/12,term*12)}
  1832.  
  1833.         {CONTENTS payment,amount,9,34}{EditGoto txt_area}{RETURN}
  1834.  
  1835.  
  1836.  
  1837. prin    79500
  1838.  
  1839. int    0.12
  1840.  
  1841. term    30
  1842.  
  1843. amount    817.747
  1844.  
  1845. payment    $817.75
  1846.  
  1847.  
  1848.  
  1849. txt_area    +"The monthly payment will be "&@TRIM(payment)
  1850.  
  1851. Parameters
  1852.  
  1853. Parameter    Description
  1854.  
  1855. Location    cell in which you want to store the argument being passed
  1856.  
  1857. Type    string or value; string (or s) stores the value or formula as a label, and value (or v) stores the actual value or value resulting from a formula (optional)
  1858.  
  1859.     Related topics
  1860.  
  1861. {DEL} and {DELETE}
  1862.  
  1863. Description
  1864.  
  1865. {DEL} and {DELETE} are equivalent to the Del key.
  1866.  
  1867.     Related topics
  1868.  
  1869. {DELETEMENU}
  1870.  
  1871. Syntax
  1872.  
  1873. {DELETEMENU MenuPath}
  1874.  
  1875. Description
  1876.  
  1877. {DELETEMENU} removes the menu specified by MenuPath from the menu system. See the description of {ADDMENU} for the syntax of MenuPath. Use {DELETEMENUITEM} to remove an individual menu item.
  1878.  
  1879. Tips
  1880.  
  1881. ¿    You cannot delete menus between Edit and Tools on the menu bar. The area between these menu positions is reserved for context-sensitive menus that change depending on the active window. You can add menu items to menus between the Edit and Tools menus, but the new menu items will be swapped out of the menu when the context changes.
  1882.  
  1883. ¿    Changes made to the menu system using this command are not saved; they are lost when you exit Corel Quattro Pro. Each time you run a macro containing {DELETEMENU}, the menu changes appear again.
  1884.  
  1885. ¿    To restore the original menu bar, use the macro command {SETMENUBAR} without an argument
  1886.  
  1887. Example
  1888.  
  1889. {DELETEMENU "/File"} removes the File menu from the active menu system.
  1890.  
  1891. Parameters
  1892.  
  1893. Parameter    Description
  1894.  
  1895. MenuPath    menu in the tree to delete; type a forward slash (/) followed by the menu name; for example, to delete the Edit menu, type /Edit.
  1896.  
  1897.     Related topics
  1898.  
  1899. {DELETEMENUITEM}
  1900.  
  1901. Syntax
  1902.  
  1903. {DELETEMENUITEM MenuPath}
  1904.  
  1905. Description
  1906.  
  1907. {DELETEMENUITEM} removes the menu item specified by MenuPath from the menu system. Use {DELETEMENU} to remove entire menus from the active menu system.
  1908.  
  1909. Tips
  1910.  
  1911. ¿    You can delete menu items from any menu, but if you change a context-sensitive menu (all menus between Edit and Tools on the menu bar), the change only applies to the menu in the active window. For example, suppose you use a macro to change the View menu when the notebook window is active. If you then open a chart window, the chart View menu appears--without the change. If you want the change to apply to that View menu as well, you must run the macro again.
  1912.  
  1913. ¿    Changes made to the menu system using this command are not saved; they are lost when you exit Corel Quattro Pro. Each time you run a macro containing {DELETEMENUITEM} the menu changes appear again.
  1914.  
  1915. ¿    To restore the original menu bar, use the macro command {SETMENUBAR} without an argument.
  1916.  
  1917. Example
  1918.  
  1919. {DELETEMENUITEM "/Edit/Clear"} removes the Edit  Clear command.
  1920.  
  1921. {DELETEMENUITEM "/Edit/<-"} removes the first item on the Edit menu.
  1922.  
  1923. Parameters
  1924.  
  1925. Parameter    Description
  1926.  
  1927. MenuPath    menu item in the tree to delete; enter the sequence of menu items separated by forward slashes (/); you can use <- and -> to specify an item menu at the top or  bottom of a menu, respectively. For example, /File/<- specifies the first item on the File menu. You can also use numbers to identify menu items. For example, /File/0 specifies the first item on the File menu (the ID numbers start at zero)
  1928.  
  1929.     Related topics
  1930.  
  1931. {DELVAR}
  1932.  
  1933. Syntax
  1934.  
  1935. {DELVAR VarName1<,VarName2,...>}
  1936.  
  1937. Description
  1938.  
  1939. {DELVAR} deletes unused named variables. Named variables are used to control OLE objects. OLE objects are released from control at the end of macro execution, but named variables remain until you exit Corel Quattro Pro. You can delete the unused named variables to free an object assigned to that name, and then control the object using another macro.
  1940.  
  1941. Example
  1942.  
  1943. {DELVAR} deletes all named variables
  1944.  
  1945. {DELVAR calc} deletes a named variable calc
  1946.  
  1947. {DELVAR calc 0, calc 1, calc 3} deletes the named variables calc 0, calc 1, and calc 3.
  1948.  
  1949. For more details on using {DELVAR} and other OLE automation macro commands, Using OLE Automation Features.
  1950.  
  1951. Parameters
  1952.  
  1953. Parameter    Description
  1954.  
  1955. VarName    a named variable
  1956.  
  1957. {DESCR}
  1958.  
  1959. Syntax
  1960.  
  1961. {DESCR InBlock, OutBlock, Grouped, <Labels(0|1)>, <Summary(0|1)>, <Largest>, <Smallest>, <Confidence>}
  1962.  
  1963. Description
  1964.  
  1965. {DESCR} returns a table of descriptive statistics that characterize a sample. {DESCR} is equivalent to the Descriptive Statistics analysis tool.
  1966.  
  1967. Parameters
  1968.  
  1969. Parameter    Description
  1970.  
  1971. InBlock    one or more numeric cell values representing the input cells
  1972.  
  1973. OutBlock    upper left cell of the output cells
  1974.  
  1975. Grouped    "C" to group results by column or "R" to group results by row; "C" is the default
  1976.  
  1977. 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
  1978.  
  1979. Summary    1 to display summary statistics; 0 to omit summary statistics; the default is 0
  1980.  
  1981. Largest    a value n which, if present, makes {DESCR} report the nth largest data point; if omitted, the largest data point is not reported
  1982.  
  1983. Smallest    a value n which, if present, makes {DESCR} report the nth smallest data point; if omitted, the smallest data point is not reported
  1984.  
  1985. Confidence    confidence level of the mean; the default is 0.95
  1986.  
  1987.     Related topics
  1988.  
  1989. {DialogView}
  1990.  
  1991. Syntax
  1992.  
  1993. {DialogView Window}
  1994.  
  1995. Description
  1996.  
  1997. {DialogView} lets you edit an existing dialog box.
  1998.  
  1999. Parameters
  2000.  
  2001. Parameter    Description
  2002.  
  2003. Window    dialog window to make active
  2004.  
  2005.     Related topics
  2006.  
  2007. {DialogWindow.Property}
  2008.  
  2009. Description
  2010.  
  2011. {DialogWindow.Property} is equivalent to right-clicking the title bar of a dialog window to set its properties.
  2012.  
  2013. {DialogWindow} commands affect the active dialog window. The next table lists the possible settings for Property. To display a property description with syntax, choose that property in the following list:
  2014.  
  2015. Dimension
  2016.  
  2017. Disabled
  2018.  
  2019. Grid_Options
  2020.  
  2021. Name
  2022.  
  2023. Position_Adjust
  2024.  
  2025. Title
  2026.  
  2027. Value
  2028.  
  2029.     Related topics
  2030.  
  2031. {DialogWindow.Dimension<.Option>}
  2032.  
  2033. {DialogWindow.Dimension<.Option>}
  2034.  
  2035. {DialogWindow.Dimension "XPos, Ypos, Width, Height"}
  2036.  
  2037. {DialogWindow.Dimension.Height Height}
  2038.  
  2039. {DialogWindow.Dimension.Width Width}
  2040.  
  2041. {DialogWindow.Dimension.X XPos}
  2042.  
  2043. {DialogWindow.Dimension.Y YPos}
  2044.  
  2045. Description
  2046.  
  2047. {DialogWindow.Dimension.Option} is equivalent to the dialog window property Dimension, which lets you move and resize the active dialog window. Each argument is specified in pixels. XPos and YPos specify the distance in pixels from the left side of the Corel Quattro Pro window and bottom of the input line, respectively.
  2048.  
  2049. Example
  2050.  
  2051. The following macro command positions the active dialog window two pixels from the left edge of the Corel Quattro Pro window, five pixels below the input line, sets the width to 150 pixels, and sets the height to 250 pixels.
  2052.  
  2053. {DialogWindow.Dimension "2,5,150,250"}
  2054.  
  2055.     Related topics
  2056.  
  2057. {DialogWindow.Disabled Yes|No}
  2058.  
  2059. Description
  2060.  
  2061. {DialogWindow.Disabled Yes|No} disables (Yes) or enables (No) the active dialog box or Toolbar. This command only works when the user is viewing a dialog box or Toolbar; it does not work when editing one.
  2062.  
  2063.     Related topics
  2064.  
  2065. {DialogWindow.Grid_Options GridSize, ShowGrid, SnapToGrid}
  2066.  
  2067. Description
  2068.  
  2069. {DialogWindow.Grid_Options GridSize, ShowGrid, SnapToGrid} sets the grid size of the active dialog window. Use GridSize to specify the distance between grid points in pixels; ShowGrid specifies whether the grid is visible; SnapToGrid specifies whether objects snap to the grid.
  2070.  
  2071. Example
  2072.  
  2073. The following macro sets the distance between grid points to 10, shows the grid, and enables it.
  2074.  
  2075. {DialogWindow.Grid_Options "10,Yes,Yes"}
  2076.  
  2077.     Related topics
  2078.  
  2079. {DialogWindow.Name Name}
  2080.  
  2081. Description
  2082.  
  2083. {DialogWindow.Name Name} sets the name of the active dialog window. This name is used by macro commands, @functions, and link commands to identify the dialog box (or Toolbar).
  2084.  
  2085.     Related topics
  2086.  
  2087. {DialogWindow.Position_Adjust Depend, LeftRel, TopRel, RightRel, BottomRel, CenterHor, CenterVer}
  2088.  
  2089. Description
  2090.  
  2091. {DialogWindow.Position_Adjust Depend, LeftRel, TopRel, RightRel, BottomRel, CenterHor, CenterVer} specifies how the active dialog box resizes when the Corel Quattro Pro window is resized. The arguments are equal to options in the Position Adjust dialog box; click here  for directions on using the Position Adjust property.
  2092.  
  2093.     Related topics
  2094.  
  2095. {DialogWindow.Title String}
  2096.  
  2097. Description
  2098.  
  2099. {DialogWindow.Title String} specifies the title that appears on the dialog box when the user is viewing it (the title does not appear when editing the dialog box).
  2100.  
  2101.     Related topics
  2102.  
  2103. {DialogWindow.Value String}
  2104.  
  2105. Description
  2106.  
  2107. {DialogWindow.Value String} sets the initial settings of the dialog box (or Toolbar). You can use it with @COMMAND to find the current settings of the dialog box. String is a comma separated list of settings. Each setting sets the initial value of one control. Control values appear in this list if their Process Value property is set to Yes. You can set the order of the settings while editing the dialog box.
  2108.  
  2109. Example
  2110.  
  2111. The following macro command sets the initial values of a dialog box with three controls. Each setting maps to one control.
  2112.  
  2113.     {DialogWindow.Value "25000,5,1st of month"}
  2114.  
  2115.     Related topics
  2116.  
  2117. {DISPATCH}
  2118.  
  2119. Syntax
  2120.  
  2121. {DISPATCH Location}
  2122.  
  2123. Description
  2124.  
  2125. {DISPATCH} is similar to {BRANCH}, except it uses Location differently:
  2126.  
  2127. ¿    If Location is a cell address or one named cell, {DISPATCH} branches to the address stored in that cell.
  2128.  
  2129. ¿    If Location is a text formula resulting in a cell or one named cell, {DISPATCH} branches to the address stored in that result address. (In Quattro Pro DOS, {DISPATCH} branches to the actual result address.)
  2130.  
  2131. ¿    If Location contains cells or a text formula resulting in cells, {DISPATCH} branches to the first cell of those cells.
  2132.  
  2133. {DISPATCH} is useful when you want to branch to one of several alternative macros, depending on circumstances. You can also set up a macro that modifies the contents of Location, depending on user input or test conditions.
  2134.  
  2135. Example
  2136.  
  2137. The macro _continue in the following example uses {DISPATCH jump_cell} to create a form letter that changes depending on the result of a credit check.
  2138.  
  2139. Type the line to the right of \F with no hard returns until after the first {BRANCH _continue}, then press Enter to insert the text into one cell.
  2140.  
  2141. credit    OK
  2142.  
  2143.     
  2144.  
  2145. \F    {EditGoto text_area}
  2146.  
  2147.     {IF credit="OK"}{LET jump_cell,"_ok_note"}{BRANCH _continue}
  2148.  
  2149.     {LET jump_cell,"_bum_note"}{BRANCH _continue}
  2150.  
  2151.     
  2152.  
  2153. _continue    {PUTCELL "Because of your current standing with P.K."}
  2154.  
  2155.     {DOWN}
  2156.  
  2157.     {PUTCELL "Finance, we have decided to"}{DOWN}
  2158.  
  2159.     {DISPATCH jump_cell}
  2160.  
  2161.     
  2162.  
  2163. jump_cell    _ok_note
  2164.  
  2165.     
  2166.  
  2167. _ok_note    {PUTCELL "extend your credit limit."}{DOWN 2}
  2168.  
  2169.     {BRANCH _finish}
  2170.  
  2171.     
  2172.  
  2173. _bum_note    {PUTCELL "CANCEL your account."}{DOWN 2}
  2174.  
  2175.     {BRANCH _finish}
  2176.  
  2177.     
  2178.  
  2179. _finish    {PUTCELL "Please call our office for details."}
  2180.  
  2181.     {DOWN 2}
  2182.  
  2183.     {PUTCELL "Sincerely,"}
  2184.  
  2185.     {DOWN 3}
  2186.  
  2187.     {PUTCELL "James Madison (Account Officer)"}
  2188.  
  2189.     {DOWN}
  2190.  
  2191.     
  2192.  
  2193. text_area    Because of your current standing with P.K.
  2194.  
  2195.     Finance, we have decided to
  2196.  
  2197.     extend your credit limit.
  2198.  
  2199.     
  2200.  
  2201.     Please call our office for details.
  2202.  
  2203.     
  2204.  
  2205.     Sincerely,
  2206.  
  2207.     
  2208.  
  2209.     James Madison (Account Officer)
  2210.  
  2211. Parameters
  2212.  
  2213. Parameter    Description
  2214.  
  2215. Location    a single cell containing the address or cell name of another macro
  2216.  
  2217.     Related topics
  2218.  
  2219. {DLL}
  2220.  
  2221. Syntax
  2222.  
  2223. {DLL <DLLName.>FunctionName, Argument1, Argument2,...}
  2224.  
  2225. Description
  2226.  
  2227. {DLL} runs a macro or returns a value from an add-in @function contained in a dynamic-link library file. The @function can have up to 16 arguments.
  2228.  
  2229. Example
  2230.  
  2231. This statement calls the @function AMPLITUDE, included in the DLL Math, with two selections as arguments:
  2232.  
  2233. {DLL Math.AMPLITUDE,A1..A10,B1..B10}
  2234.  
  2235. Parameters
  2236.  
  2237. Parameter    Description
  2238.  
  2239. DLLName    the name of a DLL file (if not already loaded)
  2240.  
  2241. FunctionName    the name of an @function contained in the DLL
  2242.  
  2243. Argument1,Argument2...    arguments to the @function
  2244.  
  2245.     Related topics
  2246.  
  2247. {DLL.Load}
  2248.  
  2249. Syntax
  2250.  
  2251. {DLL.Load DLLName}
  2252.  
  2253. Description
  2254.  
  2255. {DLL.Load} loads a dynamic-link library (DLL) program. You can use {DLL.Load} to load a DLL containing add-in @functions or macros. When the DLL is loaded, you can reference add-in @functions contained in the DLL without typing the DLL name. Similarly, macros contained in the DLL become resident in memory.
  2256.  
  2257. You can use {DLL.Load} to define a startup macro in QPW.INI.
  2258.  
  2259. Example
  2260.  
  2261. {DLL.Load MYDLL} loads a DLL program named MYDLL
  2262.  
  2263. Parameters
  2264.  
  2265. Parameter    Description
  2266.  
  2267. DLLName    the name of a DLL file to load
  2268.  
  2269.     Related topics
  2270.  
  2271. {DODIALOG}
  2272.  
  2273. Syntax
  2274.  
  2275. {DODIALOG DialogName, OKExit?, <Arguments>, <MacUse?>}
  2276.  
  2277. Description
  2278.  
  2279. {DODIALOG} displays a dialog box for the user or the macro to manipulate. MacUse? specifies how the dialog box is manipulated; if 0, the macro manipulates the dialog box, if 1, the macro pauses so the user can manipulate the dialog box.
  2280.  
  2281. DialogName is the name of the dialog box to display. Arguments refers to the cells containing initial settings for controls in the dialog box. Each cell in Arguments corresponds to one control in the dialog box with a Process Value property set to Yes; the order of controls in the dialog box determines which cell maps to which control (the first cell maps to the first control, the second cell maps to the second, and so on).
  2282.  
  2283. If a dialog box is under macro control (MacUse? set to 0), you can make it revert to user control using {PAUSEMACRO}.
  2284.  
  2285. Once the dialog box closes (performing its function), Corel Quattro Pro writes the new control settings into their respective cells. OKExit? is a cell containing the result of the dialog box operation; 1 if OK was chosen, 0 if the dialog box was canceled.
  2286.  
  2287. Parameters
  2288.  
  2289. Parameter    Description
  2290.  
  2291. DialogName    name of dialog box to display
  2292.  
  2293. OKExit?    cell to store how the dialog box closed (1 for OK, 0 for Cancel)
  2294.  
  2295. Arguments    cells to store the initial settings for controls in the dialog box and their final settings (optional)
  2296.  
  2297. MacUse?    1 if the user should manipulate the dialog box, 0 if the macro manipulates it (optional; 1 is the default)
  2298.  
  2299.     Related topics
  2300.  
  2301. {DOWN} and {D}
  2302.  
  2303. Syntax
  2304.  
  2305. {DOWN <Number>} or {D <Number>}
  2306.  
  2307. Description
  2308.  
  2309. {DOWN} and {D} are equivalent to the Down key. The optional argument Number moves the selector down the corresponding number of rows. You can also use cell references or cell names as arguments.
  2310.  
  2311. Example
  2312.  
  2313. {DOWN}{DOWN}    moves the selector down two rows.
  2314.  
  2315. {DOWN 4}    moves the selector down four rows.
  2316.  
  2317. {DOWN G13}    moves down the number of rows specified in cell G13.
  2318.  
  2319. {DOWN count}    moves down the number of rows specified in the first cell of the named area "count".
  2320.  
  2321. Parameters
  2322.  
  2323. Parameter    Description
  2324.  
  2325. Number    any positive integer (optional)
  2326.  
  2327.     Related topics
  2328.  
  2329. {DraftViewGoto}
  2330.  
  2331. Description
  2332.  
  2333. Switches from either the Objects Sheet or the sheet in Page View mode to Draft View. Equivalent to View  Draft.
  2334.  
  2335.     Related topics
  2336.  
  2337. {DUPLICATE}
  2338.  
  2339. Syntax
  2340.  
  2341. {DUPLICATE xoffset, yoffset}
  2342.  
  2343. Description
  2344.  
  2345. {DUPLICATE} copies selected chart annotations or dialog box controls. If no object is selected, {DUPLICATE} does nothing.
  2346.  
  2347. xoffset and yoffset are measured in relative coordinates for objects in a chart window, and in pixels for dialog box objects.
  2348.  
  2349. Example
  2350.  
  2351. The following macro activates a floating chart for editing, creates a rectangle in the chart, makes a copy of the rectangle, then deactivates editing.
  2352.  
  2353. {GraphEdit Chart1, 1}
  2354.  
  2355. {CreateObject Rect,147,176,416,427}
  2356.  
  2357. {Duplicate 269,338}
  2358.  
  2359. {GraphDeactivate}
  2360.  
  2361. Parameters
  2362.  
  2363. Parameter    Description
  2364.  
  2365. xoffset    offset from the left edge of UpperCell to the left edge of the floating object
  2366.  
  2367. yoffset    offset from the top edge of UpperCell to the top edge of the floating object
  2368.  
  2369. {EDIT}
  2370.  
  2371. Description
  2372.  
  2373. {EDIT} is equivalent to the Edit key, F2. Its main use is in Edit mode, where it lets you edit the contents of the active cell. You can also use it to search for items in a long list.
  2374.  
  2375.     Related topics
  2376.  
  2377. {EditClear}
  2378.  
  2379. Description
  2380.  
  2381. {EditClear} is the command equivalent for Edit  Clear  Cells. It erases the contents and properties of the current cells, deletes selected objects from dialog and chart windows, and deletes selected floating objects. To erase cells while leaving their properties intact, use {ClearContents}.
  2382.  
  2383.     Related topics
  2384.  
  2385. {EditCopy}
  2386.  
  2387. Description
  2388.  
  2389. {EditCopy} is the command equivalent for Edit  Copy. It copies the selected object to the Clipboard.
  2390.  
  2391.     Related topics
  2392.  
  2393. {EditCut}
  2394.  
  2395. Description
  2396.  
  2397. {EditCut} is the command equivalent for Edit  Cut. It removes the selected object from the spreadsheet and moves it to the Clipboard.
  2398.  
  2399.     Related topics
  2400.  
  2401. {EditGoto}
  2402.  
  2403. Syntax
  2404.  
  2405. {EditGoto Block,<Extend?(0|1)>}
  2406.  
  2407. Description
  2408.  
  2409. {EditGoto} is the command equivalent for Edit  Go To. It selects and displays Block within spreadsheet sheets, but not the Objects sheet.
  2410.  
  2411. You can use {EditGoto?} or {EditGoto!} to display the Go To dialog box. {EditGoto?} lets the user manipulate the dialog box, whereas {EditGoto!} relies on the macro to manipulate it.
  2412.  
  2413. Parameters
  2414.  
  2415. Parameter    Description
  2416.  
  2417. Block    cells to display and select
  2418.  
  2419. Extend?    whether to extend the selection from the current selection to the specified cells; 0 = no, 1 = yes; the default is 0
  2420.  
  2421.     Related topics
  2422.  
  2423. {EditPaste}
  2424.  
  2425. Description
  2426.  
  2427. {EditPaste} is the command equivalent for Edit  Paste. It copies data and its properties from the Clipboard into the notebook.
  2428.  
  2429. To paste only values or properties, use {PasteSpecial}. {PasteLink} creates a live DDE link, and {PasteFormat} adds many types of data from other applications (including embedded OLE objects).
  2430.  
  2431.     Related topics
  2432.  
  2433. {END}
  2434.  
  2435. Description
  2436.  
  2437. {END} is equivalent to the End key.
  2438.  
  2439.     Related topics
  2440.  
  2441. {ESC} and {ESCAPE}
  2442.  
  2443. Description
  2444.  
  2445. {ESC} and {ESCAPE} are equivalent to the Esc key, which is useful for clearing menus or dialog boxes from the screen, one at a time. To clear all prompts and return Corel Quattro Pro to Ready Mode, use {BREAK}.
  2446.  
  2447.     Related topics
  2448.  
  2449. {EXEC}
  2450.  
  2451. Syntax
  2452.  
  2453. {EXEC AppName, WindowMode, <ResultLoc>}
  2454.  
  2455. Description
  2456.  
  2457. {EXEC} lets you run other Windows applications or DOS commands. AppName can be any valid command string you could type in the Windows Run dialog box. AppName can contain the path of the application. If no path is given, then the application must be in the system path so Windows can find it.
  2458.  
  2459. ResultLoc is useful in some cases where the started application supports DDE along with an instance number. For example, Excel and Corel Quattro Pro respond to their names and also respond to their names concatenated with an instance number.
  2460.  
  2461. Example
  2462.  
  2463. {EXEC "C:\COREL\SUITE8\PROGRAMS\WPWIN8.EXE",2} runs Corel WordPerfect for Windows as a minimized application
  2464.  
  2465. {EXEC "NOTEPAD.EXE",1} runs the Windows Notepad and displays it just as if it were run from the Start button on the taskbar.
  2466.  
  2467. {EXEC "C:\COMMAND.COM /C DIR>TEST.TXT",1} stores the current directory listing in the file TEST.TXT for Windows, except for Windows NT 4.0.
  2468.  
  2469. {EXEC "C:\CMD.EXE /C DIR>TEST.TXT",1} stores the current directory listing in the file TEST.TXT in Windows NT 4.0.
  2470.  
  2471. Parameters
  2472.  
  2473. Parameter    Description
  2474.  
  2475. AppName    name (in quotes) of the application to run (up to 100 characters)
  2476.  
  2477. WindowMode    size state of the application's window: 1 or 101 for normal size, 2 or 102 for minimized, 3 or 103 for maximized; use 101, 102, 103 to suspend macro execution until the application terminates
  2478.  
  2479. ResultLoc    cell containing the coded explanation of the operation's success
  2480.  
  2481.     Related topics
  2482.  
  2483. {EXECAUTO}
  2484.  
  2485. Syntax
  2486.  
  2487. {EXECAUTO AutoExpr1<,AutoExpr2>}
  2488.  
  2489. Description
  2490.  
  2491. {EXECAUTO} executes one or more methods in another application, but drops any return values.
  2492.  
  2493. Example
  2494.  
  2495. {EXECAUTO calc.Display()} asks DispCalc to display its current input value.
  2496.  
  2497. {EXECAUTO calc.Button(A1), calc.Display()} passes the value in A1 as an input to DispCalc and asks DispCalc to diplay it.
  2498.  
  2499. For more details on using {EXECAUTO} and other OLE automation macro commands, Using OLE Automation Features.
  2500.  
  2501. Parameters
  2502.  
  2503. Parameter    Description
  2504.  
  2505. AutoExpr1,2...    one or more automation expressions
  2506.  
  2507. {EXECUTE}
  2508.  
  2509. Syntax
  2510.  
  2511. {EXECUTE DDEChannel,Macro,<ResultLoc>}
  2512.  
  2513. Description
  2514.  
  2515. With {EXECUTE} you can make other applications that support DDE run their macros. The macro to run is stored in the string Macro. It must be in the syntax the application normally uses (refer to the documentation for each application). You must open a channel of conversation with the other application using {INITIATE} (which determines the value of DDEChannel) before using {EXECUTE}.
  2516.  
  2517. The contents of ResultLoc depend on the application you are contacting. Most often, if a macro succeeds, ResultLoc contains 1. If a macro fails, {EXECUTE} results in an error.
  2518.  
  2519. See {REQUEST} and {POKE} for more information on receiving data from and sending data to other applications using DDE.
  2520.  
  2521. Example
  2522.  
  2523. The following example initiates a DDE conversation with Corel WordPerfect's macro server and opens REPORT.DOC in Corel WordPerfect.
  2524.  
  2525. channel    1
  2526.  
  2527.     {INITIATE "WPWin7_Macros","COMMANDS",channel}
  2528.  
  2529.     {EXECUTE channel,"FileOpen(""report.doc"")"}
  2530.  
  2531.     {TERMINATE channel}
  2532.  
  2533. Parameters
  2534.  
  2535. Parameter    Description
  2536.  
  2537. DDEChannel    channel ID number of the application to run a macro in
  2538.  
  2539. Macro    string containing the macro command(s) to run
  2540.  
  2541. ResultLoc    a cell indicating the result of the operation
  2542.  
  2543.     Related topics
  2544.  
  2545. {EXPON}
  2546.  
  2547. Syntax
  2548.  
  2549. {EXPON InBlock,OutBlock,<Damping>,<StdErrs>}
  2550.  
  2551. Description
  2552.  
  2553. {EXPON} performs exponential smoothing on a series of values. {EXPON} is equivalent to the Exponential Smoothing analysis tool.
  2554.  
  2555. Parameters
  2556.  
  2557. Parameter    Description
  2558.  
  2559. InBlock    input cells containing a single column or row with at least four numeric values; the cells must not contain labels
  2560.  
  2561. OutBlock    upper left cell of the output cells
  2562.  
  2563. Damping    damping factor used as the exponential smoothing constant; indicates the percentage for error to adjust each prior forecast value; must be │ 0; the default is 0.3
  2564.  
  2565. StdErrs    flag indicating whether standard errors are included in the output table: yes (1) or no (0); the default is 0
  2566.  
  2567.     Related topics
  2568.  
  2569. {ExportGraphic}
  2570.  
  2571. Syntax
  2572.  
  2573. {ExportGraphic Filename,<GrayScale?(0|1)>,<Compression?(0|1)>}
  2574.  
  2575. Description
  2576.  
  2577. {ExportGraphic} is the command equivalent for Chart  Export to File. It saves selected graphic objects to one of several file types with optional gray-scaling and compression.
  2578.  
  2579. You can use {ExportGraphic?} or {ExportGraphic!} to display the Export Graphics File dialog box. {ExportGraphic?} lets the user manipulate the dialog box, whereas {ExportGraphic!} relies on the macro to manipulate it.
  2580.  
  2581. Parameters
  2582.  
  2583. Parameter    Description
  2584.  
  2585. Filename    name of the graphic file to export
  2586.  
  2587. GrayScale?    whether to gray-scale: no (0), yes (1); the default is 0
  2588.  
  2589. Compression?    type of .TIF file compression to use: none (0) or PackBits (1); the default is 0
  2590.  
  2591.     Related topics
  2592.  
  2593. {FileClose} and {FileCloseAll}
  2594.  
  2595. Command equivalent    Equivalent to ...
  2596.  
  2597. {FileClose <DoSave? (0|1)>}    File  Close
  2598.  
  2599. {FileCloseAll <DoSave? (0|1)>}    no equivalent
  2600.  
  2601. Description
  2602.  
  2603. {FileClose} closes all views of the active notebook; {FileCloseAll} closes all open notebooks. The optional argument DoSave? indicates whether to display a save prompt before closing files with changes. Use 1, the default, to prompt for changes; 0 suppresses save prompts.
  2604.  
  2605.     Related topics
  2606.  
  2607. {FileCombine}
  2608.  
  2609. Syntax
  2610.  
  2611. {FileCombine Filename, <Blocks>, Add | Subtract | Multiply | Divide | Copy}
  2612.  
  2613. Description
  2614.  
  2615. {FileCombine} is the command equivalent for Tools  Data Tools  Combine Files. If you use the "Copy" option, it copies all or part of a notebook into the active notebook (starting at the selected cell). Omit Blocks to combine an entire file. Use "Add", "Subtract", "Multiply", or "Divide" to perform mathematical operations; the incoming data operates on existing data.
  2616.  
  2617. You can use {FileCombine?} or {FileCombine!} to display the Combine Files dialog box. {FileCombine?} lets the user manipulate the dialog box, whereas {FileCombine!} relies on the macro to manipulate it.
  2618.  
  2619. Parameters
  2620.  
  2621. Parameter    Description
  2622.  
  2623. Filename    name of the file to combine
  2624.  
  2625. Blocks    selection or selections within Filename to combine (optional)
  2626.  
  2627.     Related topics
  2628.  
  2629. {FileExit}
  2630.  
  2631. Syntax
  2632.  
  2633. {FileExit <DoSave?(0|1)>}
  2634.  
  2635. Description
  2636.  
  2637. {FileExit} is the command equivalent for File  Exit. It closes Corel Quattro Pro. The optional argument DoSave? indicates whether to display a save prompt before closing files with changes. Use 1, the default, to prompt for changes; 0 suppresses save prompts.
  2638.  
  2639. Parameters
  2640.  
  2641. Parameter    Description
  2642.  
  2643. DoSave?    whether to display a save prompt for modified files: no (0), yes (1); 1 is the default
  2644.  
  2645.     Related topics
  2646.  
  2647. {FileExtract}
  2648.  
  2649. Syntax
  2650.  
  2651. {FileExtract Formulas | Values, Blocks, Filename, <Replace | Backup | Confirm>}
  2652.  
  2653. Description
  2654.  
  2655. {FileExtract} is the command equivalent for Tools  Data Tools  Extract to File. It saves part of a notebook to a separate file, leaving the original file intact. Use "Formulas" to retain formulas; use "Values" to convert formulas to values. The optional argument--"Replace", "Backup", or "Confirm"--indicates how to treat an existing file with the same name (without displaying a prompt).
  2656.  
  2657. You can use {FileExtract?} or {FileExtract!} to display the Extract To File dialog box. {FileExtract?} lets the user manipulate the dialog box, whereas {FileExtract!} relies on the macro to manipulate it.
  2658.  
  2659. Parameters
  2660.  
  2661. Parameter    Description
  2662.  
  2663. Blocks    selection or selections to extract
  2664.  
  2665. Filename    name of the new file containing Blocks
  2666.  
  2667.     Related topics
  2668.  
  2669. {FileImport}
  2670.  
  2671. Syntax
  2672.  
  2673. {FileImport "Filename","ASCII Text File"|"Comma and "" Delimited File"|"Only Commas"|"Parse Expert"}
  2674.  
  2675. Description
  2676.  
  2677. {FileImport} copies a text file into the active sheet of a notebook. Enter the option string that describes the type of file to import.
  2678.  
  2679. You can use {FileImport?} or {FileImport!} to display the Text Import dialog box. {FileImport?} lets the user manipulate the dialog box, whereas {FileImport!} relies on the macro to manipulate it.
  2680.  
  2681.     Related topics
  2682.  
  2683. {FileNew}
  2684.  
  2685. Syntax
  2686.  
  2687. {FileNew <TemplateName>}
  2688.  
  2689. Description
  2690.  
  2691. {FileNew} is the command equivalent for File  New. It opens a blank notebook or a notebook based on a QuickTemplate.
  2692.  
  2693. You can use {FileNew?} or {FileNew!} to display the New File dialog box. {FileNew?} lets the user manipulate the dialog box, whereas {FileNew!} relies on the macro to manipulate it.
  2694.  
  2695. FileNew only opens templates in the folder indicated in Tools  Settings  File Options  QuickTemplates.
  2696.  
  2697. Example
  2698.  
  2699. The following macro opens a blank notebook:
  2700.  
  2701. {FileNew}
  2702.  
  2703. The following macro opens a new notebook based on the 7 Year Balloon Loan QuickTemplate:
  2704.  
  2705. {FileNew "7 Year Balloon Loan"}
  2706.  
  2707. Parameters
  2708.  
  2709. Parameter    Description
  2710.  
  2711. TemplateName    the name of a QuickTemplate, as indicated in the Title box in File  Properties  Summary.
  2712.  
  2713.     Related topics
  2714.  
  2715. {FileOpen}
  2716.  
  2717. Syntax
  2718.  
  2719. {FileOpen Filename,<"Open Supporting"|"Update References"|"None ", Open as Copy 0|1>}
  2720.  
  2721. Description
  2722.  
  2723. {FileOpen} is the command equivalent for File  Open. It opens the specified file.
  2724.  
  2725. You can use {FileOpen?} or {FileOpen!} to display the Open File dialog box. {FileOpen?} lets the user manipulate the dialog box, whereas {FileOpen!} relies on the macro to manipulate it.
  2726.  
  2727. Parameters
  2728.  
  2729. Parameter    Description
  2730.  
  2731. Filename    name of the file to open
  2732.  
  2733. Open as Copy    Yes or No, (1 or 0), 0 is the default.
  2734.  
  2735.     Related topics
  2736.  
  2737. {FileRetrieve}
  2738.  
  2739. Syntax
  2740.  
  2741. {FileRetrieve Filename, <"Open Supporting" | "Update References" |"None ">}
  2742.  
  2743. Description
  2744.  
  2745. {FileRetrieve} loads a notebook into the active notebook, replacing any existing data there.
  2746.  
  2747. You can use {FileRetrieve?} or {FileRetrieve!} to display the Retrieve File dialog box. {FileRetrieve?} lets the user manipulate the dialog box, whereas {FileRetrieve!} relies on the macro to manipulate it.
  2748.  
  2749. Parameters
  2750.  
  2751. Parameter    Description
  2752.  
  2753. Filename    name of the file to retrieve
  2754.  
  2755.     Related topics
  2756.  
  2757. {FileSave}, {FileSaveAll}, and {FileSaveAs}
  2758.  
  2759. Command equivalent    Equivalent to...
  2760.  
  2761. {FileSave <Replace|Backup|Confirm>}    File  Save
  2762.  
  2763. {FileSaveAll <Replace|Backup|Confirm>}    no equivalent
  2764.  
  2765. {FileSaveAs Filename, <Replace | Backup | Confirm>,, <FileType>}    File  Save As
  2766.  
  2767. Description
  2768.  
  2769. {FileSave} saves the active notebook, {FileSaveAll} saves all open notebooks, and {FileSaveAs} lets you save the active notebook under another name (Filename). The optional argument--"Replace", "Backup", or "Confirm"--indicates how to treat a previous version of the file (without displaying a prompt).
  2770.  
  2771. The optional <FileType> argument for {FileSaveAs} specifies the type of file to save and is equivalent to the Save File As Type option in the Save File dialog box. If you do not specify a file type, the default is "QPW v6".
  2772.  
  2773. You can use {FileSaveAs?} or {FileSaveAs!} to display the Save File dialog box. {FileSaveAs?} lets the user manipulate the dialog box, whereas {FileSaveAs!} relies on the macro to manipulate it.
  2774.  
  2775. The following table shows the available file types. For file types with abbreviated names, a short description is provided.
  2776.  
  2777. File Types    Description
  2778.  
  2779. QPW v7/v8    Corel Quattro Pro for Windows, version 7.0 and 8.0
  2780.  
  2781. QPW v6    Corel Quattro Pro for Windows, version 6.0
  2782.  
  2783. QPW    Corel Quattro Pro for Windows, version 1.0 and 5.0
  2784.  
  2785. QP/DOS    Corel Quattro Pro for DOS
  2786.  
  2787. Excel v5/v7    Excel, Version 5.0 and Version 7.0
  2788.  
  2789. Excel    Excel, Version 4.0
  2790.  
  2791. 1-2-3 v4/v5    1-2-3, Version 4 and Version 5
  2792.  
  2793. 1-2-3 v3.x    1-2-3, Version 3x
  2794.  
  2795. 1-2-3 v2.x    1-2-3, Version 2x
  2796.  
  2797. 1-2-3 v1.0    1-2-3, Version 1.0
  2798.  
  2799. 1-2-3 Ed.    1-2-3, Educational Version
  2800.  
  2801. Paradox    
  2802.  
  2803. dBASE IV    
  2804.  
  2805. dBASE III    
  2806.  
  2807. dBASE II    
  2808.  
  2809. Text    tab-delimited text
  2810.  
  2811. DIF    VisiCalc
  2812.  
  2813. SYLK    Multiplan
  2814.  
  2815. HTML    Hypertext Markup Language files, Version 3 (for distribution on the Internet's World Wide Web)
  2816.  
  2817. Example
  2818.  
  2819. To close all files and save without confirmation, use this macro:
  2820.  
  2821. {FileSaveAll Replace}
  2822.  
  2823. {FileCloseAll 0}
  2824.  
  2825.     Related topics
  2826.  
  2827. {FileSend}
  2828.  
  2829. Command equivalent    Equivalent to
  2830.  
  2831. {FileSend <Filename>}    File  Send To  Mail
  2832.  
  2833. Description
  2834.  
  2835. {FileSend} is the command equivalent for File  Send To Mail, which lets you send notebook sheets via one of your mail systems.
  2836.  
  2837. Example
  2838.  
  2839. {FileSend MYSTATUS.WB3} sends the notebook MYSTATUS.WB3 to another user.
  2840.  
  2841.     Related topics
  2842.  
  2843. {FILESIZE}
  2844.  
  2845. Syntax
  2846.  
  2847. {FILESIZE Location}
  2848.  
  2849. Description
  2850.  
  2851. {FILESIZE} calculates the number of bytes in a file previously opened using {OPEN} and places the result in Location as a value. If Location refers to cells, the result is placed in the upper left cell of the cells. If the command is successful, macro execution continues in the cell below the cell containing the {FILESIZE} command, ignoring any other commands in that cell. If {FILESIZE} fails (for example, when no file is open), macro execution continues in the cell containing the {FILESIZE} command.
  2852.  
  2853. Example
  2854.  
  2855. The following example opens the file MYFILE.TXT and places its size (in bytes) in the cell named num_bytes.
  2856.  
  2857. \F    {OPEN "MYFILE.TXT",R}
  2858.  
  2859.         {FILESIZE num_bytes}
  2860.  
  2861.         {CLOSE}
  2862.  
  2863.  
  2864.  
  2865. num_bytes    45
  2866.  
  2867. Parameters
  2868.  
  2869. Parameter    Description
  2870.  
  2871. Location    any cell address or cell name
  2872.  
  2873.     Related topics
  2874.  
  2875. { FileVersion.Retrieve }
  2876.  
  2877. Syntax
  2878.  
  2879. {FileVersion.Retrieve Filename}
  2880.  
  2881. Description
  2882.  
  2883. Equivalent to File   Version Control  Retrieve Notebook.
  2884.  
  2885. { FileVersion.Retrieve_Current }
  2886.  
  2887. Syntax
  2888.  
  2889. {FileVersion.Retrieve_Current}
  2890.  
  2891. Description
  2892.  
  2893. Equivalent to File  Version Control  Retrieve Current.
  2894.  
  2895. { FileVersionSave }
  2896.  
  2897. Syntax
  2898.  
  2899. {FileVersionSave}
  2900.  
  2901. Description
  2902.  
  2903. Equivalent to File  Version Control  Update Current.
  2904.  
  2905. {FLOATCOPY}
  2906.  
  2907. Syntax
  2908.  
  2909. {FLOATCOPY UpperCell, xoffset, yoffset}
  2910.  
  2911. Description
  2912.  
  2913. {FLOATCOPY} lets you copy a floating object in the active notebook window. The item to copy is selected using {SELECTFLOAT}. The new position in {FLOATCOPY} is specified as a positive offset from a cell in the notebook.
  2914.  
  2915. To copy a floating chart to another notebook, specify a notebook as well as a cell for UpperCell.
  2916.  
  2917. Example
  2918.  
  2919. The following macro selects the floating chart Inserted1 and copies it to [SALES]A:C10.
  2920.  
  2921. {SELECTFLOAT Inserted1}
  2922.  
  2923. {FLOATCOPY [SALES]A:C10,0,0}
  2924.  
  2925. Parameters
  2926.  
  2927. Parameter    Description
  2928.  
  2929. UpperCell    cell containing the new upper left corner of the floating object
  2930.  
  2931. xoffset    offset in twips from the left edge of UpperCell to the left edge of the floating object
  2932.  
  2933. yoffset    offset in twips from the top edge of UpperCell to the top edge of the floating object
  2934.  
  2935.     Related topics
  2936.  
  2937. {FLOATCREATE}
  2938.  
  2939. Syntax
  2940.  
  2941. {FLOATCREATE Type, UpperCell, xoffset, yoffset, LowerCell, xoffset2, yoffset2, <Text>|StartCorner}
  2942.  
  2943. Description
  2944.  
  2945. {FLOATCREATE} lets you create macro buttons, floating charts, or a draw layer objects (lines, arrows, rectangles, rounded rectangles, ellipses, or text boxes) in the active notebook window. Use {CREATEOBJECT} to create objects in dialog windows or chart windows.
  2946.  
  2947. All positions in {FLOATCREATE} are positive offsets from cells in the notebook containing the upper left and lower right corners of the object.
  2948.  
  2949. If you need to modify the floating object after creating it, change the property settings immediately after creation. It is selected then, so you will not need to click it or use {SELECTFLOAT}. You might also want to change the name at this time and document it for later use with {SELECTFLOAT}.
  2950.  
  2951. Example
  2952.  
  2953. The following macro creates a macro button that covers the cells A1..B2, then stores the name of the button in A26. The button reads Save File:
  2954.  
  2955.     {FLOATCREATE Button,A1,0,0,C3,0,0, "Save File"}
  2956.  
  2957.     {GETPROPERTY A26, "Object_Name"}
  2958.  
  2959. The following macro creates a button 50 twips to the right and 50 twips below the upper left corner of the button in the previous example. It reads Open File:
  2960.  
  2961.     {FLOATCREATE Button,A1,50,50,C3,50,50, "Open File"}
  2962.  
  2963. The following macro creates a floating chart that is offset 35 twips from the cells C2..E10, but the same size:
  2964.  
  2965.     {GraphNew Chart3}
  2966.  
  2967.     {FLOATCREATE Chart,C2,35,35,E10,35,35,"Chart3"}
  2968.  
  2969. The following macro creates a floating arrow over the cells B8..Dll . The arrow starts at the southwest corner of the cells, and ends with an arrowhead at the northwest corner.
  2970.  
  2971.     {FloatCreate Arrow,A:B8,0,0,A:D11,945,45,4}
  2972.  
  2973. The following macro creates a floating ellipse over the cells E10..E13, then fills the ellipse with a red color.
  2974.  
  2975.     {FloatCreate Ellipse,A:E10,0,120,A:E13,945,240}
  2976.  
  2977.     {Setproperty Fill_Color, "255,0,0"}
  2978.  
  2979. Parameters
  2980.  
  2981. Parameter    Description
  2982.  
  2983. Type     floating object to create: Chart, Button, Line, Arrow, Rect, Rounded_Rect, Ellipse, or Text
  2984.  
  2985. UpperCell    cell containing the upper left corner of the chart or macro button
  2986.  
  2987. xoffset    offset in twips from the left edge of UpperCell to the left edge of the floating object
  2988.  
  2989. yoffset    offset in twips from the top edge of UpperCell to the top edge of the floating object
  2990.  
  2991. LowerCell    cell containing the lower right corner of the chart or macro button
  2992.  
  2993. xoffset2    offset in twips from the left edge of LowerCell to the right edge of the floating object
  2994.  
  2995. yoffset2    offset in twips from the top edge of LowerCell to the bottom edge of the floating object
  2996.  
  2997. Text    for Chart, the named chart to display; for Button, the button text
  2998.  
  2999. StartCorner    for Line or Arrow, a number representing the starting corner; 1 = northwest, 2 = northeast, 3 = southeast, 4 = southwest (for example, an arrow pointing up and to the right would have a StartCorner of 4)
  3000.  
  3001.     Related topics
  3002.  
  3003. {FLOATMOVE}
  3004.  
  3005. Syntax
  3006.  
  3007. {FLOATMOVE UpperCell,xoffset,yoffset}
  3008.  
  3009. Description
  3010.  
  3011. {FLOATMOVE} lets you move a floating object in the active notebook window. The item to move is selected using {SELECTFLOAT}. The new position in {FLOATMOVE} is specified as a positive offset from a cell in the notebook.
  3012.  
  3013. To move a floating chart to another notebook, specify a notebook as well as a cell for UpperCell.
  3014.  
  3015. Example
  3016.  
  3017. The following macro selects the floating chart Inserted1 and moves it to [SALES]A:C10.
  3018.  
  3019. {SELECTFLOAT Inserted1}
  3020.  
  3021. {FLOATMOVE [SALES]A:C10,0,0}
  3022.  
  3023. Parameters
  3024.  
  3025. Parameter    Description
  3026.  
  3027. UpperCell    cell containing the new upper left corner of the floating object
  3028.  
  3029. xoffset    offset in twips from the left edge of UpperCell to the left edge of the floating object
  3030.  
  3031. yoffset    offset in twips from the top edge of UpperCell to the top edge of the floating object
  3032.  
  3033.     Related topics
  3034.  
  3035. {FloatOrder.Option}
  3036.  
  3037. Command equivalent    Equivalent to Format  Object Order...
  3038.  
  3039. {FloatOrder.ToBack}    ... Send To Back
  3040.  
  3041. {FloatOrder.Backward}    ... Send Backward
  3042.  
  3043. {FloatOrder.ToFront}    ... Bring To Front
  3044.  
  3045. {FloatOrder.Forward}    ... Bring Forward
  3046.  
  3047. Description
  3048.  
  3049. {FloatOrder.Option} is the command equivalent for Format  Object Order. It works on selected objects to arrange layers of floating charts and other floating objects in the notebook window.
  3050.  
  3051.     Related topics
  3052.  
  3053. {FLOATSIZE}
  3054.  
  3055. Syntax
  3056.  
  3057. {FLOATSIZE UpperCell,xoffset,yoffset,LowerCell,xoffset2,yoffset2}
  3058.  
  3059. Description
  3060.  
  3061. {FLOATSIZE} lets you resize a floating object in the active notebook window. The item to resize is selected using {SELECTFLOAT}.
  3062.  
  3063. All positions in {FLOATSIZE} are positive offsets from a cell in the notebook.
  3064.  
  3065. Parameters
  3066.  
  3067. Parameter    Description
  3068.  
  3069. UpperCell    cell containing the new upper left corner of the chart or macro button
  3070.  
  3071. xoffset    offset in twips from the left edge of UpperCell to the left edge of the floating object
  3072.  
  3073. yoffset    offset in twips from the top edge of UpperCell to the top edge of the floating object
  3074.  
  3075. LowerCell    cell containing the new lower right corner of the chart or macro button
  3076.  
  3077. xoffset2    offset in twips from the left edge of LowerCell to the right edge of the floating object
  3078.  
  3079. yoffset2    offset in twips from the top edge of LowerCell to the bottom edge of the floating object
  3080.  
  3081.     Related topics
  3082.  
  3083. {FLOATTEXT}
  3084.  
  3085. Syntax
  3086.  
  3087. {FLOATTEXT String}
  3088.  
  3089. Description
  3090.  
  3091. {FLOATTEXT} replaces the text in the selected text box with the specified string. The text box can be on a notebook sheet or in a chart window.
  3092.  
  3093. Example
  3094.  
  3095. The following macro selects a floating text box named Text1 and replaces the text in it with "Quarterly Sales Report".
  3096.  
  3097. {SELECTFLOAT Text1}
  3098.  
  3099. {FLOATTEXT "Quarterly Sales Report"}
  3100.  
  3101. Parameters
  3102.  
  3103. Parameter    Description
  3104.  
  3105. String    string of characters used to replace text in the text box
  3106.  
  3107.     Related topics
  3108.  
  3109. {FOR}
  3110.  
  3111. Syntax
  3112.  
  3113. {FOR CounterLoc,Start#,Stop#,Step#,StartLoc}
  3114.  
  3115. Description
  3116.  
  3117. {FOR} repeatedly runs a macro subroutine beginning at StartLoc, creating a macro loop. Corel Quattro Pro keeps track of how long the macro runs using CounterLoc. At the start of the loop, CounterLoc is set to Start#. Each time an iteration of the loop runs, CounterLoc is increased by Step#. When CounterLoc reaches or exceeds Stop#, execution stops.
  3118.  
  3119. Example
  3120.  
  3121. {FOR D15,1,5,1,E30}    runs the subroutine beginning in cell E30 five times.
  3122.  
  3123. {FOR D15,1,10,2,E30}    runs the subroutine five times because the counter increments by two during each iteration.
  3124.  
  3125. {FOR D15,1,5,0,E30}    runs the subroutine continuously until you press Ctrl+Break, because adding 0 to the start value of 1 can never make the counter exceed 5.
  3126.  
  3127. {FOR D15,1,0,1}    results in an error because no subroutine is specified.
  3128.  
  3129. The following macro creates "Qtr" labels for reports; the year displays above Qtr1:
  3130.  
  3131. \Q    {; position cursor where labels should appear}
  3132.  
  3133.         {FOR counter, 1994,1997,1,_list}
  3134.  
  3135.         {; return to original position}
  3136.  
  3137.         {LEFT}{END}{LEFT}
  3138.  
  3139.  
  3140.  
  3141. counter
  3142.  
  3143.  
  3144.  
  3145. _list    {PUTCELL +counter}
  3146.  
  3147.         {DOWN}
  3148.  
  3149.         {PUTCELL "Qtr1"}{RIGHT}
  3150.  
  3151.         {PUTCELL "Qtr2"}{RIGHT}
  3152.  
  3153.         {PUTCELL "Qtr3"}{RIGHT}
  3154.  
  3155.         {PUTCELL "Qtr4"}{RIGHT 2}{UP}
  3156.  
  3157. Parameters
  3158.  
  3159. Parameter    Description
  3160.  
  3161. CounterLoc    cell used to track the number of macro iterations
  3162.  
  3163. Start#    initial value to place in CounterLoc
  3164.  
  3165. Stop#    maximum value for CounterLoc
  3166.  
  3167. Step#    amount added to CounterLoc after each iteration
  3168.  
  3169. StartLoc    cell containing the subroutine to run
  3170.  
  3171.     Related topics
  3172.  
  3173. {FORBREAK}
  3174.  
  3175. Description
  3176.  
  3177. {FORBREAK} cancels the subroutine run by a {FOR} command and ends the processing of {FOR}. Macro execution continues normally with the command following the {FOR} command.
  3178.  
  3179. If {FORBREAK} appears anywhere other than in a subroutine called by {FOR}, macro execution ends, and Corel Quattro Pro displays an error message.
  3180.  
  3181. {FORBREAK} is usually used in conjunction with {IF} to exit the macro if a specific condition is reached; for example, if an error condition is found.
  3182.  
  3183. Example
  3184.  
  3185. The following example shows {FORBREAK} terminating a loop used to enter names into a list. Enter STOP to stop the loop.
  3186.  
  3187. \F        {EditGoto list_top}
  3188.  
  3189.             {FOR counter,1,10000,1,_get_name}
  3190.  
  3191.  
  3192.  
  3193. _get_name    {GETLABEL "Enter next name: ",name_cell}
  3194.  
  3195.             {IF name_cell="STOP"}{FORBREAK}
  3196.  
  3197.             {LET @CELLPOINTER("Address"),name_cell}{DOWN}
  3198.  
  3199.  
  3200.  
  3201. name_cell    STOP
  3202.  
  3203. counter    4
  3204.  
  3205. list_top
  3206.  
  3207.     Related topics
  3208.  
  3209. {FOURIER}
  3210.  
  3211. Syntax
  3212.  
  3213. {FOURIER InBlock,OutBlock,<Inverse>}
  3214.  
  3215. Description
  3216.  
  3217. {FOURIER} performs a fast Fourier transformation on cells of data. {FOURIER} is equivalent to the Fourier analysis tool.
  3218.  
  3219. Parameters
  3220.  
  3221. Parameter    Description
  3222.  
  3223. InBlock    one or more numeric cell values representing the input cells; can be real or complex numbers; the number of values in InBlock must be a power of 2 between 2 and 1024 inclusive (for example, 2, 4, 8, 16,...); if the number of values in InBlock does not equal a power of 2, pad the cells with additional zeros
  3224.  
  3225. OutBlock    upper left cell of the output cells
  3226.  
  3227. Inverse    0 to perform a Fourier transformation; 1 to perform the inverse Fourier transformation; the default is 0
  3228.  
  3229.     Related topics
  3230.  
  3231. {Frequency.Option}
  3232.  
  3233. Command Equivalent    Equivalent to Tools  Numeric Tools  Frequency...
  3234.  
  3235. {Frequency.Bin_Block Block}    ... Bin Cells
  3236.  
  3237. {Frequency.Go}    ... OK
  3238.  
  3239. {Frequency.Reset}    ... Reset
  3240.  
  3241. {Frequency.Value_Block Block}    ... Value Cells
  3242.  
  3243. Description
  3244.  
  3245. {Frequency.Option} is the command equivalent for Tools  Numeric Tools  Frequency. It counts the number of cases in the value Block that fall within each interval specified in the bin Block. Use {Frequency.Bin_Block} and {Frequency.Value_Block}, then {Frequency.Go}. You can use {Frequency.Reset} before or after the other commands to clear current settings.
  3246.  
  3247. You can use {Frequency?} or {Frequency!} to display the Frequency Tables dialog box. {Frequency?} lets the user manipulate the dialog box, whereas {Frequency!} relies on the macro to manipulate it.
  3248.  
  3249. Example
  3250.  
  3251. The following macro counts the data in cells C1..E13 of sheet A and groups it according to the intervals given in G1..G7; frequencies display in column H.
  3252.  
  3253. {Frequency.Value_Block A:C1..E13}
  3254.  
  3255. {Frequency.Bin_Block A:G1..G7}
  3256.  
  3257. {Frequency.Go}
  3258.  
  3259.     Related topics
  3260.  
  3261. {FTESTV}
  3262.  
  3263. Syntax
  3264.  
  3265. {FTESTV InBlock1,InBlock2,OutBlock,<Labels>}
  3266.  
  3267. Description
  3268.  
  3269. {FTESTV} performs a two-sample F-test to compare population variances. {FTESTV} is equivalent to the F-Test analysis tool.
  3270.  
  3271. Parameters
  3272.  
  3273. Parameter    Description
  3274.  
  3275. InBlock1    the first input cells containing a column or row of numeric values
  3276.  
  3277. InBlock2    the second input cells containing a column or row of numeric values
  3278.  
  3279. OutBlock    upper left cell of the output cells
  3280.  
  3281. 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
  3282.  
  3283.     Related topics
  3284.  
  3285. {FUNCTIONS}
  3286.  
  3287. Description
  3288.  
  3289. {FUNCTIONS} is equivalent to the Functions key, Alt+F3, which displays a list of @functions to enter in the input line.
  3290.  
  3291.     Related topics
  3292.  
  3293. {GET}
  3294.  
  3295. Syntax
  3296.  
  3297. {GET Location}
  3298.  
  3299. Description
  3300.  
  3301. {GET} pauses macro execution, accepts one keystroke from the user (no carriage return is necessary), and stores the keystroke as a macro command in Location. It then continues macro execution. Any Corel Quattro Pro keystroke can be recorded with {GET} except Shift+F2, Pause, Caps Lock, Num Lock, and Scroll Lock. Unlike { ? }, the keystroke is not passed to Corel Quattro Pro.
  3302.  
  3303. {GET} is useful for creating macros that run in the background while the user works. It can detect each key, and restrict the actions the user performs. You can use {LOOK} with {GET} to check the typeahead buffer for user response.
  3304.  
  3305. Example
  3306.  
  3307. The following example asks users if they want to continue.
  3308.  
  3309. \F        {RIGHT 10}
  3310.  
  3311.             {; display msg_area in top left of screen}
  3312.  
  3313.             {GOTO}msg_area~
  3314.  
  3315.  
  3316.  
  3317. _again    Press Y to continue...~
  3318.  
  3319.             {GET keystroke}
  3320.  
  3321.             {IF keystroke<>"Y"}{BEEP2}{HOME}{QUIT}
  3322.  
  3323.             {BEEP 4}{BRANCH _again}
  3324.  
  3325.  
  3326.  
  3327. keystroke
  3328.  
  3329. msg_area    Press Y to continue...
  3330.  
  3331. Parameters
  3332.  
  3333. Parameter    Description
  3334.  
  3335. Location    cell in which to store the keystroke entered by the user
  3336.  
  3337.     Related topics
  3338.  
  3339. {GETDIRECTORYCONTENTS}
  3340.  
  3341. Syntax
  3342.  
  3343. {GETDIRECTORYCONTENTS Block,<Path>}
  3344.  
  3345. Description
  3346.  
  3347. {GETDIRECTORYCONTENTS} enters an alphabetized list of file names (determined by the path and DOS wildcard specified by Path) into Block; if Path is not included, {GETDIRECTORYCONTENTS} lists all the files in the current directory. Path must contain a DOS wildcard like *.BAT or *.*.
  3348.  
  3349. Tips
  3350.  
  3351. ¿    If Block is one cell, {GETDIRECTORYCONTENTS} overwrites any information beneath the cell (if it finds more than one file). To restrict the file names to specific cells, set Block to more than one cell.
  3352.  
  3353. Example
  3354.  
  3355. {GETDIRECTORYCONTENTS A2,"C:\*.*"} fills column A (starting at row 2) with a list of the files in the root directory of drive C.
  3356.  
  3357. {GETDIRECTORYCONTENTS A2..C7,"C:\COREL\SUITE8\*.*"} fills the cells A2..C7 with a list of the files in the Corel Quattro Pro directory on drive C. The first filename is stored in A2, the second in B2, and so on. If more than 18 files are found, the cells are only filled with the first 18.
  3358.  
  3359. {GETDIRECTORYCONTENTS C7,"C:\COREL\SUITE8\SAMPLES\*.W??"} fills column C (starting at row 7) with a list of the files in the COREL\SUITE8\SAMPLES directory on drive C that have file extensions beginning with W.
  3360.  
  3361. Parameters
  3362.  
  3363. Parameter    Description
  3364.  
  3365. Block    cells to enter list of files into
  3366.  
  3367. Path    path and wildcard specifying the list (optional)
  3368.  
  3369.     Related topics
  3370.  
  3371. {GETLABEL}
  3372.  
  3373. Syntax
  3374.  
  3375. {GETLABEL Prompt,Location}
  3376.  
  3377. Description
  3378.  
  3379. {GETLABEL} pauses macro execution, displays Prompt in a dialog box, and accepts keystrokes until the user chooses OK or presses Enter. At that time, Corel Quattro Pro stores the characters typed as a label in Location. Unlike {GET}, it does not accept Corel Quattro Pro's special keys (for example, Home).
  3380.  
  3381. Prompt can be a literal string, such as "Enter date:", or a text formula such as +B6 (which contains a label). The prompt string itself can be up to 70 characters long, and is truncated if longer. The response can be as long as 160.
  3382.  
  3383. If {PANELOFF} is in effect, {GETLABEL} ignores it, letting the menus, status line, and input line be viewed and updated as the input is typed. Once input is completed (indicated by Enter or choosing OK), then these portions of the display are turned off again.
  3384.  
  3385. Example
  3386.  
  3387. This example displays the label in B6 as the dialog box prompt, and then stores the result in cell D1:
  3388.  
  3389. {GETLABEL +B6,D1}
  3390.  
  3391. The following example stores the user's last name in the cell named last_cell:
  3392.  
  3393. \F    {GETLABEL "Enter your last name:",last_cell}
  3394.  
  3395.  
  3396.  
  3397. last_cell
  3398.  
  3399. Parameters
  3400.  
  3401. Parameter    Description
  3402.  
  3403. Prompt    string displayed to the user as a prompt
  3404.  
  3405. Location    cell in which to store the user's response; when {GETLABEL} is used in OLE automation, Location can also be a named variable
  3406.  
  3407.     Related topics
  3408.  
  3409. {GETNUMBER}
  3410.  
  3411. Syntax
  3412.  
  3413. {GETNUMBER Prompt,Location}
  3414.  
  3415. Description
  3416.  
  3417. {GETNUMBER} is like {GETLABEL}, but accepts only a numeric value, a formula resulting in a numeric value, or the cell address or cell name of a cell returning a value. If a text value is input, ERR is entered in the cell. The prompt can be up to 70 characters long, and the response can be as long as 160 characters.
  3418.  
  3419. Example
  3420.  
  3421. The following example stores the user's age in the cell named age_cell. If a number is not entered, which the macro detects by checking to see whether age_cell contains ERR, it prompts again.
  3422.  
  3423. \F    {GETNUMBER "Enter your age:",age_cell}
  3424.  
  3425.     {IF @ISERR(age_cell)}{BRANCH \F}
  3426.  
  3427.     
  3428.  
  3429. age_cell    
  3430.  
  3431. Parameters
  3432.  
  3433. Parameter    Description
  3434.  
  3435. Prompt    string displayed to the user as a prompt
  3436.  
  3437. Location    cell in which to store the user's response; when {GETNUMBER} is used in OLE automation, Location can also be a named variable
  3438.  
  3439.     Related topics
  3440.  
  3441. {GETOBJECTPROPERTY}
  3442.  
  3443. Syntax
  3444.  
  3445. {GETOBJECTPROPERTY Cell,Object.Property}
  3446.  
  3447. Description
  3448.  
  3449. {GETOBJECTPROPERTY} lets you view objects in Corel Quattro Pro without using the mouse, including objects normally not selectable (like the application title bar). Selectable objects, such as blocks and annotations, can also be studied with {GETPROPERTY}. See {SETOBJECTPROPERTY} for the syntax of Object.Property.
  3450.  
  3451. Example
  3452.  
  3453. {GETOBJECTPROPERTY A23,"Active_Notebook.Zoom_Factor"} stores the Zoom Factor property's current setting in cell A23.
  3454.  
  3455. {GETOBJECTPROPERTY B42,"/File/Exit.Enabled"} stores whether File  Exit is operational or not in the cell B42.
  3456.  
  3457. Parameters
  3458.  
  3459. Parameter    Description
  3460.  
  3461. Cell    cell in which to store the property setting
  3462.  
  3463. Object    name of the object to study
  3464.  
  3465. Property    property of the object to study
  3466.  
  3467.     Related topics
  3468.  
  3469. {GETPOS}
  3470.  
  3471. Syntax
  3472.  
  3473. {GETPOS Location}
  3474.  
  3475. Description
  3476.  
  3477. {GETPOS} places the position of the file pointer in Location as a value. If no file has been opened using {OPEN}, the command is ignored.
  3478.  
  3479. The file pointer is a number corresponding to the position at which the next character written to the file will be placed. If the file pointer is 0, the next character written to the file with {WRITE} or {WRITELN} is placed at the beginning of the file. If the file already contains information, it is overwritten, beginning at the first position in the file. After the file is written to, the file pointer is positioned immediately after the last character written. If a file is newly created, then written to for the first time, the file pointer will be the size of the file.
  3480.  
  3481. If {GETPOS} succeeds, macro execution continues in the cell below the cell containing the {GETPOS} command, ignoring any commands in the same cell as {GETPOS}; if {GETPOS} fails, macro execution continues in the same cell.
  3482.  
  3483. Example
  3484.  
  3485. The following example opens the text file TEST.TXT, reads in a line, and calculates the length of the line by subtracting the starting position from the ending position and subtracting 1 from the result. This adjustment is necessary because the carriage return and linefeed characters (found at the end of each line in a typical text file) are stripped away by Corel Quattro Pro when the text is read into cells. So, the calculated length is one character longer than the actual length. The text file read here was created by the macro example provided in the {WRITELN} command description.
  3486.  
  3487. \F    {OPEN "A:TEST.TXT",R}
  3488.  
  3489.         {GETPOS start}
  3490.  
  3491.         {READLN input}
  3492.  
  3493.         {GETPOS end}
  3494.  
  3495.         {CLOSE}
  3496.  
  3497.         {LET num_char,+(end-start)-1}
  3498.  
  3499.  
  3500.  
  3501. input    This is a short line.
  3502.  
  3503. start    0
  3504.  
  3505. end    22
  3506.  
  3507. num_char    21
  3508.  
  3509. Parameters
  3510.  
  3511. Parameter    Description
  3512.  
  3513. Location    cell in which to store the retrieved value
  3514.  
  3515.     Related topics
  3516.  
  3517. {GETPROPERTY}
  3518.  
  3519. Syntax
  3520.  
  3521. {GETPROPERTY Cell,Property}
  3522.  
  3523. Description
  3524.  
  3525. {GETPROPERTY} lets you study the property settings of whatever object is selected. Property is the property to view (see Property Reference for a list of properties); its setting is stored in Cell.
  3526.  
  3527. Example
  3528.  
  3529. {GETPROPERTY A23,"Text_Color"} stores the Text Color setting of the selected object in the cell A23.
  3530.  
  3531. {GETPROPERTY B42,"Box_Type"} stores the border style of the selected object in cell B42.
  3532.  
  3533. Parameters
  3534.  
  3535. Parameter    Description
  3536.  
  3537. Cell    cell in which to store the property setting
  3538.  
  3539. Property    property of the selected object to study
  3540.  
  3541.     Related topics
  3542.  
  3543. {GETWINDOWLIST}
  3544.  
  3545. Syntax
  3546.  
  3547. {GETWINDOWLIST Block}
  3548.  
  3549. Description
  3550.  
  3551. {GETWINDOWLIST} stores a list of the windows open on the Corel Quattro Pro desktop in Block, including dialog windows and chart windows. Windows hidden by Window  Hide are not included.
  3552.  
  3553. If Block is one cell, {GETWINDOWLIST} overwrites any information beneath the cell (if it finds more than one window open). To restrict the window names to specific cells, set Block to more than one cell.
  3554.  
  3555. Example
  3556.  
  3557. {GETWINDOWLIST A2..C5} stores a list of open windows in the cells A2..C5. The first window name is stored in A2, the second in B2, and so on. If more than twelve windows are open, only the first twelve are stored in the cells.
  3558.  
  3559. Parameters
  3560.  
  3561. Parameter    Description
  3562.  
  3563. Block    cells to store window names in
  3564.  
  3565.     Related topics
  3566.  
  3567. {GOTO}
  3568.  
  3569. Description
  3570.  
  3571. {GOTO} lets you move the selector to a specific location.
  3572.  
  3573. A related macro, {QGOTO}, selects the cell or cells specified as its destination, while {GOTO} moves to the cell in the upper-left corner of the specified cells.
  3574.  
  3575. This command is for compatibility with Corel Quattro Pro for DOS; use {EditGoto} as the command equivalent for Edit  Go To.
  3576.  
  3577.     Related topics
  3578.  
  3579. {GRAPH}
  3580.  
  3581. Description
  3582.  
  3583. {Graph} is equivalent to the Chart key, F11, which displays the current chart.
  3584.  
  3585.     Related topics
  3586.  
  3587. {GRAPHCHAR}
  3588.  
  3589. Syntax
  3590.  
  3591. {GRAPHCHAR Location}
  3592.  
  3593. Description
  3594.  
  3595. {GRAPHCHAR} returns the key a user presses to leave a chart or to remove a message box. The character is stored at Location. This command lets you create a chart or message that functions as a menu of choices. The character returned can be used to branch or display any other data.
  3596.  
  3597. {GRAPHCHAR} works with {MESSAGE} to record what key the user pressed to remove a message box. It captures only characters the user can normally type into a cell; special characters such as Esc are not stored.
  3598.  
  3599. Example
  3600.  
  3601. The following example displays a message box (its contents being the_msg) and returns the character the user pressed to remove it. The key pressed is stored in cells named the_key.
  3602.  
  3603. \A    {MESSAGE the_msg,15,15,0}
  3604.  
  3605.         {GRAPHCHAR the_key}
  3606.  
  3607.  
  3608.  
  3609. the_key
  3610.  
  3611. the_msg    Press C to continue or any other key to quit...
  3612.  
  3613. The next example displays a chart and waits for the user to press a key. This macro begins with the command found next to "_graphic" and assumes that the current file contains charts by the name of "line," "pie," "bar," and "area." If the user presses P, B, or A, Corel Quattro Pro displays a (predefined) pie chart, bar chart, or area chart, respectively. The macro stops playing when the user presses any key that is not P, B, or A.
  3614.  
  3615. the_chart    bar
  3616.  
  3617. the_key    b
  3618.  
  3619.     
  3620.  
  3621. _graphic    {GraphView "line"}
  3622.  
  3623. _continue    {GRAPHCHAR the_key}
  3624.  
  3625.     {if @UPPER(the_key)="P"}{_draw "pie"}
  3626.  
  3627.     {if @UPPER(the_key)="B"}{_draw "bar"}
  3628.  
  3629.     {if @UPPER(the_key)="A"}{_draw "area"}
  3630.  
  3631.     
  3632.  
  3633. _draw    {DEFINE the_chart}
  3634.  
  3635.     {GraphView the_chart}
  3636.  
  3637.     {BRANCH _continue}
  3638.  
  3639. Parameters
  3640.  
  3641. Parameter    Description
  3642.  
  3643. Location    cell address or the cell name where the returned character should be stored
  3644.  
  3645.     Related topics
  3646.  
  3647. {GraphCopy}
  3648.  
  3649. Syntax
  3650.  
  3651. {GraphCopy FromChart, DestChart, <Style?(0|1)>, <Data?(0|1)>, <Annotations?(0|1)>}
  3652.  
  3653. Description
  3654.  
  3655. {GraphCopy} copies the style, data, and/or annotation objects from one chart to another (within a notebook or between notebooks). It is equivalent to copying chart attributes using Edit  Copy and Edit  Paste Special.
  3656.  
  3657. You can use {GraphCopy?} or {GraphCopy!} to display the Paste Special Chart dialog box. {GraphCopy?} lets the user manipulate the dialog box, whereas {GraphCopy!} relies on the macro to manipulate it.
  3658.  
  3659. Parameters
  3660.  
  3661. Parameter    Description
  3662.  
  3663. FromChart    chart containing the style, data, or annotation objects to copy
  3664.  
  3665. DestChart    new chart (the copy)
  3666.  
  3667. Style?    whether to copy properties that affect the appearance of the chart: yes (1), no (0)
  3668.  
  3669. Data?    whether to copy chart data: yes (1), no (0)
  3670.  
  3671. Annotations?    whether to copy annotation objects: yes (1), no (0)
  3672.  
  3673.     Related topics
  3674.  
  3675. {GraphDeactivate}
  3676.  
  3677. Description
  3678.  
  3679. {GraphDeactivate} deactivates a floating chart that has been activated for editing.
  3680.  
  3681. Example
  3682.  
  3683. The following macro activates a floating chart for editing, creates a rectangle in the chart, makes a copy of the rectangle, then deactivates editing.
  3684.  
  3685. {GraphEdit Chart1, 1}
  3686.  
  3687. {CreateObject Rect,147,176,416,427}
  3688.  
  3689. {Duplicate 269,338}
  3690.  
  3691. {GraphDeactivate}
  3692.  
  3693.     Related topics
  3694.  
  3695. {GraphDelete}
  3696.  
  3697. Syntax
  3698.  
  3699. {GraphDelete Name}
  3700.  
  3701. Description
  3702.  
  3703. {GraphDelete} deletes the specified chart from the active notebook.
  3704.  
  3705. You can use {GraphDelete?} or {GraphDelete!} to display the Delete Chart dialog box. {GraphDelete?} lets the user manipulate the dialog box, whereas {GraphDelete!} relies on the macro to manipulate it.
  3706.  
  3707. Parameters
  3708.  
  3709. Parameter    Description
  3710.  
  3711. Name    name of the chart to delete
  3712.  
  3713.     Related topics
  3714.  
  3715. {GraphEdit}
  3716.  
  3717. Syntax
  3718.  
  3719. {GraphEdit Name,<InPlace?(0|1)}
  3720.  
  3721. Description
  3722.  
  3723. {GraphEdit} displays the specified chart in a chart window for editing. Use the InPlace? argument to edit a floating chart on the notebook sheet.
  3724.  
  3725. You can use {GraphEdit?} or {GraphEdit!} to display the Edit Chart dialog box. {GraphEdit?} lets the user manipulate the dialog box, whereas {GraphEdit!} relies on the macro to manipulate it.
  3726.  
  3727. Example
  3728.  
  3729. The following macro selects the floating chart named Inserted1 and then activates its source chart (Chart1) for editing on the notebook sheet.
  3730.  
  3731. {SelectFloat Inserted1}
  3732.  
  3733. {GraphEdit Chart1,1}
  3734.  
  3735. Parameters
  3736.  
  3737. Parameter    Description
  3738.  
  3739. Name    name of the chart to edit
  3740.  
  3741. InPlace?    whether to edit the chart in place on a notebook sheet; 0 = no, 1 = yes; the default is 0
  3742.  
  3743.     Related topics
  3744.  
  3745. {GraphGallery}
  3746.  
  3747. Syntax
  3748.  
  3749. {GraphGallery ChartStyle, ColorScheme}
  3750.  
  3751. Description
  3752.  
  3753. {GraphGallery} is the command equivalent for Chart  Gallery, which applies a chart style and color scheme to selected charts.
  3754.  
  3755. Available choices for ColorScheme are:
  3756.  
  3757. ¿    No change    Pastels
  3758.  
  3759. ¿    Default    Fire and Ice
  3760.  
  3761. ¿    Grayscale    Bright and Bold
  3762.  
  3763. ¿    Icy Blues    Color Washes
  3764.  
  3765. ¿    Deep Reds    Black and White Patterns
  3766.  
  3767. ¿    Autumn Leaves    Color Patterns
  3768.  
  3769. ¿    Tangerine    Tiled Men
  3770.  
  3771. You can use {GraphGallery?} or {GraphGallery!} to display the Chart Gallery dialog box. {GraphGallery?} lets the user manipulate the dialog box, whereas {GraphGallery!} relies on the macro to manipulate it.
  3772.  
  3773. Example
  3774.  
  3775. The following macro selects a 3-D Bar chart style and a "Tangerine" color scheme:
  3776.  
  3777. {GraphGallery "3dbar","Tangerine"}
  3778.  
  3779. Parameters
  3780.  
  3781. Parameter    Description
  3782.  
  3783. ChartStyle    the style of chart; see {GraphSettings.Type} for a list of chart types
  3784.  
  3785. ColorScheme    the color scheme used for the chart
  3786.  
  3787.     Related topics
  3788.  
  3789. {GraphNew}
  3790.  
  3791. Syntax
  3792.  
  3793. {GraphNew Name,<UseCurrentBlock?(0|1)>}
  3794.  
  3795. Description
  3796.  
  3797. {GraphNew} creates a new chart and displays it in a chart window. If UseCurrentBlock? is 1, any selected data is shown in the chart; if it is 0, {GraphNew} creates a new chart without data.
  3798.  
  3799. You can use {GraphNew?} or {GraphNew!} to display the New Chart dialog box. {GraphNew?} lets the user manipulate the dialog box, whereas {GraphNew!} relies on the macro to manipulate it.
  3800.  
  3801. Parameters
  3802.  
  3803. Parameter    Description
  3804.  
  3805. Name    name of the new chart
  3806.  
  3807. UseCurrentBlock?    whether to chart the current selected cells; 0 = no, 1 = yes; the default is 0name of the new chart
  3808.  
  3809.     Related topics
  3810.  
  3811. {GraphSettings.Titles}
  3812.  
  3813. Syntax
  3814.  
  3815. {GraphSettings.Titles Main, Sub, X-Axis, Y-Axis, Y2-Axis}
  3816.  
  3817. Description
  3818.  
  3819. {GraphSettings.Titles} is equivalent to Chart  Titles, which sets the titles of the active chart (or selected floating chart or chart icon). Each argument is a string; to reset a title, use an empty string ("").
  3820.  
  3821. Example
  3822.  
  3823. The following macro command displays the chart Profit99 in a chart window and sets its main title and subtitles. The empty strings ("") indicate that there are no axis titles.
  3824.  
  3825. {GraphEdit Profit99}
  3826.  
  3827. {GraphSettings.Titles "Projected Profits","1999","","",""}
  3828.  
  3829. Parameters
  3830.  
  3831. Parameter    Description
  3832.  
  3833. Main    main title of the chart
  3834.  
  3835. Sub    title appearing below the main title of the chart
  3836.  
  3837. X-Axis    title of the chart's x-axis
  3838.  
  3839. Y-Axis    title of the chart's y-axis
  3840.  
  3841. Y2-Axis    title of the chart's secondary y-axis
  3842.  
  3843.     Related topics
  3844.  
  3845. {GraphSettings.Type Type,Class}
  3846.  
  3847. Description
  3848.  
  3849. {GraphSettings.Type} is equivalent to Chart  Type/Layout, which lets you specify how the data in a chart is displayed. It affects the active chart (or chart icon or floating chart). Class specifies the class of chart type being used. Class can be one of six settings: Area/Line, Bar, Stacked Bar, Pie, Specialty, and Text.
  3850.  
  3851. Chart  Type/Layout...    Command equivalent
  3852.  
  3853. Area/Line  3-D Area    {GraphSettings.Type "3D Area,Area/Line"}
  3854.  
  3855. Area/Line  3-D Marker    {GraphSettings.Type "3D Marker,Area/Line"}
  3856.  
  3857. Area/Line  3-D Ribbon    {GraphSettings.Type "3D Ribbon,Area/Line"}
  3858.  
  3859. Area/Line  3-D Unstacked area    {GraphSettings.Type "3D Unstacked area,Area/Line"}
  3860.  
  3861. Area/Line  Area    {GraphSettings.Type "Area,Area/Line"}
  3862.  
  3863. Area/Line  Line    {GraphSettings.Type "Line,Area/Line"}
  3864.  
  3865. Area/Line  Rotated area    {GraphSettings.Type "Rotated area,Area/Line"}
  3866.  
  3867. Area/Line  Rotated line    {GraphSettings.Type "Rotated line,Area/Line"}
  3868.  
  3869. Bar  2-D Half bar    {GraphSettings.Type "2DHalf bar,Bar"}
  3870.  
  3871. Bar  3-D Bar    {GraphSettings.Type "3D Bar,Bar"}
  3872.  
  3873. Bar  3-D Step    {GraphSettings.Type "3D Step,Bar"}
  3874.  
  3875. Bar  Area Bar    {GraphSettings.Type "Area_bar,Bar"}
  3876.  
  3877. Bar  Bar    {GraphSettings.Type "Bar,Bar"}
  3878.  
  3879. Bar  High Low Bar    {GraphSettings.Type "Hilo_bar,Bar"}
  3880.  
  3881. Bar  Line Bar    {GraphSettings.Type "Line_bar,Bar"}
  3882.  
  3883. Bar  Multiple bar    {GraphSettings.Type "Multiple bar,Bar"}
  3884.  
  3885. Bar  Rotated  2-D bar    {GraphSettings.Type "R2D bar,Bar"}
  3886.  
  3887. Bar  Rotated  2-D Half bar    {GraphSettings.Type "R2DHalf bar,Bar"}
  3888.  
  3889. Bar  Rotated  3-D bar    {GraphSettings.Type "R3D bar,Bar"}
  3890.  
  3891. Bar  Variance    {GraphSettings.Type "Variance,Bar"}
  3892.  
  3893. Pie  3-D Column    {GraphSettings.Type "3D Column,Pie"}
  3894.  
  3895. Pie  3-D Doughnut    {GraphSettings.Type "3D Doughnut,Pie"}
  3896.  
  3897. Pie  3-D Pie    {GraphSettings.Type "3D Pie,Pie"}
  3898.  
  3899. Pie  Column    {GraphSettings.Type "Column,Pie"}
  3900.  
  3901. Pie  Doughnut    {GraphSettings.Type "Doughnut,Pie"}
  3902.  
  3903. Pie  Multiple 3-D columns    {GraphSettings.Type "Multiple 3D columns,Pie"}
  3904.  
  3905. Pie  Multiple 3-D pies    {GraphSettings.Type "Multiple 3D pies,Pie"}
  3906.  
  3907. Pie  Multiple columns    {GraphSettings.Type "Multiple columns,Pie"}
  3908.  
  3909. Pie  Multiple pies    {GraphSettings.Type "Multiple pies,Pie"}
  3910.  
  3911. Pie  Pie    {GraphSettings.Type "Pie,Pie"}
  3912.  
  3913. Specialty  3-D Contour    {GraphSettings.Type "3D Contour,Specialty"}
  3914.  
  3915. Specialty  3-D Shaded Surface    {GraphSettings.Type "3D ShadedSurface,Specialty"}
  3916.  
  3917. Specialty  3-D Surface    {GraphSettings.Type "3D Surface,Specialty"}
  3918.  
  3919. Specialty  High Low    {GraphSettings.Type "HiLo,Specialty"}
  3920.  
  3921. Specialty  Polar radar    {GraphSettings.Type "Polar radar,Specialty"}
  3922.  
  3923. Specialty  XY    {GraphSettings.Type "XY,Specialty"}
  3924.  
  3925. Stacked Bar  100%  stacked bar    {GraphSettings.Type "100 stacked bar,Stacked Bar"}
  3926.  
  3927. Stacked Bar  100%  stacked line    {GraphSettings.Type "100 stacked line,Stacked Bar"}
  3928.  
  3929. Stacked Bar  3-D 100%  stacked bar    {GraphSettings.Type "3D100 stacked bar,Stacked Bar"}
  3930.  
  3931. Stacked Bar  3-D Stacked bar    {GraphSettings.Type "3D Stacked bar,Stacked Bar"}
  3932.  
  3933. Stacked Bar  Rotated  2-D 100%  stacked bar    {GraphSettings.Type "R2D100 stacked bar,Stacked Bar"}
  3934.  
  3935. Stacked Bar  Rotated  2-D 100%  stacked line    {GraphSettings.Type "R2D100 stacked line,Stacked Bar"}
  3936.  
  3937. Stacked Bar  Rotated  2-D stacked bar    {GraphSettings.Type "R2D stacked bar,Stacked Bar"}
  3938.  
  3939. Stacked Bar  Rotated  2-D stacked line    {GraphSettings.Type "R2D stacked line,Stacked Bar"}
  3940.  
  3941. Stacked Bar  Rotated  3-D 100%  stacked bar    {GraphSettings.Type "R3D100 stacked bar,Stacked Bar"}
  3942.  
  3943. Stacked Bar  Rotated  3-D stacked bar    {GraphSettings.Type "R3D stacked bar,Stacked Bar"}
  3944.  
  3945. Stacked Bar  Stacked bar    {GraphSettings.Type "Stacked bar,Stacked Bar"}
  3946.  
  3947. Stacked Bar  Stacked line    {GraphSettings.Type "Stacked line,Stacked Bar"}
  3948.  
  3949. Text  Blank    {GraphSettings.Type "Blank,Text"}
  3950.  
  3951. Text  Bullet    {GraphSettings.Type "Bullet,Text"}
  3952.  
  3953. Example
  3954.  
  3955. {GraphSettings.Type "3-D Pie,Pie"} make the active chart a 3-D pie chart.
  3956.  
  3957.     Related topics
  3958.  
  3959. {GraphView}
  3960.  
  3961. Syntax
  3962.  
  3963. {GraphView <ChartName1,ChartName2,...>}
  3964.  
  3965. Description
  3966.  
  3967. {GraphView} is equivalent to Chart  View Chart, which displays a chart (or series of charts) full-screen. {GraphView} without an argument displays the active chart (or chart icon or floating chart).
  3968.  
  3969. You can use {GraphView?} or {GraphView!} to display the View Chart dialog box. {GraphView?} lets the user manipulate the dialog box, whereas {GraphView!} relies on the macro to manipulate it.
  3970.  
  3971. Example
  3972.  
  3973. The following macro displays the named charts Profit90 through Profit94.
  3974.  
  3975.     {GraphView Profit90,Profit91,Profit92,Profit93,Profit94}
  3976.  
  3977. Parameters
  3978.  
  3979. Parameter    Description
  3980.  
  3981. ChartName1    name of the first chart to display (optional)
  3982.  
  3983. ChartName2    name of the second chart to display (optional)
  3984.  
  3985.     Related topics
  3986.  
  3987. {GraphWindow.Property}
  3988.  
  3989. Description
  3990.  
  3991. {GraphWindow.Property} is equivalent to right-clicking the title bar of a chart window to set its Aspect Ratio or Grid properties.
  3992.  
  3993. {GraphWindow.Aspect_Ratio Option} sets the aspect ratio of the active chart. Option can be one of the following settings: "35mm Slide", "Floating Chart", "Full Extent", "Printer Preview", or "Screen Slide".
  3994.  
  3995. {GraphWindow.Grid GridSize,DisplayGrid,SnapToGrid} sets the grid size of the active chart window. Use GridSize to specify the percent of chart window between grid points; DisplayGrid specifies whether the grid is visible; SnapToGrid specifies whether the grid is active.
  3996.  
  3997. Example
  3998.  
  3999. This macro sets up a 10 by 10 grid, displays the grid, and enables it.
  4000.  
  4001.     {GraphWindow.Grid "10,Yes,Yes"}
  4002.  
  4003. {Group.Option}
  4004.  
  4005. Command equivalent    Equivalent to
  4006.  
  4007. {Group.Define GroupName, StartPage, EndPage}    Insert  Name  Group of Sheets
  4008.  
  4009. {Group.Delete GroupName}    Insert  Name  Group of Sheets  Delete
  4010.  
  4011. {Group.ResetNames}    Clears all group names in the notebook; no equivalent command
  4012.  
  4013. Description
  4014.  
  4015. {Group.Option} is the command equivalent for Insert  Name  Group of Sheets, which creates and deletes sheet groups.
  4016.  
  4017. Once you have defined a sheet group, you can use {Notebook.Group_Mode "On"} to activate Group mode. Use "Off" to cancel Group mode.
  4018.  
  4019. You can use {Group?} or {Group!} to display the Define/Modify Group dialog box. {Group?} lets the user manipulate the dialog box, whereas {Group!} relies on the macro to manipulate it.
  4020.  
  4021.     Related topics
  4022.  
  4023. {GroupObjects}
  4024.  
  4025. Description
  4026.  
  4027. {GroupObjects} is the command equivalent for Format  Group. It groups selected objects in a chart window so they can be treated as one object in subsequent operations. Use {UngroupObjects} to treat them independently again.
  4028.  
  4029.     Related topics
  4030.  
  4031. {HELP}
  4032.  
  4033. Description
  4034.  
  4035. {HELP} is equivalent to the Help key, F1. It displays a help topic.
  4036.  
  4037.     Related topics
  4038.  
  4039. {HISTOGRAM}
  4040.  
  4041. Syntax
  4042.  
  4043. {HISTOGRAM InBlock, OutBlock, <BinBlock>, <Pareto>, <Cum>}
  4044.  
  4045. Description
  4046.  
  4047. {HISTOGRAM} calculates the probability and cumulative distributions for a sample population, based on a series of bins. {HISTOGRAM} is equivalent to the Histogram analysis tool.
  4048.  
  4049. Parameters
  4050.  
  4051. Parameter    Description
  4052.  
  4053. InBlock    input cells containing one or more columns or rows of numeric values; the cells must not contain labels
  4054.  
  4055. OutBlock    upper left cell of the output cells
  4056.  
  4057. BinBlock    set of numbers defining the bin ranges; BinBlock numbers must be in ascending order; if BinBlock is omitted, bins are distributed evenly from the minimum to the maximum values in InBlock, with the number of bins equal to the square root of the number of values in InBlock
  4058.  
  4059. Pareto    1 to arrange the output table in both descending frequency order and ascending BinBlock order; 0 to arrange the output table in ascending BinBlock order; the default is 0
  4060.  
  4061. Cum    flag indicating whether to generate a column in OutBlock showing cumulative percentages: yes (1) or no (0); the default is 0
  4062.  
  4063.  
  4064.  
  4065.     Related topics
  4066.  
  4067. {HLINE}
  4068.  
  4069. Syntax
  4070.  
  4071. {HLINE Distance}
  4072.  
  4073. Description
  4074.  
  4075. {HLINE} scrolls the active notebook horizontally by Distance columns. If the number is positive, it scrolls right; if negative, it scrolls left. {HLINE} does not move the selector; only the view of the notebook is altered, just as if the scroll bars were used. Use the commands {RIGHT} or {LEFT} to move the selector horizontally.
  4076.  
  4077. Example
  4078.  
  4079. {HLINE 10}    scrolls the display 10 columns to the right.
  4080.  
  4081. {HLINE -5}    scrolls the display 5 columns to the left.
  4082.  
  4083. Parameters
  4084.  
  4085. Parameter    Description
  4086.  
  4087. Distance    distance in columns to scroll the active notebook horizontally
  4088.  
  4089.     Related topics
  4090.  
  4091. {HOME}
  4092.  
  4093. Description
  4094.  
  4095. {HOME} is equivalent to the Home key.
  4096.  
  4097.     Related topics
  4098.  
  4099. {HPAGE}
  4100.  
  4101. Syntax
  4102.  
  4103. {HPAGE Distance}
  4104.  
  4105. Description
  4106.  
  4107. {HPAGE} scrolls the active notebook horizontally by Distance screens. If the number is positive, it scrolls right; if negative, it scrolls left. {HPAGE} does not move the selector; only the view of the notebook is altered. Use {BIGRIGHT} or {BIGLEFT} to move the selector horizontally.
  4108.  
  4109. Parameters
  4110.  
  4111. Parameter    Description
  4112.  
  4113. Distance    distance in screens to scroll the active notebook horizontally
  4114.  
  4115.     Related topics
  4116.  
  4117. {IF}
  4118.  
  4119. Syntax
  4120.  
  4121. {IF Condition}
  4122.  
  4123. Description
  4124.  
  4125. {IF} operates like @IF. {IF} evaluates Condition; if it is numeric and nonzero, it is considered to be TRUE and macro execution continues in the same cell; if Condition is anything else, it is considered FALSE, and macro execution continues in the cell directly below the {IF} command. Unlike @IF, {IF} commands cannot be nested within each other.
  4126.  
  4127. Example
  4128.  
  4129. The following example says, in English, "If the value stored in gpa is greater than 0.59, run the macro _pass_student; otherwise, run the macro _fail_student."
  4130.  
  4131. \F    {IF gpa>.59}{BRANCH _pass_student}
  4132.  
  4133.         {BRANCH _fail_student}
  4134.  
  4135. If you do not want both the true and false clauses executing, be sure to include {BRANCH} or {QUIT} in the same cell as {IF}, as shown in both examples. The following example uses a string of {IF} commands to award a grade based on a test result:
  4136.  
  4137. \G    {IF result>=.90}{BRANCH _give_a}
  4138.  
  4139.         {IF result>=.80}{BRANCH _give_b}
  4140.  
  4141.         {IF result>=.70}{BRANCH _give_c}
  4142.  
  4143.         {IF result>=.56}{BRANCH _give_d}
  4144.  
  4145.         {BRANCH _give_f}
  4146.  
  4147. Parameters
  4148.  
  4149. Parameter    Description
  4150.  
  4151. Condition    a logical expression (or the address of a cell containing a label, value, or expression)
  4152.  
  4153.     Related topics
  4154.  
  4155. {IFAUTOOBJ}
  4156.  
  4157. Syntax
  4158.  
  4159. {IFAUTOOBJ ObjectExpression}
  4160.  
  4161. Description
  4162.  
  4163. {IFAUTOOBJ} is like {IF}, but instead evaulating a logical condition it expects the object expression resulting from an OLE automation object. If ObjectExpression is true, {IFAUTOOBJ} runs the macro in the same cell; otherwise, it skips to the next cell.
  4164.  
  4165. Example
  4166.  
  4167. {ASSIGN OLE2App, GetObject("DispCalc.Application")}
  4168.  
  4169. {IFAUTOOBJ OLE2App}{BRANCH A10}
  4170.  
  4171. {ASSIGN OLE2App, CreateObject("DispCalc.Application")}
  4172.  
  4173. For more details on using {IFAUTOOBJ} and other OLE automation macro commands, Using OLE Automation Features.
  4174.  
  4175. Parameters
  4176.  
  4177. Parameter    Description
  4178.  
  4179. ObjectExpression    object expression resulting from an OLE automation object
  4180.  
  4181. {IFKEY}
  4182.  
  4183. Syntax
  4184.  
  4185. {IFKEY String}
  4186.  
  4187. Description
  4188.  
  4189. {IFKEY} is like {IF}, but runs the next macro command in the current cell if String is the name of a key macro command (such as {ESC} or {HOME}). Do not enclose the name stored in String in braces. For example, {IFKEY "HOME"} evaluates as true because HOME is the name of a macro command; {IFKEY "A"} evaluates as false because it is not the name of a macro command. String can be a string or a text formula.
  4190.  
  4191. Parameters
  4192.  
  4193. Parameter    Description
  4194.  
  4195. String    any macro name for a key (such as PGUP, END, GRAPH, and so on) without braces, or a string that returns a key macro name without braces
  4196.  
  4197.     Related topics
  4198.  
  4199. {IMFORMAT}
  4200.  
  4201. Syntax
  4202.  
  4203. {IMFORMAT Format}
  4204.  
  4205. Description
  4206.  
  4207. {IMFORMAT} specifies how complex numbers display in the active notebook, and returns a label showing the selected format.
  4208.  
  4209. Example
  4210.  
  4211. {IMFORMAT 1} returns "x+iy"
  4212.  
  4213. {IMFORMAT 2} returns "x+jy"
  4214.  
  4215. Parameters
  4216.  
  4217. Parameter    Description
  4218.  
  4219. Format    flag indicating what suffix and format to use for imaginary coefficient of complex number; the default is 1; 1 = x + yi, 2 = x + yj, 3 = x + iy, 4 = x + jy
  4220.  
  4221.     Related topics
  4222.  
  4223. {ImportGraphic}
  4224.  
  4225. Syntax
  4226.  
  4227. {ImportGraphic Filename}
  4228.  
  4229. Description
  4230.  
  4231. {ImportGraphic} is the command equivalent for Insert  Graphics  Clipart. It imports graphics files into a chart window.
  4232.  
  4233. You can use {ImportGraphic?} or {ImportGraphic!} to display the Insert Image dialog box. {ImportGraphic?} lets the user manipulate the dialog box, whereas {ImportImage!} relies on the macro to manipulate it.
  4234.  
  4235. Parameters
  4236.  
  4237. Parameter    Description
  4238.  
  4239. Filename    name of the bitmap or other graphics file to import
  4240.  
  4241.     Related topics
  4242.  
  4243. {INDICATE}
  4244.  
  4245. Syntax
  4246.  
  4247. {INDICATE String}
  4248.  
  4249. Description
  4250.  
  4251. {INDICATE} sets the mode indicator in the lower right corner of the screen to read whatever is given as String. If String is longer than seven characters, only the first seven are used. To restore the mode indicator to its normal setting, use {INDICATE} with no arguments. To hide the mode indicator, use {INDICATE ""}.
  4252.  
  4253. Example
  4254.  
  4255. {INDICATE "Save!"} changes the indicator to read Save!.
  4256.  
  4257. {INDICATE " Go! "} changes the indicator to read Go! with a space preceding and following it.
  4258.  
  4259. {INDICATE E14} changes the indicator to E14 because cell references are ignored.
  4260.  
  4261. {INDICATE} restores the normal mode indicator.
  4262.  
  4263. Parameters
  4264.  
  4265. Parameter    Description
  4266.  
  4267. String    any seven-character string
  4268.  
  4269.     Related topics
  4270.  
  4271. {INITIATE}
  4272.  
  4273. Syntax
  4274.  
  4275. {INITIATE AppName,Topic,ChannelLoc}
  4276.  
  4277. Description
  4278.  
  4279. {INITIATE} requests a channel of communication with the application AppName. This application must support Dynamic Data Exchange (DDE). If the request succeeds, the identification number of the conversation (DDE communication) is stored in the cell ChannelLoc. Topic can be a Corel WordPerfect document, an Excel spreadsheet, an ObjectVision form, or other DDE server-application file. If there is no specific file to communicate with in the other application, you can set Topic to System.
  4280.  
  4281. AppName, Topic, or both can be an empty string (""). The empty string works as a wildcard to display a list of possible conversations to choose from.
  4282.  
  4283. You can use {INITIATE} multiple times with the same application; if you do this, use a different ChannelLoc for each conversation. Once a channel opens, you can use {REQUEST}, {EXECUTE}, or {POKE} to communicate with the application.
  4284.  
  4285. When the DDE conversation is complete, use {TERMINATE} to end it. See {EXECUTE} for an example of {INITIATE}.
  4286.  
  4287. Parameters
  4288.  
  4289. Parameter    Description
  4290.  
  4291. AppName    name of the Windows application to communicate with
  4292.  
  4293. Topic    name of the file within the Windows application to communicate with
  4294.  
  4295. ChannelLoc    cell to contain the Channel ID number of the conversation if communication succeeds
  4296.  
  4297.     Related topics
  4298.  
  4299. {INS}, {INSERT}, {INSOFF}, and {INSON}
  4300.  
  4301. Description
  4302.  
  4303. {INS} and {INSERT} toggle the Ins key on or off. {INSOFF} is equivalent to Ins off, and {INSON} to Ins on.
  4304.  
  4305.     Related topics
  4306.  
  4307. {InsertObject}
  4308.  
  4309. Syntax 1: Embedding/Linking from a File
  4310.  
  4311. {InsertObject Filename, <DisplayAsIcon?(0|1)>, <Linked?(0|1)>}
  4312.  
  4313. Syntax 2: Embedding a New Object
  4314.  
  4315. {InsertObject ObjectType, <DisplayAsIcon?(0|1)>}
  4316.  
  4317. Description
  4318.  
  4319. {InsertObject} is equivalent to Insert  Object, which inserts an OLE object into the active notebook without using the Clipboard.
  4320.  
  4321. You can use {InsertObject?} or {InsertObject!} to display the Insert Object dialog box. {InsertObject?} lets the user manipulate the dialog box, whereas {InsertObject!} relies on the macro to manipulate it.
  4322.  
  4323. Example
  4324.  
  4325. This macro inserts a picture created in Paintbrush into the active notebook.
  4326.  
  4327.     {InsertObject "Paintbrush Picture"}
  4328.  
  4329. Parameters 1
  4330.  
  4331. Parameter    Description
  4332.  
  4333. Filename    file that you want to link/embed as an object
  4334.  
  4335. DisplayAsIcon    whether to display the object as an icon; 0 to show the object as it looks in the server application; 1 to display the object as an icon
  4336.  
  4337. Linked?    whether to link to the file; 0 to not link; 1 to link; the default is 0
  4338.  
  4339. Parameters 2
  4340.  
  4341. Parameter    Description
  4342.  
  4343. ObjectType    type of object to insert (the name of an OLE server)
  4344.  
  4345. DisplayAsIcon    whether to display the object as an icon; 0 to show the object as it looks in the server application; 1 to display the object as an icon
  4346.  
  4347.     Related topics
  4348.  
  4349. {InsertPageBreak.Option}
  4350.  
  4351. Command equivalent    Equivalent to Insert  Page Break...
  4352.  
  4353. {InsertPageBreak.Create Row#, Column#}    ... Create
  4354.  
  4355. {InsertPageBreak.Delete Row#, Column#}    ... Delete
  4356.  
  4357. Description
  4358.  
  4359. {InsertPageBreak.Create} inserts a page break above Row# and to left of Column#.
  4360.  
  4361. {InsertPageBreak.Delete} deletes the current PageBreak above Row# and to left of Column#.
  4362.  
  4363.     Related topics
  4364.  
  4365. {INSPECT}
  4366.  
  4367. Description
  4368.  
  4369. {INSPECT} is equivalent to the Inspect key, F12. It displays an Object Inspector for the current object.
  4370.  
  4371.     Related topics
  4372.  
  4373. {Invert.Option}
  4374.  
  4375. Command equivalent    Equivalent to Tools  Numeric Tools  ...
  4376.  
  4377. {Invert.Destination Block}    ...Invert  Destination
  4378.  
  4379. {Invert.Go}    ...Invert  OK
  4380.  
  4381. {Invert.Source Block}    ...Invert  Source
  4382.  
  4383. Description
  4384.  
  4385. {Invert.Option} is the command equivalent for Tools  Numeric Tools  Invert. It inverts a square matrix (indicated by {Invert.Source Block}) and stores the invert matrix in other cells (indicated by {Invert.Destination Block}). Use {Invert.Go} after the other two matrix-inversion command equivalents to complete the operation.
  4386.  
  4387. You can use this command equivalent with {Multiply.Option} to solve sets of linear equations.
  4388.  
  4389. You can use {Invert?} or {Invert!} to display the Matrix Invert dialog box. {Invert?} lets the user manipulate the dialog box, whereas {Invert!} relies on the macro to manipulate it.
  4390.  
  4391.     Related topics
  4392.  
  4393. {LEFT} and {L}
  4394.  
  4395. Syntax
  4396.  
  4397. {LEFT <Number>} or {L <Number>}
  4398.  
  4399. Description
  4400.  
  4401. {LEFT} and {L} are equivalent to the Left Arrow key. The optional argument Number moves the selector the corresponding number of columns to the left. You can use cell references or cell names as arguments.
  4402.  
  4403. Example
  4404.  
  4405. {L}{L}{L} moves the selector left three columns.
  4406.  
  4407. {LEFT 6} moves the selector six columns to the left.
  4408.  
  4409. {LEFT D9} moves to the left the number of columns specified in cell D9.
  4410.  
  4411. {LEFT count} moves to the left the number of columns specified in the first cell of the cells named count.
  4412.  
  4413. Parameters
  4414.  
  4415. Parameter    Description
  4416.  
  4417. Number    any positive integer (optional)
  4418.  
  4419.     Related topics
  4420.  
  4421. {LET}
  4422.  
  4423. Syntax
  4424.  
  4425. {LET Location,Value<:Type>}
  4426.  
  4427. Description
  4428.  
  4429. With {LET}, you can enter a value into Location without moving to it. {LET} enters the value or string you specify with Value in Location.
  4430.  
  4431. You can use the optional Type argument to specify whether to store Value as an actual number or as a string. If you specify a formula as a string, the formula is written into Location as a string, not the resulting value. For example, {LET A1,B3*23:string} stores the formula B3*23 as a label in cell A1. If you omit Type, Corel Quattro Pro tries to store the value as a numeric value; if unsuccessful, it stores the value as a string.
  4432.  
  4433. Location must be a cell address or cell name; you can use functions such as @CELLPOINTER as a Location in {LET} commands only if they return a cell address or cell name.
  4434.  
  4435. Value cannot be an @ARRAY formula. {LET} does not not enter array values. Use {PUTCELL} or {PUTCELL2} to enter array values.
  4436.  
  4437. You can use {LET} to invoke add-in @functions or macros contained in DLLs. Specify the add-in as Value, using this syntax for functions:
  4438.  
  4439.     @dllname.functionname(functionargument1, functionargument2, ...)
  4440.  
  4441.  
  4442.  
  4443. For example, this statement calls the @function MEDIAN, included in DLL Stats, with a five-item list as an argument and stores the result in Location G6:
  4444.  
  4445.     {LET G6,@Stats.MEDIAN(2,4,6,8,10)}
  4446.  
  4447.  
  4448.  
  4449. The macro syntax is identical:
  4450.  
  4451.     @dllname.macroname(macroargument1, macroargument2, ...)
  4452.  
  4453.  
  4454.  
  4455. Example
  4456.  
  4457. {LET(@CELLPOINTER("address")),99} makes the value of the active cell 99.
  4458.  
  4459. The examples below assume A1 contains the label 'Dear, A2 contains the label 'Sir, and A3 contains the value 25. The result is shown to the right of each {LET}.
  4460.  
  4461. \M    {LET F1,25}    25
  4462.  
  4463.     {LET F2,A3}    25
  4464.  
  4465.     {LET F3,+A1&""&A2}    Dear Sir
  4466.  
  4467.     {LET F4,+A1&""&A2:value}    Dear Sir
  4468.  
  4469.     {LET F5,+A1&""&A2:string}    +A1&""&A2
  4470.  
  4471.     {LET F6,+A1&A3}    ERR (because A3 is a value)
  4472.  
  4473. Parameters
  4474.  
  4475. Parameter    Description
  4476.  
  4477. Location    cell in which to store the specified value
  4478.  
  4479. Value    numeric or string value to be stored in Location
  4480.  
  4481. Type    string or value; string (or s) stores the value or formula as a label, and value (or v) stores the actual value or value resulting from a formula (optional)
  4482.  
  4483.     Related topics
  4484.  
  4485. {Link}
  4486.  
  4487. Syntax
  4488.  
  4489. {Link "string"}
  4490.  
  4491. Description
  4492.  
  4493. {Link} applies a link to the currently selected object, such as a pushbutton in a dialog or Toolbar. {Link} is not recordable, but is equivalent to right-clicking dialog or toolbar objects and choosing "Links."
  4494.  
  4495. Example
  4496.  
  4497. {Link "ON Clicked DOMACRO {filesave}"}
  4498.  
  4499. {Links.Option}
  4500.  
  4501. Command equivalent    Equivalent to Edit  Links  ...
  4502.  
  4503. {Links.Change OldName, NewName}    Change Link
  4504.  
  4505. {Links.Delete LinkName|*} (* = all links)    Delete Links 
  4506.  
  4507. {Links.Open LinkName|*} (* = all links)    Open Links
  4508.  
  4509. {Links.Refresh LinkName|*} (* = all links)    Refresh Links
  4510.  
  4511. Description
  4512.  
  4513. {Links.Option} is equivalent to commands on the Edit  Links menu, which refresh, change, or delete links in the active notebook.
  4514.  
  4515. LinkName is the name of the file being linked to. You can set LinkName to * to affect all links in the active notebook. If LinkName is omitted, the dialog box that normally performs the operation appears (and is under macro control; use {PAUSEMACRO} to pass control to the user).
  4516.  
  4517. Example
  4518.  
  4519. {Links.Refresh *} refreshes all links in the active notebook.
  4520.  
  4521. The following macro displays the Open Links dialog box and lets the user select the name of a linked notebook to open.
  4522.  
  4523. {Links.Open}
  4524.  
  4525. {PAUSEMACRO}
  4526.  
  4527.     Related topics
  4528.  
  4529. {LOOK}
  4530.  
  4531. Syntax
  4532.  
  4533. {LOOK Location}
  4534.  
  4535. Description
  4536.  
  4537. When Corel Quattro Pro runs a macro, it does not respond to keystrokes the user enters (except Ctrl+Break). If the user presses keys during macro execution, those keystrokes are stored in the computer's type-ahead buffer and are responded to when the macro pauses for input or ends.
  4538.  
  4539. {LOOK} checks this type-ahead buffer for stored keystrokes. If any are found, it places the first keystroke the user typed in Location as a macro command.
  4540.  
  4541. {LOOK} can be used while processing long macros to check for a keystroke that might signal the user wants to quit (see the next example).
  4542.  
  4543. {LOOK} does not remove the keystroke from the buffer. If a macro does nothing other than {LOOK}, the key still passes to Corel Quattro Pro when the macro ends. To remove pending keystrokes from the buffer, use {GET}.
  4544.  
  4545. Example
  4546.  
  4547. In the following example, the macro gives you 15 seconds to choose the next menu choice. If you do not, you must reenter the password. Important: Type the line to the right of _check_it with no hard returns until after {BRANCH _password}, then press Enter to insert it into one cell (the macro commands from {LOOK keystroke} to {BRANCH -password} are shown here on separate lines for readability).
  4548.  
  4549. \M    {QGOTO}msg_area~
  4550.  
  4551.     A. Add name{DOWN}
  4552.  
  4553.     B. Edit name{DOWN}
  4554.  
  4555.     C. Delete name{DOWN}
  4556.  
  4557.     Enter choice: {RIGHT}
  4558.  
  4559.     { }
  4560.  
  4561.     {LET start_time,@NOW}
  4562.  
  4563. _check_it    {LOOK keystroke}
  4564.  
  4565.     {IF keystroke=""}
  4566.  
  4567.     {IF @NOW>start_time + @TIME(0,0,15)}
  4568.  
  4569.     {BRANCH _password}
  4570.  
  4571.     {IF keystroke<>""}{BRANCH _take_action}
  4572.  
  4573.     {BEEP 4}
  4574.  
  4575.     {BRANCH _check_it}
  4576.  
  4577.     
  4578.  
  4579. _password    {; get password from user}
  4580.  
  4581.     {GETLABEL "Enter password : ",pass}
  4582.  
  4583.     
  4584.  
  4585. _take_action    { }
  4586.  
  4587.     {BEEP 3}
  4588.  
  4589. start_time    
  4590.  
  4591. keystroke    
  4592.  
  4593. pass    
  4594.  
  4595. msg_area    
  4596.  
  4597. Parameters
  4598.  
  4599. Parameter    Description
  4600.  
  4601. Location    a cell in which to store a typed character
  4602.  
  4603.     Related topics
  4604.  
  4605. {MACROS}
  4606.  
  4607. Description
  4608.  
  4609. {MACROS} is equivalent to the Macros key, Shift+F3, which displays a menu of macro commands to type into the input line.
  4610.  
  4611.     Related topics
  4612.  
  4613. {MapExpert}
  4614.  
  4615. Description
  4616.  
  4617. {MapExpert} is the command equivalent for Insert  Graphics  Map. The macro has no arguments. {MapExpert} displays the first Map Expert dialog box.
  4618.  
  4619.     Related topics
  4620.  
  4621. {MapNew}
  4622.  
  4623. Syntax
  4624.  
  4625. {MapNew Name,<UseBlock>}
  4626.  
  4627. Description
  4628.  
  4629. {MapNew} is the command equivalent for Insert  Graphics  Map.
  4630.  
  4631. Parameters
  4632.  
  4633. Parameter    Description
  4634.  
  4635. Name    name of the new map
  4636.  
  4637. UseBlock    1 to create the map using data in the current cells
  4638.  
  4639.     Related topics
  4640.  
  4641. {MARK}
  4642.  
  4643. Description
  4644.  
  4645. {MARK} is equivalent to the Select key, Shift+F7, which lets you begin selection of cells.
  4646.  
  4647.     Related topics
  4648.  
  4649. {MCORREL}
  4650.  
  4651. Syntax
  4652.  
  4653. {MCORREL InBlock, OutBlock, <Grouped>, <Labels>}
  4654.  
  4655. Description
  4656.  
  4657. {MCORREL} computes the correlation matrix between two or more data sets. {MCORREL} is equivalent to the Correlation analysis tool.
  4658.  
  4659. Parameters
  4660.  
  4661. Parameter    Description
  4662.  
  4663. InBlock    input cells containing two or more sets of numeric data arranged in columns or rows
  4664.  
  4665. OutBlock    upper left cell of the output cells
  4666.  
  4667. Grouped    "C" to group results by column or "R" to group results by row; the default is "C"
  4668.  
  4669. 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
  4670.  
  4671.     Related topics
  4672.  
  4673. {MCOVAR}
  4674.  
  4675. Syntax
  4676.  
  4677. {MCOVAR InBlock, OutBlock, <Grouped>, <Labels>}
  4678.  
  4679. Description
  4680.  
  4681. {MCOVAR} returns the covariance matrix between two or more data sets. {MCOVAR} is equivalent to the Covariance analysis tool.
  4682.  
  4683. Parameters
  4684.  
  4685. Parameter    Description
  4686.  
  4687. InBlock    input cells containing two or more sets of numeric data arranged in columns or rows
  4688.  
  4689. OutBlock    upper left cell of the output cells
  4690.  
  4691. Grouped    "C" to group results by column or "R" to group results by row; the default is "C"
  4692.  
  4693. 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
  4694.  
  4695.     Related topics
  4696.  
  4697. {MENU}
  4698.  
  4699. Description
  4700.  
  4701. {MENU} is equivalent to the Menu key (Alt or F10). This command moves the selector to the menu bar and highlights the first menu.
  4702.  
  4703.     Related topics
  4704.  
  4705. {MENUBRANCH}
  4706.  
  4707. Syntax
  4708.  
  4709. {MENUBRANCH Location}
  4710.  
  4711. Description
  4712.  
  4713. {MENUBRANCH} pauses macro execution to display the custom pop-up menu stored at Location. After the user chooses 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 the user presses Esc, or clicks outside the menu; in this case, the macro continues in the {MENUBRANCH} cell.
  4714.  
  4715. With the exception of the Esc key, a custom pop-up menu acts the same as one of Corel Quattro Pro's own menus. Users can press the arrow keys to look at each item, and can choose a menu item by either pressing Enter while highlighting it, pressing the first letter of the menu item's name, or choosing it with the mouse.
  4716.  
  4717. Example
  4718.  
  4719. The following macro displays a custom menu that offers the user three choices. If the user presses Esc, the menu is redisplayed with {BRANCH \F}.
  4720.  
  4721. quit_menu    Continue    Return    Quit
  4722.  
  4723.     Continue macro    Return to Ready    Leave Corel Quattro Pro
  4724.  
  4725.     {BRANCH \F}    {BRANCH _continue}    {MENUBRANCH sure}
  4726.  
  4727.             
  4728.  
  4729. sure    No    Yes    
  4730.  
  4731.     Stay in Corel Quattro Pro    Return to DOS    
  4732.  
  4733.     {BRANCH \F}    {FileExit}    
  4734.  
  4735.             
  4736.  
  4737. \F    {MENUBRANCH quit_menu}        
  4738.  
  4739.     {BRANCH \F}        
  4740.  
  4741. _continue            
  4742.  
  4743. Parameters
  4744.  
  4745. Parameter    Description
  4746.  
  4747. Location    cells containing menu cells
  4748.  
  4749.     Related topics
  4750.  
  4751. {MENUCALL}
  4752.  
  4753. Syntax
  4754.  
  4755. {MENUCALL Location}
  4756.  
  4757. Description
  4758.  
  4759. {MENUCALL} pauses macro execution and displays the custom pop-up menu stored at Location. It treats the called menu as a subroutine. After the user chooses an item from the menu, macro execution continues in the cell containing {MENUCALL}.
  4760.  
  4761. See {ADDMENU} and {ADDMENUITEM} for information on adding menus or menu items to the Corel Quattro Pro menu bar.
  4762.  
  4763. Example
  4764.  
  4765. The following macro uses two consecutive custom menus to let the user 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.
  4766.  
  4767. m_status    Active    Retired
  4768.  
  4769.     Active Members     Retired Members
  4770.  
  4771.     {LET stat, "A"}    {LET stat, "R"}
  4772.  
  4773.         
  4774.  
  4775. m_paid    Paid    Unpaid
  4776.  
  4777.     Dues are paid    Dues are unpaid
  4778.  
  4779.     {LET pay, "T"}    {LET pay, "F"}
  4780.  
  4781.         
  4782.  
  4783. \M    {;Choose members for label print}    
  4784.  
  4785.     {MENUCALL m_status}    
  4786.  
  4787.     {MENUCALL m_paid}    
  4788.  
  4789.     {Query.Extract}    
  4790.  
  4791.     {BRANCH print_labels}    
  4792.  
  4793.  
  4794.  
  4795. Database Criteria Cells:
  4796.  
  4797.  
  4798.  
  4799.     STATUS    PAID
  4800.  
  4801.     A    F
  4802.  
  4803. Parameters
  4804.  
  4805. Parameter    Description
  4806.  
  4807. Location    cells containing a custom Corel Quattro Pro menu
  4808.  
  4809.     Related topics
  4810.  
  4811. {MESSAGE}
  4812.  
  4813. Syntax
  4814.  
  4815. {MESSAGE Block,Left,Top,Time}
  4816.  
  4817. Description
  4818.  
  4819. {MESSAGE} displays the contents of Block in a dialog box until Time is reached; Time is a standard Corel Quattro Pro date/time serial number (decimal portion). The window appears at the screen (not the notebook) coordinates Left,Top.
  4820.  
  4821. 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.
  4822.  
  4823. 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.
  4824.  
  4825. The message box always appears over the frontmost window, even if that window is not a notebook (for example, a chart window).
  4826.  
  4827. If you enter 0 for Time, Corel Quattro Pro displays the box until the user presses any key. (You can use {GRAPHCHAR} to test for which key is pressed.)
  4828.  
  4829. Example
  4830.  
  4831. This example displays a message box for 15 seconds and then displays another box indefinitely. If the user presses Y, the macro closes the notebook without saving it. If the user, presses N (which is returned in the cells the_key), the user removes the second message box.
  4832.  
  4833. the_key
  4834.  
  4835.  
  4836.  
  4837. \A    {MESSAGE msg1,15,5,+@NOW+@TIME(0,0,15)}
  4838.  
  4839.  
  4840.  
  4841. _warning    {MESSAGE msg2,15,5,0}
  4842.  
  4843.         {GRAPHCHAR the_key}
  4844.  
  4845.         {IF @UPPER(the_key)="Y"}{BRANCH _lose_data}
  4846.  
  4847.  
  4848.  
  4849. msg1    Warning! You may lose data if you continue.
  4850.  
  4851.  
  4852.  
  4853. msg2    Are you sure you want to continue?
  4854.  
  4855.         Press Y to continue or any other key to cancel...
  4856.  
  4857. _lose_data    {FileClose 0}
  4858.  
  4859.  
  4860.  
  4861. Parameters
  4862.  
  4863. Parameter    Description
  4864.  
  4865. Block    cell name or coordinates of the text and/or floating object to display in the message box
  4866.  
  4867. Left    screen column number (counting from 0) where the top left corner of the box should appear
  4868.  
  4869. Top        screen line number (counting from 0) where the top left corner of the box should appear
  4870.  
  4871. Time    Corel Quattro Pro time serial number
  4872.  
  4873.     Related topics
  4874.  
  4875. {MOVEAVG}
  4876.  
  4877. Syntax
  4878.  
  4879. {MOVEAVG InBlock, OutBlock, <Interval>, <StdErrs>}
  4880.  
  4881. Description
  4882.  
  4883. {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.
  4884.  
  4885. Parameters
  4886.  
  4887. Parameter    Description
  4888.  
  4889. InBlock    input cells containing a single column or row with at least four numeric values; the cells must not contain labels
  4890.  
  4891. OutBlock    upper left cell of the output cells
  4892.  
  4893. Interval    number of values to include in the moving average; the default is 3
  4894.  
  4895. StdErrs    flag indicating whether to include standard error values in the OutBlock: yes (1) or no (0); the default is 0
  4896.  
  4897.     Related topics
  4898.  
  4899. {MOVETO}
  4900.  
  4901. Syntax
  4902.  
  4903. {MOVETO x,y}
  4904.  
  4905. Description
  4906.  
  4907. {MOVETO} moves all selected objects in the active window (dialog, chart, or Objects sheetg 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.)
  4908.  
  4909. The coordinates x and y represent where to move the upper left corner of the object(s). Object size does not change.
  4910.  
  4911. Parameters
  4912.  
  4913. Parameter    Description
  4914.  
  4915. x,y    position to move the currently selected object(s) to in pixels
  4916.  
  4917.     Related topics
  4918.  
  4919. {MTGAMT}
  4920.  
  4921. Syntax
  4922.  
  4923. {MTGAMT <OutBlock>, <Rate>, <Term>, <OrigBal>, <EndBal>, <LastYear>}
  4924.  
  4925. Description
  4926.  
  4927. {MTGAMT} generates an amortization schedule for a mortgage. {MTGAMT} is equivalent to the Amortization Schedule analysis tool.
  4928.  
  4929. Parameters
  4930.  
  4931. Parameter    Description
  4932.  
  4933. OutBlock    upper left cell of the output cells
  4934.  
  4935. Rate    yearly interest rate; the default is 0.12
  4936.  
  4937. 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)
  4938.  
  4939. OrigBal    original loan balance; the default is $100,000
  4940.  
  4941. EndBal    balance at loan completion; the default is $0
  4942.  
  4943.  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)
  4944.  
  4945.     Related topics
  4946.  
  4947. {MTGREFI}
  4948.  
  4949. Syntax
  4950.  
  4951. {MTGREFI <OutBlock>, <CurrBal>, <CurrRate>, <RemTerm>, <CandPctFees>, <CandRate>}
  4952.  
  4953. Description
  4954.  
  4955. {MTGREFI} generates a table of information relating to refinancing a mortgage. {MTGREFI} is equivalent to the Mortgage Refinancing analysis tool.
  4956.  
  4957. Parameters
  4958.  
  4959. Parameter    Description
  4960.  
  4961. OutBlock    upper left cell of the output cells
  4962.  
  4963. CurrBal    remaining principal on the current loan
  4964.  
  4965. CurrRate    annual interest rate on the current loan
  4966.  
  4967. RemTerm    remaining term on the current loan
  4968.  
  4969. CandPctFees    percentage fees ("points") for the candidate loan
  4970.  
  4971. CandRate    annual interest rate for the candidate loan
  4972.  
  4973.     Related topics
  4974.  
  4975. {MulTipsly.Option}
  4976.  
  4977. Command equivalent    Equivalent to Tools  Numeric Tools  ...
  4978.  
  4979. {Multiply.Destination Block}    ...Multiply  Destination
  4980.  
  4981. {Multiply.Go}    ... OK
  4982.  
  4983. {Multiply.Matrix_1 Block}    ...Multiply  Matrix 1
  4984.  
  4985. {Multiply.Matrix_2 Block}    ...Multiply  Matrix 2
  4986.  
  4987. Description
  4988.  
  4989. {Multiply.Option} is the command equivalent for Tools  Numeric Tools  Multiply. It 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.
  4990.  
  4991. You can use this command equivalent with {Invert.Option} to solve sets of linear equations.
  4992.  
  4993. You can use {Multiply?} or {Multiply!} to display the Matrix Multiply dialog box. {Multiply?} lets the user manipulate the dialog box, whereas {Multiply!} relies on the macro to manipulate it.
  4994.  
  4995. Example
  4996.  
  4997. This macro multiplies cells C2..D6 by cells C18..G19 and stores the results in the cells with upper-left cell F1.
  4998.  
  4999. {Multiply.Matrix_1 A:C2..D6}
  5000.  
  5001. {Multiply.Matrix_2 A:C18..G19}
  5002.  
  5003. {Multiply.Destination A:F1}
  5004.  
  5005. {Multiply.Go}
  5006.  
  5007.     Related topics
  5008.  
  5009. {NAME}
  5010.  
  5011. Description
  5012.  
  5013. {NAME} is equivalent to the Choices key, F3, which displays a list of cell names in the current notebook, if cell names exist in the notebook. (If there are no named cells, the list of cell names won't appear.)
  5014.  
  5015. Use {NAME} with {GOTO}.
  5016.  
  5017. Example, 
  5018.  
  5019. {GOTO}{NAME}
  5020.  
  5021.     Related topics
  5022.  
  5023. {NamedStyle.Option}
  5024.  
  5025. Command equivalent    Equivalent to Format  Styles...
  5026.  
  5027. {NamedStyle.Alignment "HorizAlignment(General | Left | Right | Center | Center Across Block), VertAlignment(Top | Center | Bottom), WrapText?(0|1), Orientation(Horizontal | Vertical)"}    ... Included Properties  Alignment
  5028.  
  5029. {NamedStyle.Define "StyleName", Align?, NumericFormat?, Protection?, Lines?, Shading?, Font?, TextColor?}    ... Define Style For
  5030.  
  5031. {NamedStyle.Delete StyleName}    ... Delete
  5032.  
  5033. {NamedStyle.Font "FontName, PointSize, Bold, Italic, Underline, Strikeout"}    ... Included Properties  Font
  5034.  
  5035. {NamedStyle.Line_Drawing "LeftLine(None | Single | Double | Thick), TopLine, RightLine, BottomLine, LeftColor, TopColor, RightColor, BottomColor"}    ... Included Properties  Line Drawing
  5036.  
  5037. {NamedStyle.Numeric_Format NumericFormat}    ... Included Properties  Format
  5038.  
  5039. {NamedStyle.Protection Protect|Unprotect}    ... Included Properties  Protection
  5040.  
  5041. {NamedStyle.Shading ForegroundColor, BackgroundColor, Pattern}    ... Included Properties  Shading
  5042.  
  5043. {NamedStyle.Text_Color 0-15}    ... Included Properties  Text Color
  5044.  
  5045. Description
  5046.  
  5047. {NamedStyle.Option} is equivalent to Format  Styles, which lets you create styles in the active notebook.
  5048.  
  5049. These command equivalents do not take effect until the command {NamedStyle.Define} is used to create (or modify) a style. The arguments Align? through TextColor? each specify one property to include in the style; use 1 to include the property, 0 to exclude the property.
  5050.  
  5051. {NamedStyle.Font} sets the new typeface and size of text in the cell. Bold, Italic, Underline and Strikeout can be "Yes" to include that type feature or "No" to omit it.
  5052.  
  5053. {NamedStyle.Shading} sets the shading of the cell; ForegroundColor and BackgroundColor are numbers from 0 to 15; each specifies a color on the notebook palette to use; Pattern is a string ("Blend1" through "Blend7").
  5054.  
  5055. You can use {NamedStyle?} or {NamedStyle!} to display the Styles dialog box. {NamedStyle?} lets the user manipulate the dialog box, whereas {NamedStyle!} relies on the macro to manipulate it.
  5056.  
  5057. Example
  5058.  
  5059. This macro creates a new style named RedNote, which makes the active cells red, and sets a new font.
  5060.  
  5061. {NamedStyle.Font "Courier,10,Yes,No,No,No"}
  5062.  
  5063. {NamedStyle.Text_Color "4"}
  5064.  
  5065. {NamedStyle.Define RedNote,0,0,0,0,0,1,1}
  5066.  
  5067.     Related topics
  5068.  
  5069. {Navigate.Option}
  5070.  
  5071. Command    Description
  5072.  
  5073. {Navigate.SelectTable}    Expands selection to the table boundaries
  5074.  
  5075. {Navigate.Zoom2Fit}    Zooms so that a table fits into the visible part of the screen
  5076.  
  5077. {Navigate.GoTo Up | Left | Right | Down | TopLeft | TopRight | BottomLeft | BottomRight , <Extend?(0|1)>}    Go to the sides or corners of a table. When the optional Extend? argument is 1, cell selection is extended.
  5078.  
  5079. {Navigate.Jump Up | Left | Right | Down}    Jump to the next table in a given direction, or jump to the current table boundary if in the middle of a table.
  5080.  
  5081. Description
  5082.  
  5083. {Navigate.Option} is equivalent to the navigation tools available on the Data Manipulation Toolbar. {Navigate.SelectTable} is equivalent to the SpeedSelect button  on the Data Manipulation Toolbar, which expands selection from a cell or cells within a table to the entire table. {Navigate.Zoom2Fit} is equivalent to the Zoom To Fit button. {Navigate.GoTo} performs the same actions as the Top Left Of Table, Top Right Of Table, Bottom Left Of Table, and Bottom Right Of Table  buttons. {Navigate.Jump} jumps to the next table or to the selected boundary of the current table.
  5084.  
  5085. Example
  5086.  
  5087. The following macro selects cell C6 in the table below, then selects the entire table that C6 belongs to, and zooms to fit the table on the page.
  5088.  
  5089. {SelectBlock A:C6}
  5090.  
  5091. {Navigate.SelectTable}
  5092.  
  5093. {Navigate.Zoom2Fit}
  5094.  
  5095.     A    B    C    D
  5096.  
  5097. 1        Sales    Expenses    Profits
  5098.  
  5099. 2    Jan    1580    700    880
  5100.  
  5101. 3    Feb    2474    545    1929
  5102.  
  5103. 4    Mar    2570    656    1914
  5104.  
  5105. 5    Apr    2876    454    2422
  5106.  
  5107. 6    May    3223    489    2734
  5108.  
  5109. 7    Jun    2987    470    2517
  5110.  
  5111. 8    Jul    3178    500    2678
  5112.  
  5113. {NEXTPANE}
  5114.  
  5115. Syntax
  5116.  
  5117. {NEXTPANE <CellAtPointer?>}
  5118.  
  5119. Description
  5120.  
  5121. {NEXTPANE} switches between the panes of a notebook window previously split using View  Split Window. The optional argument CellAtPointer? specifies whether the active cell in the pane will be at the location of the selector (1) or its previous position (0). This command is equivalent to the Pane key, F6.
  5122.  
  5123. Parameters
  5124.  
  5125. Parameter    Description
  5126.  
  5127. CellAtPointer?    specifies which cell should be active when the pane switches (0 or 1, optional)
  5128.  
  5129.     Related topics
  5130.  
  5131. {NEXTTOPWIN}
  5132.  
  5133. Syntax
  5134.  
  5135. {NEXTTOPWIN <Number>}
  5136.  
  5137. Description
  5138.  
  5139. {NEXTTOPWIN} is equivalent to the Next Window key, Ctrl+F6. It makes the next window active and moves the selector to it.
  5140.  
  5141. Parameters
  5142.  
  5143. Parameter    Description
  5144.  
  5145. Number    number of times to repeat the operation (optional)
  5146.  
  5147.     Related topics
  5148.  
  5149. {NEXTWIN}
  5150.  
  5151. Syntax
  5152.  
  5153. {NEXTWIN <Number>}
  5154.  
  5155. Description
  5156.  
  5157. {NEXTWIN} is equivalent to Shift+F6. It makes the bottom window active and moves the selector to it. This macro is included for compatibility with Corel Quattro Pro for DOS.
  5158.  
  5159. Parameters
  5160.  
  5161. Parameter    Description
  5162.  
  5163. Number    number of times to repeat the operation (optional)
  5164.  
  5165.     Related topics
  5166.  
  5167. {Notebook.Property}
  5168.  
  5169. Description
  5170.  
  5171. {Notebook.Property} is equivalent to choosing Format  Notebook. Each command affects the active notebook. The next table lists the possible settings for Property. To display a description with syntax, choose that property in the following list:
  5172.  
  5173. Property    Format  Notebook option
  5174.  
  5175. Display    Display
  5176.  
  5177. Group_Mode    none
  5178.  
  5179. Macro_Library    Macro Library
  5180.  
  5181. Palette    Palette
  5182.  
  5183. Password    none
  5184.  
  5185. Password_Level    Password Level
  5186.  
  5187. Recalc_Settings    Recalc Settings
  5188.  
  5189. System    System
  5190.  
  5191. Zoom_Factor    Zoom Factor
  5192.  
  5193. You can use {Notebook?} or {Notebook!} to display the Active Notebook dialog box. {Notebook?} lets the user manipulate the dialog box, whereas {Notebook!} relies on the macro to manipulate it.
  5194.  
  5195.     Related topics
  5196.  
  5197. {Notebook.Display<.Option>}
  5198.  
  5199. {Notebook.Display<.Option>}    Equivalent to Format  Notebook...
  5200.  
  5201. {Notebook.Display "VertScroll, HorizScroll, Tabs, Objects"}    ... Display
  5202.  
  5203. {Notebook.Display.Objects Show All|Show Outline|Hide}    ... Display  Objects
  5204.  
  5205. {Notebook.Display.Show_HorizontalScroller Yes|No}    ... Display  Horizontal Scroll Bar
  5206.  
  5207. {Notebook.Display.Show_Tabs Yes|No}    ... Display  Sheet Tabs
  5208.  
  5209. {Notebook.Display.Show_VerticalScroller Yes|No}    ... Display  Vertical Scroll Bar
  5210.  
  5211. Description
  5212.  
  5213. {Notebook.Display.Option} is equivalent to options of the notebook property Display.
  5214.  
  5215. Example
  5216.  
  5217. This macro command hides the vertical and horizontal scroll bars of the active notebook, reveals the sheet tabs, and shows all objects.
  5218.  
  5219.     {Notebook.Display "No,No,Yes,Show All"}
  5220.  
  5221.     Related topics
  5222.  
  5223. {Notebook.Group_Mode On|Off}
  5224.  
  5225. Description
  5226.  
  5227. {Notebook.Group_Mode On|Off} activates or deactivates group mode. This command is equivalent to using the View  Group Mode command (or pressing Alt+F5).
  5228.  
  5229.     Related topics
  5230.  
  5231. {Notebook.Macro_Library Yes|No}
  5232.  
  5233. Description
  5234.  
  5235. {Notebook.Macro_Library Yes|No} is equivalent to options of the notebook property Macro Library. To make the active notebook a macro library, use Yes.
  5236.  
  5237.     Related topics
  5238.  
  5239. {Notebook.Palette<.Option>}
  5240.  
  5241. {Notebook.Palette<.Option>}    Equivalent to Format  Notebook...
  5242.  
  5243. {Notebook.Palette Color1,Color2,...,Color16}    ... Palette
  5244.  
  5245. {NoteBook.Palette.Color_n "RGB value"}    ... Palette
  5246.  
  5247. {NoteBook.Palette.Color_n.RGB value}    ... Palette  Edit Color
  5248.  
  5249. {NoteBook.Palette.Color_n. RGB value }    ... Palette  Edit Color
  5250.  
  5251. {NoteBook.Palette.Color_n. RGB value }    ... Palette  Edit Color
  5252.  
  5253. Description
  5254.  
  5255. {Notebook.Palette.Option} is equivalent to the notebook property Palette, which lets you set the colors of the active notebook. The arguments of {Notebook.Palette} (Color1 through Color16) each have three parts, separated by commas: RedValue, GreenValue, and BlueValue. Each part is a number from 0 to 255. You can also edit a part individually (see the second example).
  5256.  
  5257. Example
  5258.  
  5259. {Notebook.Palette.Color_3 "255,0,255"} sets the third color on the notebook palette to violet (Red 255, Blue 255).
  5260.  
  5261. {Notebook.Palette.Color_5.Blue "135"} sets the amount of blue in the fifth color to 135.
  5262.  
  5263.     Related topics
  5264.  
  5265. {Notebook.Password Password}
  5266.  
  5267. Description
  5268.  
  5269. {Notebook.Password Password} sets the password of the active notebook. The next save operation encrypts the file on disk.
  5270.  
  5271. Tips
  5272.  
  5273. ¿    Before specifying a password, set the password level using {Notebook.Password_Level}.
  5274.  
  5275.     Related topics
  5276.  
  5277. {Notebook.Password_Level None|Low|Medium|High}
  5278.  
  5279. Description
  5280.  
  5281. {Notebook.Password_Level} sets the password level of the active notebook. If you specify a password level of Low, Medium, or High, you must also specify a password using {Notebook.Password}.
  5282.  
  5283.     Related topics
  5284.  
  5285. {Notebook.Recalc_Settings "Mode, Order, Iterations, , <AuditErrors?(0|1)>"}
  5286.  
  5287. Description
  5288.  
  5289. {Notebook.Recalc_Settings} is equivalent to options of the notebook property Recalc Settings. This command equivalent sets the recalculation options of the active notebook. Mode options are "Automatic", "Background", and "Manual". Order can be "Column-wise", "Row-wise", or "Natural". Iterations specifies the number of times formulas are recalculated before calculation is considered complete (relevant only if Order is changed, or if you use circular references).
  5290.  
  5291. To highlight the source of error for each cell containing NA or ERR in the active notebook, set the optional argument AuditErrors? to 1.
  5292.  
  5293.     Related topics
  5294.  
  5295. {Notebook.Summary.Option}
  5296.  
  5297. Command Equivalent    Equivalent to File  Properties...
  5298.  
  5299. {Notebook.Summary.Title Title }    Title
  5300.  
  5301. {Notebook.Summary.Subject Subject}    Subject
  5302.  
  5303. {Notebook.Summary.Author Author}    Author
  5304.  
  5305. {Notebook.Summary.Keywords Keywords}    Keywords
  5306.  
  5307. {Notebook.Summary.Comments Comments}    Comments
  5308.  
  5309. Description
  5310.  
  5311. {Notebook.Summary.Option} is equivalent to File  Properties, which displays summary information about the current notebook.
  5312.  
  5313. You can use the following options with @COMMAND to get information about the notebook.
  5314.  
  5315. {Notebook.Statistics.Created}
  5316.  
  5317. {Notebook.Statistics.Directory}
  5318.  
  5319. {Notebook.Statistics.FileName}
  5320.  
  5321. {Notebook.Statistics.Last_Saved}
  5322.  
  5323. {Notebook.Statistics.Last_Saved_By}
  5324.  
  5325. {Notebook.Statistics.Revision_Number}
  5326.  
  5327. {Notebook.System Yes|No}
  5328.  
  5329. Description
  5330.  
  5331. {Notebook.System Yes|No} makes the active notebook a system notebook.
  5332.  
  5333.     Related topics
  5334.  
  5335. {Notebook.Zoom_Factor 10-400}
  5336.  
  5337. Description
  5338.  
  5339. {Notebook.Zoom_Factor} is equivalent to options of the notebook property Zoom Factor, which sets the zoom factor of the active notebook (from 10% to 400%). This setting is for display only and does not affect printed output.
  5340.  
  5341.     Related topics
  5342.  
  5343. {NUMOFF} and {NUMON}
  5344.  
  5345. Description
  5346.  
  5347. {NUMOFF} and {NUMON} are equivalent to Num Lock off and Num Lock on, respectively.
  5348.  
  5349.     Related topics
  5350.  
  5351. {OBJECTSPAGEGOTO}
  5352.  
  5353. Description
  5354.  
  5355. {OBJECTSPAGEGOTO} displays the Objects sheet of the active notebook and is equivalent to View  Objects sheet (or pressing Shift+F5 when a spreadsheet sheet is active). When the Objects sheet is active, you can use {SELECTOBJECT} to select icons, and other object commands to manipulate them.
  5356.  
  5357. You can use {SELECTBLOCK} to move from the Objects sheet to a spreadsheet sheet.
  5358.  
  5359.     Related topics
  5360.  
  5361. {OLE.Option}
  5362.  
  5363. Command equivalent    Equivalent to...
  5364.  
  5365. {OLE.ActivateAs ObjectType}    Edit  <OLE Object>  Convert  Activate As
  5366.  
  5367. {OLE.AutomaticResize 0|1}    OLE Object properties  Automatic Resizing
  5368.  
  5369. {OLE.AutomaticUpdate 0|1}    OLE Object properites  Automatic Update
  5370.  
  5371. {OLE.Change_Link FileName}    Edit  <OLE Object>  Change Link
  5372.  
  5373. {OLE.Change_To_Picture}    Edit  <OLE Object>  Convert (to picture object)
  5374.  
  5375. {OLE.Convert ObjectType}    Edit  <OLE Object>  Convert
  5376.  
  5377. {OLE.DisplayAsIcon 0|1}    Edit  <OLE Object>  Convert  Display As Icon
  5378.  
  5379. {OLE.DoVerb Action}    Edit  <OLE Object>  Play, Edit, or Open
  5380.  
  5381. {OLE.OpenEdit}    Alt+Double-click an OLE object to open it in the server application (instead of editing it in place)
  5382.  
  5383. {OLE.Update}    Edit  <OLE Object>  Update Link
  5384.  
  5385. Description
  5386.  
  5387. {OLE.Option} is equivalent to Edit  <OLE Object> commands and to some options in the Object Inspector menus of OLE objects. Each command affects the selected OLE object. The type of OLE object determines what command equivalents affect it:
  5388.  
  5389. OLE type    Commands
  5390.  
  5391. Embedded    {OLE.DoVerb}, {OLE.Convert}, {OLE.Change_To_Picture}, {OLE.DisplayAsIcon}, {OLE.ActivateAs}
  5392.  
  5393. Linked    {OLE.DoVerb}, {OLE.Change_Link}, {OLE.Update}, {OLE.Convert}, {OLE.Change_To_Picture}, {OLE.DisplayAsIcon}, and {OLE.ActivateAs}
  5394.  
  5395. Example
  5396.  
  5397. This macro selects an OLE object named Embedded1, lets the user edit the data (in the OLE server), and then converts the object into a picture (disabling the OLE link).
  5398.  
  5399. {SELECTFLOAT Embedded1}
  5400.  
  5401. {OLE.DoVerb Edit}
  5402.  
  5403. {OLE.Change_To_Picture}
  5404.  
  5405.     Related topics
  5406.  
  5407. {ONERROR}
  5408.  
  5409. Syntax
  5410.  
  5411. {ONERROR BranchLocation, <MessageLocation>, <ErrorLocation>}
  5412.  
  5413. Description
  5414.  
  5415. Normally, if an error occurs during macro execution, the macro ends and you see an error message. {ONERROR} tells Corel Quattro Pro to branch to a different location (BranchLocation) if an error is encountered and store the error message in MessageLocation for future reference. Corel Quattro Pro stores the location of the error in ErrorLocation. MessageLocation and ErrorLocation are optional. If MessageLocation is omitted, no error message will be displayed or stored.
  5416.  
  5417. Only one {ONERROR} command can be in effect at a time, so each time it is called, the most recent {ONERROR} replaces the previous one. If an error occurs, the {ONERROR} state is "used up" and must be redeclared. It is best to declare {ONERROR} at the very beginning of your macro, or at least before any procedure is likely to result in an error.
  5418.  
  5419. In general, {ONERROR} will not capture macro programming errors, such as an incorrect sequence of commands, or an attempt to call a nonexisting subroutine. Nor will it detect syntax errors within a macro itself, such as an error resulting from the incorrect use of a macro keyword.
  5420.  
  5421. Typical errors that {ONERROR} detects include
  5422.  
  5423. ¿    disk errors, such as a disk drive door left open, a full disk, or failure to find a file of a given name
  5424.  
  5425. ¿    attempts to copy to a protected cell when a notebook's protection property is enabled
  5426.  
  5427. ¿    attempts to insert a row that would push a nonblank cell off the bottom of the notebook
  5428.  
  5429. Example
  5430.  
  5431. The following macro uses {ONERROR} by first deliberately causing an error (trying to insert a row that would push text off the bottom of the notebook), and then beeps when that error occurs.
  5432.  
  5433. \G    {ONERROR _on_err,err_msg,err_loc}
  5434.  
  5435.         {EditGoto A8192}
  5436.  
  5437.         {PUTCELL "This is the end"}
  5438.  
  5439.         {UP}
  5440.  
  5441.         {BlockInsert.Rows C(0)R(0), "Entire"}
  5442.  
  5443.  
  5444.  
  5445. _on_err    {BEEP 5}
  5446.  
  5447. err_msg
  5448.  
  5449. err_loc
  5450.  
  5451. Parameters
  5452.  
  5453. Parameter    Description
  5454.  
  5455. BranchLocation    first cell of the macro to run in case of an error
  5456.  
  5457. MessageLocation    cell in which to store any error message (optional)
  5458.  
  5459. ErrorLocation    cell in which to store the address of the cell containing the macro error (optional)
  5460.  
  5461.     Related topics
  5462.  
  5463. {OnlineService}
  5464.  
  5465. Syntax
  5466.  
  5467. {OnlineService ServiceName;Arguments}
  5468.  
  5469. Description
  5470.  
  5471. Used to launches internet URL address from a QuickButton. Equivalent to Insert  QuickButton  Button Properties  Link to URL. (Also used when clicking Help  Corel Web Site.)
  5472.  
  5473. Example
  5474.  
  5475. {OnlineService Internet,"http://www.corel.com/products/wordperfect/cqp8/index.htm"}
  5476.  
  5477. Parameters
  5478.  
  5479. Parameter    Description
  5480.  
  5481. ServiceName    A string indicating the type of online service to use.
  5482.  
  5483. Arguments    A string indicating the command-line to pass to the service.
  5484.  
  5485. {OPEN}
  5486.  
  5487. Syntax
  5488.  
  5489. {OPEN Filename,AccessMode}
  5490.  
  5491. Description
  5492.  
  5493. {OPEN} establishes a connection to Filename so you can use other file-access macro commands ({READ}, {WRITE}, and so on) on it. There are five different access modes:
  5494.  
  5495. R (Read-Only)    Allows only reading from this file, ensuring no changes are made to it. {WRITE} and {WRITELN} cannot be used with a file opened as read-only.
  5496.  
  5497. M (Modify)    Opens an existing file for modification. All reading and writing commands can be used with a file opened for modification. You can also use this access mode to open a stream to a communications port (for example, "COM1") or a printer port (for example, "LPT1").
  5498.  
  5499. W (Write)    Opens a new file with the name given in {OPEN}. If a file already exists with that name, the existing file is erased. All reading and writing commands can be used with a file opened for writing.
  5500.  
  5501. A (Append)    Opens an existing file for modification. Allows writing to the selected file only, and positions the file pointer at the end of the file.
  5502.  
  5503. L (Locate)    Opens and closes a file to locate it.
  5504.  
  5505. Filename's full name and access path must be given, and the entire name must be in quotes. For instance, to open and modify the file DATA.TXT in the subdirectory called FILES on drive C, use the command {OPEN "C:\FILES\DATA.TXT",M}. If any part of the access path or file name is left out, the file might not be found.
  5506.  
  5507. Although {OPEN} can provide access to any type of file (including .WB3 spreadsheet files), Corel Quattro Pro's file-access macro commands are designed to work only with plain text files. Using these commands with any other file type is not recommended and can result in corruption of that file. Make a backup copy of your file before using {OPEN} on it.
  5508.  
  5509. Once {OPEN} runs successfully, Corel Quattro Pro skips to the next row of the macro and continues executing instructions there. {OPEN Filename,R}, {OPEN Filename,M}, and {OPEN Filename,A} fail if the file is not found. {OPEN Filename,W} fails if the supplied access path or file name is invalid. If {OPEN} fails, Corel Quattro Pro continues executing commands in the same cell as the {OPEN} command. (See the third macro below for an example.) You can use {ONERROR} to trap some errors that occur in {OPEN}.
  5510.  
  5511. Example
  5512.  
  5513. The following example opens the file named MYDATA.TXT for reading. If the file does not exist in the default data directory, the command fails.
  5514.  
  5515.     {OPEN "MYDATA.TXT",R}
  5516.  
  5517. The next example creates a file MYDATA.TXT on drive A for writing. If there is already a file on drive A with that name, it is erased. This command will fail only if there is no disk in drive A.
  5518.  
  5519.     {OPEN "A:MYDATA.TXT",W}
  5520.  
  5521. The last example demonstrates how to do error trapping in an {OPEN} macro. When you press Ctrl+H, Corel Quattro Pro attempts to open the file C:\MYDIR\DATA.TXT. If that succeeds, the macro stops, since there are no more commands in the row below. If {OPEN} fails (meaning the file does not exist), the adjacent {BRANCH} runs. The subroutine _try_again then attempts to create the file. If that succeeds, the macro restarts, since {OPEN} should succeed now that the file has been created. If _try_again fails, probably an invalid directory path was given. Therefore, the adjacent {BRANCH} goes to _bad_dir, which displays a relevant error message with pertinent instructions.
  5522.  
  5523. \H    {OPEN "C:\MYDIR\DATA.TXT",M}{BRANCH _try_again}
  5524.  
  5525.     {CLOSE}
  5526.  
  5527.     
  5528.  
  5529. _try_again    {OPEN "C:\MYDIR\DATA.TXT",W}{BRANCH _bad_dir}
  5530.  
  5531.     {CLOSE}
  5532.  
  5533.     {BRANCH \H}
  5534.  
  5535.     
  5536.  
  5537. _bad_dir    {EditGoto err_loc}{BEEP 4}
  5538.  
  5539.     {PUTCELL "The directory C:\MYDIR\ does not exist."}
  5540.  
  5541.     {DOWN}
  5542.  
  5543.     {PUTCELL "Create it, then try again."}
  5544.  
  5545.     {DOWN}
  5546.  
  5547. err_loc    
  5548.  
  5549. Parameters
  5550.  
  5551. Parameter    Description
  5552.  
  5553. Filename    file name
  5554.  
  5555. AccessMode    R, M, W, A, or L
  5556.  
  5557.     Related topics
  5558.  
  5559. {Optimizer.Option}
  5560.  
  5561. Command equivalent    Equivalent to Tools  Numeric Tools  Optimizer...
  5562.  
  5563. {Optimizer.Add Constraint#, Cell, <=|>=|=|Integer, Constant}    ... Constraints  Add
  5564.  
  5565. {Optimizer.Answer_Reporting Cell}    ... Options  Reporting  Answer Report Cells
  5566.  
  5567. {Optimizer.Auto-scale 0|1}    ... Options  Automatic Scaling
  5568.  
  5569. {Optimizer.Change Constraint#, Cell, <=|>=|=|Integer, Constant}    ... Constraints  Change
  5570.  
  5571. {Optimizer.Delete Constraint#}    ... Constraints  Delete
  5572.  
  5573. {Optimizer.Derivatives Central|Forward}    ... Options  Derivatives
  5574.  
  5575. {Optimizer.Detail_Reporting Cell}    ... Options  Reporting  Detail Report Cells
  5576.  
  5577. {Optimizer.Estimates Quadratic|Tangent}    ... Options  Estimates
  5578.  
  5579. {Optimizer.Linear 0|1}    ... Optimizer  Options  Assume Linear
  5580.  
  5581. {Optimizer.Load_Model}    ... Options  Load Model
  5582.  
  5583. {Optimizer.Max_Iters Value}    ... Options  Max Iterations
  5584.  
  5585. {Optimizer.Max_Time Value}    ... Options  Max Time
  5586.  
  5587. {Optimizer.Model_Cell Cell}    ... Options  Load Model, Save Model
  5588.  
  5589. {Optimizer.Precision Value}    ... Options  Precision
  5590.  
  5591. {Optimizer.Reset}    ... Reset
  5592.  
  5593. {Optimizer.Save_Model}    ... Options  Save Model
  5594.  
  5595. {Optimizer.Search Conjugate|Newton}    ... Options  Search
  5596.  
  5597. {Optimizer.Show_Iters 0|1}    ... Options  Show Iteration Results
  5598.  
  5599. {Optimizer.Solution_Cell SolutionCell}    ... Goal  Solution Cell
  5600.  
  5601. {Optimizer.Solution_Goal Max|Min|None|Target Value}    ... Goal
  5602.  
  5603. {Optimizer.Solve}    ... Solve
  5604.  
  5605. {Optimizer.Target_Value Value}    ... Target Value
  5606.  
  5607. {Optimizer.Tolerance Value}    ... Options  Tolerance
  5608.  
  5609. {Optimizer.Variable_Cells Cell(s)}    ... Variable Cells
  5610.  
  5611. Description
  5612.  
  5613. {Optimizer.Option} is the command equivalent for Tools  Numeric Tools  Optimizer. It performs goal-seeking calculations and solves sets of linear and nonlinear equations and inequalities.
  5614.  
  5615. Constraint# refers to a constraint's order in the constraint list. Constant may be a value or a cell containing a value. The Value for Target_Value may also be a value or a cell. Use {Optimizer.Solve} after the other commands to calculate the solution.
  5616.  
  5617. To save an Optimizer model, use {Optimizer.Model_Cell Cell} {Optimizer.Save_Model}. To load a model, use {Optimizer.Model_Cell Cell}{Optimizer.Load_Model}
  5618.  
  5619. You can use {Optimizer?} or {Optimizer!} to display the Optimizer dialog box. {Optimizer?} lets the user manipulate the dialog box, whereas {Optimizer!} relies on the macro to manipulate it.
  5620.  
  5621. Example
  5622.  
  5623. The following macro sets up an Optimizer problem designed to maximize the formula in D6 by varying cells B8..B10. Seven constraints limit the solution. All options have been changed from their default settings. T2 and G13 are the upper-left cells of the report selections.
  5624.  
  5625. {Optimizer.Solution_cell A:D6}
  5626.  
  5627. {Optimizer.Solution_goal Max}
  5628.  
  5629. {Optimizer.Variable_cells A:B8..A:B10}
  5630.  
  5631. {Optimizer.Add 1,"A:D8..A:D8",<=,"1000"}
  5632.  
  5633. {Optimizer.Add 2,"A:B8..A:B8",>=,"100"}
  5634.  
  5635. {Optimizer.Add 3,"A:B9..A:B9",>=,"100"}
  5636.  
  5637. {Optimizer.Add 4,"A:B10..A:B10",>=,"100"}
  5638.  
  5639. {Optimizer.Add 5,"A:D8..A:D8",>=,"500"}
  5640.  
  5641. {Optimizer.Add 6,"A:D9..A:D9",<=,"900"}
  5642.  
  5643. {Optimizer.Add 7,"A:D10..A:D10",<=,"110000"}
  5644.  
  5645. {Optimizer.Max_Time 50}
  5646.  
  5647. {Optimizer.Max_Iters 300}
  5648.  
  5649. {Optimizer.Precision 5E-05}
  5650.  
  5651. {Optimizer.Linear 1}
  5652.  
  5653. {Optimizer.Show_Iters 1}
  5654.  
  5655. {Optimizer.Estimates Quadratic}
  5656.  
  5657. {Optimizer.Derivatives Central}
  5658.  
  5659. {Optimizer.Search Conjugate}
  5660.  
  5661. {Optimizer.Detail_Reporting A:T2..A:T2}
  5662.  
  5663. {Optimizer.Answer_Reporting A:G13..A:G13}
  5664.  
  5665. {Optimizer.Solve}
  5666.  
  5667.     Related topics
  5668.  
  5669. {Order.Option}
  5670.  
  5671. Command equivalent    Equivalent to ...
  5672.  
  5673. {Order.Backward}    Format  Object Order  Send Backward
  5674.  
  5675. {Order.Forward}    Format  Object Order  Bring Forward
  5676.  
  5677. {Order.ToBack}    Object Order  Send to Back
  5678.  
  5679. {Order.ToFront}    Format  Object Order  Bring to Front
  5680.  
  5681. Description
  5682.  
  5683. {Order.Option} is equivalent to Format  Object Order, which reorders overlapping objects in a chart or dialog window. Each command affects selected objects in the active window.
  5684.  
  5685.     Related topics
  5686.  
  5687. {Outline.Option}
  5688.  
  5689. Description
  5690.  
  5691. {Outline.AutoOutline}    Creates an outline automatically on the current pane/page. Equivalent to Tools  Outline  Auto Outline.
  5692.  
  5693. {Outline.Group}    Groups rows or columns. If the cells are not an entire row or column, whichever one contains the most elements (rows or columns) will be grouped. Equivalent to Tools  Outline  Group.
  5694.  
  5695. {Outline.Ungroup}    Ungroups rows or columns. If the cells are not an entire row or column, whichever one contains the most elements (rows or columns) will be ungrouped. If the cells do not span the ENTIRE group, only those rows/columns that are inside the cells will be ungrouped. Equivalent to Tools  Outline  Ungroup.
  5696.  
  5697. {Outline.UngroupAll}    Destroys all groups on the current pane/page. Equivalent to Tools  Outline  Ungroup All.
  5698.  
  5699. {Outline.Expand}    Expands a collapsed group of rows or columns. If the cells are not an entire row or column and are inside a group, whichever one contains the most elements (rows or columns) and is inside a current group, will be expanded. Equivalent to Tools  Outline  Expand Group.
  5700.  
  5701. {Outline.Collapse}    Collapses an expanded group of rows or columns. If the cells are not an entire row or column and are inside a group, whichever one contains the most elements (rows or columns) and is inside a current group will be collapsed. Equivalent to Tools  Outline  Collapse Group.
  5702.  
  5703. {Outline.Hide 0|1}    Either hides or shows the outline in the current pane/page. Equivalent to Tools  Outline  Show Outline.
  5704.  
  5705. {Outline.Summary Above|Below, Left|Right}    Sets whether the summary will be above or below for row-based groups, and left or right for column based groups. Equivalent to Tools  Outline  Options.
  5706.  
  5707. {Outline.ToLevel Rows|Columns, Level}    Collapses or expands a group or rows or columns at a specific level. Equivalent to clicking  in the panel on the side or top of the notebook.
  5708.  
  5709.  
  5710.  
  5711. {Page.Property}
  5712.  
  5713. Description
  5714.  
  5715. {Page.Property} is the command equivalent for Format  Sheet. Each command affects the active sheet(s). The next table lists the possible settings for Property. To display a property description with syntax, choose the property in the following list:
  5716.  
  5717. Property    Format  Sheet option
  5718.  
  5719. Conditional_Color    Conditional Color
  5720.  
  5721. Default_Width    Default Width
  5722.  
  5723. Display    Display
  5724.  
  5725. Name    Name
  5726.  
  5727. Protection    Protection
  5728.  
  5729. Tab_Color    Tab Color
  5730.  
  5731. Zoom_Factor    Zoom Factor
  5732.  
  5733. You can use {Page?} or {Page!} to display the Active Sheet dialog box. {Page?} lets the user manipulate the dialog box, whereas {Page!} relies on the macro to manipulate it.
  5734.  
  5735.     Related topics
  5736.  
  5737. {Page.Conditional_Color<.Option>}
  5738.  
  5739. {Page.Conditional_Color<.Option>}    Equivalent to Format  Sheet...
  5740.  
  5741. {Page.Conditional_Color "Enable, SmallVal, GreatVal, BelowColor, NormalColor, AboveColor, ERRColor"}    ... Conditional Color
  5742.  
  5743. {Page.Conditional_Color.Above_Normal_Color
  5744. 0-15}    ... Conditional Color  Above Normal Color
  5745.  
  5746. {Page.Conditional_Color.Below_Normal_Color
  5747. 0-15}    ... Conditional Color  Below Normal Color
  5748.  
  5749. {Page.Conditional_Color.Enable Yes|No}    ... Conditional Color  Enable
  5750.  
  5751. {Page.Conditional_Color.ERR_Color 0-15}    ... Conditional Color  ERR Color
  5752.  
  5753. {Page.Conditional_Color.Greatest_Normal_Value Value}    ... Conditional Color  Greatest Normal Value
  5754.  
  5755. {Page.Conditional_Color.Normal_Color 0-15}    ... Conditional Color  Normal Color
  5756.  
  5757. {Page.Conditional_Color.Smallest_Normal_Value Value}    ... Conditional Color  Smallest Normal Value
  5758.  
  5759. Description
  5760.  
  5761. {Page.Conditional_Color.Option} is equivalent to thesheet property Conditional Color, which makes cells change text color (based on the value in the cell). Each color specified in these commands is a number from 0 to 15, corresponding to which color of the notebook palette to use (1 through 16).
  5762.  
  5763. Example
  5764.  
  5765. The following macro makes negative values red, values greater than 10,000 green, ERR cells cyan, and positive values less than 10,000 black (assuming the default notebook palette is used).
  5766.  
  5767.     {Page.Conditional_Color "Yes,0,10000,4,3,5,7"}
  5768.  
  5769.     Related topics
  5770.  
  5771. {Page.Default_Width Width}
  5772.  
  5773. Description
  5774.  
  5775. {Page.Default_Width Width} is equivalent to the sheet property Default Width. It sets the default column width of the active sheet. Width is the new column width in twips (a twip is 1/1440th of an inch).
  5776.  
  5777. Example
  5778.  
  5779. {Page.Default_Width "720"} makes the default column width a half inch (720 twips).
  5780.  
  5781.     Related topics
  5782.  
  5783. {Page.Display<.Option>}
  5784.  
  5785. {Page.Display<.Option>}    Equivalent to Format  Sheet...
  5786.  
  5787. {Page.Display DisplayZeros?(Yes|No), RowBorders?(Yes|No), ColumnBorders?(Yes|No), HorzGridLines?(Yes|No), VertGridLines?(Yes|No)}    ... Display
  5788.  
  5789. {Page.Display.Borders "RowBorders?(Yes|No), ColumnBorders?(Yes|No)}    ... Display  Border Options
  5790.  
  5791. {Page.Display.Borders.Column_Borders Yes|No}    ... Display  Border Options  Column Borders
  5792.  
  5793. {Page.Display.Borders.Row_Borders Yes|No}    ... Display  Border Options  Row Borders
  5794.  
  5795. {Page.Display.Display_Zeros Yes|No}    ... Display  Display Zeros
  5796.  
  5797. {Page.Display.Grid_Lines "HorizGridLines?(Yes|No), VertGridLines?(Yes|No)"}    ... Display  Grid Lines
  5798.  
  5799. {Page.Display.Grid_Lines.Horizontal Yes|No}    ... Display  Grid Lines  Horizontal
  5800.  
  5801. {Page.Display.Grid_Lines.Vertical Yes|No}    ... Display  Grid Lines  Vertical
  5802.  
  5803. Description
  5804.  
  5805. {Page.Display.Option} is equivalent to the sheet property Display, which sets the display of zeros, borders, and grid lines. The arguments of {Page.Display} (which sets all options of the Display property in one command) use the same syntax as those in the {Page.Display.Option} commands. All {Page.Display} arguments take Yes|No string values.
  5806.  
  5807. Example
  5808.  
  5809. The following macro displays zero values on the sheet, but hides borders and grid lines.
  5810.  
  5811.     {Page.Display "Yes,No,No,No,No"}
  5812.  
  5813.     Related topics
  5814.  
  5815. {Page.Name NewName}
  5816.  
  5817. Description
  5818.  
  5819. {Page.Name NewName} is equivalent to the sheet property Name. It sets the name of the active sheet to NewName.
  5820.  
  5821.     Related topics
  5822.  
  5823. {Page.Protection<.Option>}}
  5824.  
  5825. {Page.Protection<.Option>}    Equivalent to Format  Sheet...
  5826.  
  5827. {Page.Protection "CellLocking?(Yes|No), ObjectLocking?(Yes|No)"}    ... Protection
  5828.  
  5829. {Page.Protection.Cells Yes|No}    ... Protection  Enable Cell Locking
  5830.  
  5831. {Page.Protection.Objects Yes|No}    ... Protection  Enable Object Locking
  5832.  
  5833. Description
  5834.  
  5835. {Page.Protection} is equivalent to the sheet property Protection. It enables or disables cell and object protection on the active sheet.
  5836.  
  5837.     Related topics
  5838.  
  5839. {Page.Tab_Color "Red, Green, Blue, UseRGB?"}
  5840.  
  5841. Description
  5842.  
  5843. {Page.Tab_Color} changes the tab color of the active sheet; Red, Green, and Blue are integers from 0 to 255.
  5844.  
  5845.     Related topics
  5846.  
  5847. {Page.Zoom_Factor 10-400}
  5848.  
  5849. Description
  5850.  
  5851. {Page.Zoom_Factor} is equivalent to the sheet property Zoom Factor (and the View  Zoom command), which sets the zoom factor of the active sheet (from 10% to 400%). This setting is for display only and does not affect printed output.
  5852.  
  5853.     Related topics
  5854.  
  5855. {PageViewGoto}
  5856.  
  5857. Description
  5858.  
  5859. Switches from either the Objects Sheet or the sheet in Draft mode to Page View. Equivalent to View  Page.
  5860.  
  5861.     Related topics
  5862.  
  5863. {PANELOFF}
  5864.  
  5865. Description
  5866.  
  5867. {PANELOFF} disables normal display of menus and prompts during macro execution when Corel Quattro Pro's Macro Suppress-Redraw property is set to None. It can significantly speed up execution for macros that use keystrokes to walk through menus, since it saves Corel Quattro Pro the time normally needed to draw its menus on the screen. Its effect is canceled by Corel Quattro Pro once the macro stops executing, so you need not worry about locking macro users out of the menus. To cancel its effect during macro execution, use {PANELON}.
  5868.  
  5869. {PANELOFF} does not disable menus created by {MENUCALL} and {MENUBRANCH} or subroutine calls that use menus or dialog boxes. Use this command with {WINDOWSOFF} to completely disable normal screen updating.
  5870.  
  5871.     Related topics
  5872.  
  5873. {PANELON}
  5874.  
  5875. Description
  5876.  
  5877. {PANELON} enables display of menus and prompts that have been disabled with {PANELOFF}. {PANELON} has no effect if used without an accompanying {PANELOFF}. Therefore, it can be used repeatedly with no ill effects.
  5878.  
  5879. Use this command with {WINDOWSON} to completely restore normal screen updating.
  5880.  
  5881.     Related topics
  5882.  
  5883. {ParseExpert.Option}
  5884.  
  5885. Description
  5886.  
  5887. The following commands correspond to the QuickColumns features accessed through Data  Data Tools  QuickColumns.
  5888.  
  5889. Command equivalent    Equivalent to Data  Data Tools  QuickColumns...
  5890.  
  5891. {ParseExpert.ApplyFormatting 0|1}    Equivalent to Tools  Data Tools  QuickColumns  Options  Apply Formatting to spreadsheet.
  5892.  
  5893. {ParseExpert.ColumnWidths 0|1}    Equivalent to Tools  Data Tools  QuickColumns  Options  Set spreadsheet column widths.
  5894.  
  5895. {ParseExpert.ConsecutiveAsOne 0|1}    Equivalent to Tools  Data Tools  QuickColumns  Options  Treat consecutive delimiters as one when Data Type is set to "Delimited".
  5896.  
  5897. {ParseExpert.DataType Fixed|Delimited}    Equivalent to Tools  Data Tools  QuickColumns  Options  Data Type.
  5898.  
  5899. {ParseExpert.DelimiterType Space|Tab|Comma|CommaQuote|Other}    Equivalent to Tools  Data Tools  QuickColumns  Options  Delimited when Data Type is set to "Delimited"
  5900.  
  5901. {ParseExpert.Go}    Equivalent to Tools  Data Tools  QuickColumns  Parse.
  5902.  
  5903. {ParseExpert.IgnoreNonConformingRows 0|1}    Equivalent to Tools  Data Tools  QuickColumns  Options  Ignore nonconforming rows when Data Type is set to "Fixed".
  5904.  
  5905. {ParseExpert.InputBlock InputBlock}    Equivalent to Tools  Data Tools  QuickColumns  Source  Block when InputType is set to Block instead of File.
  5906.  
  5907. {ParseExpert.InputFile Filename}    Equivalent to Tools  Data Tools  QuickColumns  Filename when InputType is set to File instead of Block.
  5908.  
  5909. {ParseExpert.InputType Block|File}    Equivalent to Tools  Data Tools  QuickColumns  Source.
  5910.  
  5911. {ParseExpert.JoinBrokenLines 0|1}    Equivalent to Tools  Data Tools  QuickColumns  Options  Join broken lines at, when Data Type is set to "Fixed".
  5912.  
  5913. {ParseExpert.LineLength Number}    Equivalent to Tools  Data Tools  QuickColumns  Options  Join broken lines at ??? lines, when Data Type is set to "Fixed".
  5914.  
  5915. {ParseExpert.LoadSettings}    Equivalent to Tools  Data Tools  QuickColumns  Load Settings.
  5916.  
  5917. {ParseExpert.OtherDelimiter DelimiterChar}    Equivalent to Tools  Data Tools  QuickColumns  Options  Other when Data Type is set to "Delimited".
  5918.  
  5919. {ParseExpert.OutputBlock OutputBlock}    Equivalent to Tools  Data Tools  QuickColumns  Destination  Block.
  5920.  
  5921. {ParseExpert.PageLength Number}    Equivalent to Tools  Data Tools  QuickColumns  Options  Set page length to ??? lines.
  5922.  
  5923. {ParseExpert.PageLengthEnabled 0|1}    Equivalent to Tools  Data Tools  QuickColumns  Options  Set page length to.
  5924.  
  5925. {ParseExpert.Restore}    Equivalent to Tools  Data Tools  QuickColumns  Restore.
  5926.  
  5927. {ParseExpert.SaveSettings}    Equivalent to Tools  Data Tools  QuickColumns  Save Settings.
  5928.  
  5929. {ParseExpert.SettingsFile Filename}    Equivalent to Tools  Data Tools  QuickColumns  Save Settings - the file itself..
  5930.  
  5931. {ParseExpert.Skip1stChar 0|1}    Equivalent to Tools  Data Tools  QuickColumns  Options  Skip 1st Character when Data Type is set to "Fixed".
  5932.  
  5933. {ParseExpert.TextQualifier SingleQuote|DoubleQuote|None}    Equivalent to Tools  Data Tools  QuickColumns  Options  Text Qualifier when Data Type is set to "Delimited".
  5934.  
  5935. {ParseExpert.ValueQualifier SingleQuote|DoubleQuote|None}    Equivalent to Tools  Data Tools  QuickColumns  Options  Value Qualifier when Data Type is set to "Delimited".
  5936.  
  5937. {Parse.Option}
  5938.  
  5939. Command    Description
  5940.  
  5941. {Parse.Create}    Use to build the format line.
  5942.  
  5943. {Parse.EditLine}    Lets you specify a new format line.
  5944.  
  5945. {Parse.Go}    Use after setting up input and output cells and creating a format line.
  5946.  
  5947. {Parse.Input Block}    Indicates the cells to parse.
  5948.  
  5949. {Parse.Output Block}    Indicates the cells to hold parsed data.
  5950.  
  5951. {Parse.Reset}    Clears previous settings.
  5952.  
  5953. Description
  5954.  
  5955. {Parse.Option} breaks long text strings into data fields according to a format line. This command is the equivalent of choosing Quattro Pro--DOS in Tools  Settings  Macro  Slash Key, then clicking /  Tools  Parse.
  5956.  
  5957. {Parse.Create} and {Parse.EditLine} act on the active cells.
  5958.  
  5959. Example
  5960.  
  5961. The macro in the next figure selects text cells, builds a format line in the first line of the selected cells, identifies the format line and text as the parse input cells, specifies an output cells, and performs the parse:
  5962.  
  5963.     A    B    C    D    E    
  5964.  
  5965. 6    V>>>*L>>>>>*L>>>******L>>>>>>>>>>*L                    {SelectBlock A:A6..A:D7}
  5966.  
  5967. 7    1968,Davis,John,Harisburg,PA                    {Parse.Input A:A6..A:D7}
  5968.  
  5969. 8    1972,Lee,Elizabeth,New York,NY                    {Parse.Output A:A10}
  5970.  
  5971. 9                        {Parse.Create}
  5972.  
  5973. 10                        {Parse.Input A:A7..A:D8}
  5974.  
  5975. 11    1968    Davis,    John    Harrisburg,    PA    {Parse.Output A:A11}
  5976.  
  5977. 12    1972    Lee,    Elizabeth    New York,    NY    {Parse.Go}
  5978.  
  5979. To use {Parse.EditLine}, follow the macro with a {CLEAR} macro command, then the string for the new format line, and a {CR} macro, as shown in the following example:
  5980.  
  5981. {Parse.EditLine}{CLEAR}V>>>*L>>>>>>>>>>******L>>>>>>>>>>*L{CR}
  5982.  
  5983.     Related topics
  5984.  
  5985. {PasteFormat}
  5986.  
  5987. Syntax
  5988.  
  5989. {PasteFormat LinkType}
  5990.  
  5991. Description
  5992.  
  5993. {PasteFormat} is equivalent to Edit  Paste Special, which lets you paste data in a specific format (for example, an OLE object) into a notebook. Use LinkType to specify the paste format.
  5994.  
  5995. Example
  5996.  
  5997. {PasteFormat Bitmap} pastes the data in the Clipboard as a bitmap into the active notebook.
  5998.  
  5999. You can use {PasteFormat?} or {PasteFormat!} to display the Paste Special dialog box. {PasteSpecial?} lets the user manipulate the dialog box, whereas {PasteSpecial!} relies on the macro to manipulate it.
  6000.  
  6001. Parameters
  6002.  
  6003. Parameter    Description
  6004.  
  6005. LinkType    format to paste object as
  6006.  
  6007.     Related topics
  6008.  
  6009. {PasteLink}
  6010.  
  6011. Description
  6012.  
  6013. {PasteLink} is equivalent to using Edit  Paste Special to set up a DDE link to another application.
  6014.  
  6015.     Related topics
  6016.  
  6017. {PasteSpecial}
  6018.  
  6019. Syntax
  6020.  
  6021. {PasteSpecial <"Properties"|"","Formula Cells"|"", "Label cells"|"", "Number cells"|"", "Formula Values"|"", "Transpose"|"", "NoBlanks"|"", Cell_Comments >}
  6022.  
  6023. Description
  6024.  
  6025. {PasteSpecial} is equivalent to using Edit  Paste Special to paste certains aspects of Corel Quattro Pro data from the Clipboard.
  6026.  
  6027. You can use {PasteSpecial?} or {PasteSpecial!} to display the Paste Special dialog box. {PasteSpecial?} lets the user manipulate the dialog box, whereas {PasteSpecial!} relies on the macro to manipulate it.
  6028.  
  6029. Example
  6030.  
  6031. The following macro pastes properties, formula cells, and numbers from the Clipboard, and skips any blank cells.
  6032.  
  6033. {PasteSpecial Properties, Formula Cells,"",Number cells,"","",NoBlanks,""}
  6034.  
  6035. Parameters
  6036.  
  6037. Parameter    Description
  6038.  
  6039. Properties    Properties to paste properties from Clipboard; "" otherwise
  6040.  
  6041. Formula Cells    Formula cells to paste from Clipboard, "" otherwise
  6042.  
  6043. Number Cells    Number cells to paste from Clipboard, "" otherwise
  6044.  
  6045. Formula Values    Pastes formula cells as values, "" otherwise
  6046.  
  6047. Transpose    Switches the position of entries (data listed in columns is placed in rows and vice versa), "" otherwise
  6048.  
  6049. NoBlanks    Avoids pasting blank cells from Clipboard; "" otherwise
  6050.  
  6051. Cell_Comments    Pastes cell comments; "" otherwise
  6052.  
  6053.     Related topics
  6054.  
  6055. {PAUSEMACRO}
  6056.  
  6057. Description
  6058.  
  6059. {PAUSEMACRO} is used with {DODIALOG} or a command equivalent invoked with ! to pause the macro so that the user can "finish up" whatever dialog box is displaying. Once the user finishes using the dialog box (by choosing OK, or canceling it), macro execution resumes with any macro commands following the {PAUSEMACRO}.
  6060.  
  6061. Use {PAUSEMACRO} only when a dialog box is displaying, Corel Quattro Pro is in FIND mode (using Tools  Data Tools  Notebook Query), or Corel Quattro Pro is in INPUT mode (using {RestrictInput.Option}). Otherwise, the macro pauses indefinitely.
  6062.  
  6063. Example
  6064.  
  6065. The following macro displays the Edit  Copy Cells dialog box, sets the From edit field to A1, activates the To edit field, and then waits for the user to complete the copy operation. Once the user finishes the dialog box, the macro beeps and moves down a cell.
  6066.  
  6067. _copy_a1    {BlockCopy!}
  6068.  
  6069.         {ALT+F}
  6070.  
  6071.         A1
  6072.  
  6073.         {ALT+T}
  6074.  
  6075.         {PAUSEMACRO}
  6076.  
  6077.         {BEEP}{DOWN}
  6078.  
  6079.     Related topics
  6080.  
  6081. {PGDN} and {PGUP}
  6082.  
  6083. Syntax
  6084.  
  6085. {PGDN <Number>},{PGUP <Number>}
  6086.  
  6087. Description
  6088.  
  6089. {PGDN} and {PGUP} are equivalent to PgDn and PgUp, respectively. Use Number to specify how many times the operation is repeated; for example, {PGUP 7} is equivalent to pressing PgUp seven times.
  6090.  
  6091. Parameters
  6092.  
  6093. Parameter    Description
  6094.  
  6095. Number    any positive integer or address of a cell containing a positive integer (optional)
  6096.  
  6097.     Related topics
  6098.  
  6099. {PlayPerfectScript}
  6100.  
  6101. Syntax
  6102.  
  6103. {PlayPerfectScript Filename}
  6104.  
  6105. Description
  6106.  
  6107. {PlayPerfectScript} is the command equivalent for Tools  Macro  Play  PerfectScript.
  6108.  
  6109. Parameters
  6110.  
  6111. Parameter    Description
  6112.  
  6113. Filename    name of a PerfectScript macro file to run
  6114.  
  6115.     Related topics
  6116.  
  6117. {POKE}
  6118.  
  6119. Syntax
  6120.  
  6121. {POKE DDEChannel, Destination, DataToSend}
  6122.  
  6123. Description
  6124.  
  6125. {POKE} sends information to an application that supports Dynamic Data Exchange (DDE). This application is identified by DDEChannel. The type of application determines what Destination is; the destination could be cells in Excel or a bookmark in Word for Windows. DataToSend refers to cells containing the information to send. You must use the command {INITIATE} to open a channel of conversation before you can use {POKE} (this also determines the value of DDEChannel).
  6126.  
  6127. Example
  6128.  
  6129. This example starts a conversation with TASKLIST.OVD, which is a file open in ObjectVision. It sets the ObjectVision field Task to the label stored in new_task, and unchecks the Completed check box. Then the new task is inserted into the task list. The command block contains an ObjectVision command not available in Corel Quattro Pro:
  6130.  
  6131. dde_channel    10
  6132.  
  6133. command    [@INSERT("tasks")]
  6134.  
  6135. exec_result    0
  6136.  
  6137. new_task    Call Jim re: task priorities
  6138.  
  6139. task_status    No
  6140.  
  6141. _new_vision    {INITIATE "VISION","TASKLIST.OVD",dde_channel}
  6142.  
  6143.     {POKE dde_channel,"Task",new_task}
  6144.  
  6145.     {POKE dde_channel,"Completed",task_status}
  6146.  
  6147.     {EXECUTE dde_channel,+command,exec_result}
  6148.  
  6149. Parameters
  6150.  
  6151. Parameter    Description
  6152.  
  6153. DDEChannel    channel ID number of the application to send information to
  6154.  
  6155. Destination    location in the application that receives the information being sent
  6156.  
  6157. DataToSend    cells containing the information to send to the application
  6158.  
  6159.     Related topics
  6160.  
  6161. {Preview}
  6162.  
  6163. Description
  6164.  
  6165. {Preview} is equivalent to File  Print Preview, which lets you preview a printout onscreen.
  6166.  
  6167.     Related topics
  6168.  
  6169. {Print.Option}
  6170.  
  6171. Description
  6172.  
  6173. {Print.Option} is equivalent to the menu items in the following list. To display specific command equivalents, choose one of the following.
  6174.  
  6175. Command equivalents for...
  6176.  
  6177. File  Page Setup
  6178.  
  6179. File  Page Setup  Named Settings
  6180.  
  6181. File  Print
  6182.  
  6183. File  Page Setup  Options
  6184.  
  6185. The command equivalent {Print.PrintReset} resets print settings in all the dialog boxes displayed by these commands.
  6186.  
  6187. You can use {Print?} or {Print!} to display the Spreadsheet Print dialog box. {Print?} lets the user manipulate the dialog box, whereas {Print!} relies on the macro to manipulate it.
  6188.  
  6189. File  Page Setup  Named Settings Command Equivalents
  6190.  
  6191. File  Page Setup  Named Settings command equivalent    Equivalent to File  Page Setup  Named Settings...
  6192.  
  6193. {Print.Create NamedSetting}    ... Add,
  6194. ... Update
  6195.  
  6196. {Print.Delete NamedSetting}    ... Delete
  6197.  
  6198. {Print.Use NamedSetting}    ... Use
  6199.  
  6200. Description
  6201.  
  6202. These command equivalents are equivalent to File  Page Setup  Named Settings. NamedSetting is the named print setting to affect. To update an existing named setting, use {Print.Create}. {Print.Delete} removes a named setting from the active notebook. {Print.Use} sets the current print settings to those stored under the name.
  6203.  
  6204.     Related topics
  6205.  
  6206. File  Page Setup Command Equivalents
  6207.  
  6208. File  Page Setup command equivalent    Equivalent to File  Page Setup...
  6209.  
  6210. {Print.Options_Dialog}       Displays the Page Setup dialog.
  6211.  
  6212. {Print.Bottom_Margin Value}    ... Print Margins  Bottom
  6213.  
  6214. {Print.CreateFooter Yes|No}    ... Determines whether your print selection contains a footer.
  6215.  
  6216. {Print.CreateHeader Yes|No}    ... Determines whether your print block contains a header.
  6217.  
  6218. {Print.Footer FooterString}    ... Header/Footer  Footer
  6219.  
  6220. {Print.Footer_Margin Value}    ... Print Margins  Footer
  6221.  
  6222. {Print.Footers_Font "Typeface, PointSize, Bold(Yes|No), Italic(Yes|No), Underline(Yes|No), Strikeout(Yes|No)"}    ... Header/Footer  Footer Font
  6223.  
  6224. {Print.Header HeaderString}    ... Header/Footer  Header
  6225.  
  6226. {Print.Header_Margin Value}    ... Print Margins  Header
  6227.  
  6228. {Print.Headers_Font "Typeface, PointSize, Bold (Yes|No), Italic (Yes|No), Underline (Yes|No), Strikeout (Yes|No)"}    ... Header/Footer  Header Font
  6229.  
  6230. {Print.Left_Margin Value}    ... Print Margins  Left
  6231.  
  6232. {Print.PagesDown N}    ... Determines how many pages long a print selection will occupy.
  6233.  
  6234. {Print.PagesAcross N}    ... Determines how many pages wide a print selection will occupy.
  6235.  
  6236. {Print.Orientation Landscape|Portrait}    ... Paper Type  Portrait or Landscape
  6237.  
  6238. {Print.Page_Breaks Yes|No}    ... Print Margins  Break Pages
  6239.  
  6240. {Print.PageSetupReset}    ... Load Defaults
  6241.  
  6242. {Print.Paper_Type PaperSize}    ... Paper Type
  6243.  
  6244. {Print.Print_To_Fit Yes|No}    ... Print Scaling  Print to Fit
  6245.  
  6246. {Print.Right_Margin Value}    ... Print Margins  Right
  6247.  
  6248. {Print.Scaling 1-1000}    ... Print Scaling  Scaling
  6249.  
  6250. {Print.Top_Margin Value}    ... Print Margins  Top
  6251.  
  6252. Description
  6253.  
  6254. These command equivalents are equivalent to File  Page Setup. When specifying a margin, the default measurement system is used (set in the Windows Control Panel). To use a specific measurement system, place in (for inches) or cm (for centimeters) after the new margin setting (see the example). The new setting is converted into the default measurement system.
  6255.  
  6256. Example
  6257.  
  6258. This macro sets the top and bottom margins to three centimeters, specifies landscape orientation, and sets the paper size to Legal.
  6259.  
  6260. {Print.Top_Margin "3 cm"}
  6261.  
  6262. {Print.Bottom_Margin "3 cm"}
  6263.  
  6264. {Print.Orientation Landscape}
  6265.  
  6266. {Print.Paper_Type "Legal 8 1/2 x 14 inch"}
  6267.  
  6268.     Related topics
  6269.  
  6270. File  Print Command Equivalents
  6271.  
  6272. File  Print command equivalent    Equivalent to File  Print...
  6273.  
  6274. {Print.All_Pages Yes|No}    ... Notebook
  6275.  
  6276. {Print.Area Notebook | Selection | Current Sheet}    ... specify Notebook, Sheet, or a Selection
  6277.  
  6278. {Print.Block Block}    ... Selection
  6279.  
  6280. {Print.Copies Value}    ... Copies
  6281.  
  6282. {Print.DoPrint}    ... Print
  6283.  
  6284. {Print.DoPrintGraph}    ... Print (selected chart)
  6285.  
  6286. {Print.GroupCopies 0|1}    ... 
  6287.  
  6288.     Will "collate" copies when set to zero, and "group" copies when set to 1.
  6289.  
  6290. {Print.Start_Page_Number Value}    ... From Range
  6291.  
  6292. {Print.PrinterSetup Printer; Port; PrintToFile (0|1); Filename; CancelOverwrite (0) | Replace (1) | Backup (2) | Append (3)}    ... Details
  6293.  
  6294. Description
  6295.  
  6296. These command equivalents are equivalent to File  Print (for the commands available for print options, see File  Page Setup  Options.) {Print.DoPrint} prints the active notebook (or active chart) using current print settings. {Print.DoPrintGraph} provides a quick way to print a chart. If a floating chart is selected, {Print.DoPrintGraph} prints the chart being shown; if a chart icon is selected, {Print.DoPrintGraph} prints the chart represented by that icon; if a chart window is active, {Print.DoPrintGraph} prints the chart shown.
  6297.  
  6298. Example
  6299.  
  6300. This macro selects an icon on the Objects sheet named Report3 and prints the chart it represents.
  6301.  
  6302. {OBJECTSPAGEGOTO}
  6303.  
  6304. {SELECTOBJECT Report3}
  6305.  
  6306. {Print.DoPrintGraph}
  6307.  
  6308.  
  6309.  
  6310. This macro prints pages 7 through 12 of a document. The print selection is A3..C234.
  6311.  
  6312. {Print.Block A3..C234}
  6313.  
  6314. {Print.All_Pages No}
  6315.  
  6316. {Print.Start_Page_Number 7}
  6317.  
  6318. {Print.End_Page_Number 12}
  6319.  
  6320. {Print.DoPrint}
  6321.  
  6322.     Related topics
  6323.  
  6324. File  Page Setup  Options Command Equivalents
  6325.  
  6326. File  Print  Options command equivalent    Equivalent to File  Page Setup  Options...
  6327.  
  6328. {Print.Between_Block_Formatting "Lines"|"Page Advance"}    ... Print Between Selections
  6329.  
  6330. {Print.Between_Page_Formatting "Lines"|"Page Advance"}    ... Print Between 3D Pages
  6331.  
  6332. {Print.Cell_Formulas Yes|No}    ... Print Options  Cell Formulas
  6333.  
  6334. {Print.Center_Block Yes|No}    ... Print Options  Center Cells
  6335.  
  6336. {Print.Left_Heading Block}    ... Left Heading
  6337.  
  6338. {Print.Lines_Between_Blocks Value}    ... Print Between Selections  Lines
  6339.  
  6340. {Print.Lines_Between_Pages Value}    ... Print Between 3D Pages  Lines
  6341.  
  6342. {Print.Print_Borders Yes|No}    ... Row/Column Borders
  6343.  
  6344. {Print.Print_Gridlines Yes|No}    ... Gridlines
  6345.  
  6346. {Print.PrintOptionsReset}    ... Load Defaults
  6347.  
  6348. {Print.Top_Heading Block}    ... Top Heading
  6349.  
  6350. {Print.PrintReset}    Resets all print settings
  6351.  
  6352. Description
  6353.  
  6354. These command equivalents are equivalent to the options available in the Spreadsheet Print Options dialog box (click File  Page Setup  Options). {Print.Between_Page_Formatting} and {Print.Lines_Between_Pages} control the amount of space left between notebook sheets (if the print selection spans multiple sheets).
  6355.  
  6356. {Print.Between_Block_Formatting} and {Print.Lines_Between_Blocks} control space between the selections that make up a noncontiguous print selection.
  6357.  
  6358. Example
  6359.  
  6360. This macro specifies that three lines should be printed between each notebook sheet (if the print selection spans multiple sheets), and that row and column borders should print.
  6361.  
  6362. {Print.Between_Page_Formatting "Lines"}
  6363.  
  6364. {Print.Lines_Between_Pages 3}
  6365.  
  6366. {Print.Print_Borders Yes}
  6367.  
  6368.     Related topics
  6369.  
  6370. {PTTESTM}
  6371.  
  6372. Syntax
  6373.  
  6374. {PTTESTM InBlock1, InBlock2, OutBlock, <Labels>, <Alpha>, <Difference>}
  6375.  
  6376. Description
  6377.  
  6378. {PTTESTM} performs a paired two-sample Student's t-Test for means. Each value from InBlock1 is paired with a value from InBlock2. InBlock1 and InBlock2 must have the same number of values.
  6379.  
  6380. {PTTESTM} is equivalent to the t-Test analysis tool.
  6381.  
  6382. Parameters
  6383.  
  6384. Parameter    Description
  6385.  
  6386. InBlock1    the first input cells containing a column or row of numeric values
  6387.  
  6388. InBlock2    the second input cells containing a column or row of numeric values
  6389.  
  6390. OutBlock    upper left cell of the output cells
  6391.  
  6392. 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
  6393.  
  6394. Alpha    significance level of the test; the default is 0.05
  6395.  
  6396. Difference    hypothetical mean difference; the default is 0
  6397.  
  6398.     Related topics
  6399.  
  6400. {PTTESTV}
  6401.  
  6402. Syntax
  6403.  
  6404. {PTTESTV InBlock1,InBlock2,OutBlock,<Labels>,<Alpha>}
  6405.  
  6406. Description
  6407.  
  6408. {PTTESTV} performs a Student's t-Test using two indepependent (rather than paired) samples with unequal variances. {PTTESTV} is equivalent to the t-Test analysis tool.
  6409.  
  6410. Parameters
  6411.  
  6412. Parameter    Description
  6413.  
  6414. InBlock1    the first input cells containing a column or row of numeric values
  6415.  
  6416. InBlock2    the second input cells containing a column or row of numeric values
  6417.  
  6418. OutBlock    upper left cell of the output cells
  6419.  
  6420. 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
  6421.  
  6422. Alpha    significance level of the test; the default is 0.05
  6423.  
  6424.     Related topics
  6425.  
  6426. {PUT}
  6427.  
  6428. Syntax
  6429.  
  6430. {PUT Location,Column#,Row#,Value<:Type>}
  6431.  
  6432. Description
  6433.  
  6434. {PUT}, like {LET}, copies a value to a particular cell. However, instead of placing the value directly in the specified cell, {PUT} copies Value into the cell that is offset Column# columns and Row# rows into Location.
  6435.  
  6436. {PUT} processes Value the same way {LET} does, including the use of :string (or :s) and :value (or :v). If neither of these two optional arguments is supplied, {PUT} tries to store the value as a numeric value; if unsuccessful, it stores the value as a label.
  6437.  
  6438. The values for Column# and Row# can be any number between 0 and one less than the number of columns or rows within Location, respectively. A value of 0 implies the first column or row, 1 implies the second, and so on. If Column# or Row# exceeds the number of columns or rows in the cells, the macro stops. ({ONERROR} cannot trap this error.)
  6439.  
  6440. Example
  6441.  
  6442. Each of the following examples assumes cell A41 contains the value 25, the selection named numbers has been defined as A44..B50, and data is a cell containing the value 295.
  6443.  
  6444. {PUT numbers,1,4,A41:value} copies the value 25 into the cell at the intersection of the second column and the fifth row of the cell numbers (cell B48).
  6445.  
  6446. {PUT numbers,1,5,A41:s} copies the string "A41" into the cell at the 2nd column and the 6th row of the cell numbers (cell B49).
  6447.  
  6448. {PUT numbers,1,6,data} copies the contents of the cell data to the 2nd column and 7th row of numbers (cell B50). If there is no selection named data, this example instead places a label ("data") into cell B50.
  6449.  
  6450. Parameters
  6451.  
  6452. Parameter    Description
  6453.  
  6454. Location    cells within which Value will be stored, either as a value or label, as specified by Type
  6455.  
  6456. Column#    number of columns into the specified cells to store Value
  6457.  
  6458. Row#    number of rows into the specified cells to store Value
  6459.  
  6460. Value    string or numeric value
  6461.  
  6462. Type    string or value; string (or s) stores the value or formula as a label, and value (or v) stores the actual value or value resulting from a formula (optional)
  6463.  
  6464.     Related topics
  6465.  
  6466. {PUTBLOCK}
  6467.  
  6468. Syntax
  6469.  
  6470. {PUTBLOCK Data,<Block>,<Date?(0|1)>}
  6471.  
  6472. Description
  6473.  
  6474. {PUTBLOCK} lets you quickly enter the same value, label, or formula in multiple cells. Data is a string or value to place in Block. If Block is not specified, the currently selected cells are used. Block can be noncontiguous; if so, be sure to enclose it in parentheses. If Data is a formula containing relative addresses, those addresses are adjusted automatically.
  6475.  
  6476. Example
  6477.  
  6478. {PUTBLOCK "Quarter 1",A..D:A1} enters the label Quarter 1 in cells A:A1 through D:A1.
  6479.  
  6480. {PUTBLOCK 1990,A..D:B1} enters the value 1990 in cells A:B1 through D:B1.
  6481.  
  6482. {PUTBLOCK "+A1",C3..C12) enters the formula +A1 in C3, +A2 in C4, and so on.
  6483.  
  6484. {PUTBLOCK "11/01/94", (A:D3,B:D3,C:D3,D:D3),1} enters the date 11/01/94 in cell D3 of sheets A through D.
  6485.  
  6486. Parameters
  6487.  
  6488. Parameter    Description
  6489.  
  6490. Data    entry to type
  6491.  
  6492. Block    cells to type Data in (optional)
  6493.  
  6494. Date?    whether to enter Data as a date (1) or a label (0)
  6495.  
  6496.     Related topics
  6497.  
  6498. {PUTBLOCK2}
  6499.  
  6500. Syntax
  6501.  
  6502. {PUTBLOCK2 Data,<Block>}
  6503.  
  6504. Description
  6505.  
  6506. {PUTBLOCK2} enters the same value, label, or formula in multiple cells like {PUTBLOCK} but parses date formats automatically and requires a formula prefix before numeric values. Data is a string or value to place in Block. If Block is not specified, the currently selected cells are used. Block can be noncontiguous; if so, be sure to enclose it in parentheses. If Data is a formula containing relative addresses, those addresses are adjusted automatically.
  6507.  
  6508. Example
  6509.  
  6510. {PUTBLOCK2 "Quarter 1",A..D:A1} enters the label Quarter 1 in cells A:A1 through D:A1.
  6511.  
  6512. {PUTBLOCK2 +1990,A..D:B1} enters the value 1990 in cells A:B1 through D:B1.
  6513.  
  6514. {PUTBLOCK2 "+A1",C3..C12) enters the formula +A1 in C3, +A2 in C4, and so on.
  6515.  
  6516. {PUTBLOCK2 "11/01/94", (A:D3,B:D3,C:D3,D:D3)} enters the date 11/01/94 in cell D3 of sheets A through D.
  6517.  
  6518. Parameters
  6519.  
  6520. Parameter    Description
  6521.  
  6522. Data    entry to type
  6523.  
  6524. Block    cells to type Data in (optional)
  6525.  
  6526.     Related topics
  6527.  
  6528. {PUTCELL}
  6529.  
  6530. Syntax
  6531.  
  6532. {PUTCELL Data,<Date?(0|1)>}
  6533.  
  6534. Description
  6535.  
  6536. {PUTCELL} is an easy way to store information in the active cell.
  6537.  
  6538. Example
  6539.  
  6540. {PUTCELL "Peggy Danderhoff"} stores Peggy Danderhoff as a label in the active cell.
  6541.  
  6542. {PUTCELL 45067} stores the number 45067 as a value in the active cell.
  6543.  
  6544. {PUTCELL "@SUM(A1..A27)"} stores the formula @SUM(A1..A27) in the active cell.
  6545.  
  6546. {PUTCELL "11/01/94",1} stores the date 11/01/94 in the active cell
  6547.  
  6548. Parameters
  6549.  
  6550. Parameter    Description
  6551.  
  6552. Data    string to type into the active cell
  6553.  
  6554. Date?    whether to enter Data as a date (1) or a label (0)
  6555.  
  6556.     Related topics
  6557.  
  6558. {PUTCELL2}
  6559.  
  6560. Syntax
  6561.  
  6562. {PUTCELL2 Data}
  6563.  
  6564. Description
  6565.  
  6566. {PUTCELL2} stores information in the active cell like {PUTCELL} but parses date formats automatically and requires a formula prefix before numeric values.
  6567.  
  6568. Example
  6569.  
  6570. {PUTCELL2 "Peggy Danderhoff"} stores Peggy Danderhoff as a label in the active cell.
  6571.  
  6572. {PUTCELL2 +45067} stores the number 45067 as a value in the active cell.
  6573.  
  6574. {PUTCELL2 "@SUM(A1..A27)"} stores the formula @SUM(A1..A27) in the active cell.
  6575.  
  6576. {PUTCELL2 "11/01/94"} stores the date 11/01/94 in the active cell
  6577.  
  6578. Parameters
  6579.  
  6580. Parameter    Description
  6581.  
  6582. Data    string to type into the active cell
  6583.  
  6584.     Related topics
  6585.  
  6586. {QGOTO}
  6587.  
  6588. Description
  6589.  
  6590. {QGOTO} displays and selects the specified cells. This command is equivalent to the Go To key, F5. You can also use the command equivalent {EditGoto Block}. A related command, {GOTO}, moves to the upper-left cell of a destination cells, but does not select the cells.
  6591.  
  6592.     Related topics
  6593.  
  6594. {QUERY}
  6595.  
  6596. Description
  6597.  
  6598. {QUERY} is equivalent to the Query key, F7, which repeats the Tools  Data Tools  Notebook Query operation performed.
  6599.  
  6600.     Related topics
  6601.  
  6602. {Query.Option}
  6603.  
  6604. Command equivalent    Equivalent to Tools  Data Tools  Notebook Query...
  6605.  
  6606. {Query.Assign_Names}    ... Field Names
  6607.  
  6608. {Query.Criteria_Table Block}    ... Criteria Table
  6609.  
  6610. {Query.Database_Block Block}    ... Database Cells
  6611.  
  6612. {Query.Delete}    ... Delete
  6613.  
  6614. {Query.Extract}    ... Extract
  6615.  
  6616. {Query.Locate}    ... Locate
  6617.  
  6618. {Query.Output_Block Block}    ... Output Cells
  6619.  
  6620. {Query.Reset}    ... Reset
  6621.  
  6622. {Query.Unique}    ... Extract Unique
  6623.  
  6624. Description
  6625.  
  6626. {Query.Option} is equivalent to Tools  Data Tools   Notebook Query, which lets you set up a Corel 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.
  6627.  
  6628. You can use {Query?} or {Query!} to display the Notebook Data Query dialog box. {Query?} lets the user manipulate the dialog box, whereas {Query!} relies on the macro to manipulate it.
  6629.  
  6630. Example
  6631.  
  6632. The following macro sets up database cells and criteria table (A2..G37 and H1..H2), searches for records using the criteria table, sets up an output cells at J2..P2, and copies any records found there.
  6633.  
  6634. {Query.Database_Block A2..G37}
  6635.  
  6636. {Query.Criteria_Table H1..H2}
  6637.  
  6638. {Query.Locate}
  6639.  
  6640. {Query.EndLocate}
  6641.  
  6642. {Query.Output_Block J2..P2}
  6643.  
  6644. {Query.Extract}
  6645.  
  6646.     Related topics
  6647.  
  6648. {QuickCorrect}
  6649.  
  6650. Syntax
  6651.  
  6652. {QuickCorrect Yes|No}
  6653.  
  6654. Description
  6655.  
  6656. {QuickCorrect} is the command equivalent for Tools  QuickCorrect. It replaces common spelling errors and mistyped words; it can also be used to automatically expand abbreviations. {QuickCorrect Yes} activates the QuickCorrect feature; {QuickCorrect No} turns it off.
  6657.  
  6658. {QuickFilter.Go}
  6659.  
  6660. Syntax
  6661.  
  6662. {QuickFilter.Go CellReference; <OpCode1; Arg1; Conditional1; OpCode2; Arg2; Conditional2; OpCode3; Arg3>}
  6663.  
  6664. Description
  6665.  
  6666. Performs QuickFilter operations on cells. Equivalent to Tools  QuickFilter, and then manipulating the QuickFilter buttons on a column header. If there are no optional args, then it is the same as "Show All." You can have 2, 5, or 7 optional args.
  6667.  
  6668. Example:
  6669.  
  6670. {QuickFilter.Go A:A1}
  6671.  
  6672. Equivalent to "Show All". Flushes ALL filters associated with Column A
  6673.  
  6674. {QuickFilter.Go A:B5;equal to""}
  6675.  
  6676. Equivalent to "Blanks". Filters all rows out except for those with blanks in Column B.
  6677.  
  6678. {QuickFilter.Go A:F24;not equal to""}
  6679.  
  6680. Equivalent to "Non Blanks". Filters out all rows except for those without blanks in Column F.
  6681.  
  6682. Parameters
  6683.  
  6684. Parameters    Description
  6685.  
  6686. 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".
  6687.  
  6688. Arg#    can be numeric, or a string. Wildcards are not valid.
  6689.  
  6690. Conditional#    AND or OR
  6691.  
  6692.     Related topics
  6693.  
  6694. {QuickFilter.Toggle}
  6695.  
  6696. Syntax
  6697.  
  6698. {QuickFilter.Toggle <Block>}
  6699.  
  6700. Description
  6701.  
  6702. Turns on/off QuickFilters for the current cells. Equivalent to Tools  QuickFilter.
  6703.  
  6704.     Related topics
  6705.  
  6706. {QuickFilter.TopGo}
  6707.  
  6708. Syntax
  6709.  
  6710. {QuickFilter.TopGo CellReference; <OpCode; Arg>}
  6711.  
  6712. Description
  6713.  
  6714. Performs QuickFilter operations on cells. Equivalent to Tools  QuickFilter, and then manipulating the QuickFilter buttons on a column header. If there are no optional args, it is the same as "Show All."
  6715.  
  6716. Example:
  6717.  
  6718. {QuickFilter.TopGo A:C51;top value;10}
  6719.  
  6720. Equivalent to Top Ten Values. Filters out all rows except for those that contain the top 10 values in column C.
  6721.  
  6722. {QuickFilter.TopGo A:E17;bottom percent;23}
  6723.  
  6724. Equivalent to Bottom 23 Percent. Filters out all rows except for those that contain the bottom 23% in column E.
  6725.  
  6726. Parameters
  6727.  
  6728. Parameters    Description
  6729.  
  6730. OpCode    "top value", "top percent", "bottom value", "bottom percent"
  6731.  
  6732. Arg    must be numeric. Wildcards are not valid.
  6733.  
  6734.     Related topics
  6735.  
  6736. {QUIT}
  6737.  
  6738. Description
  6739.  
  6740. {QUIT} ends all macro execution, and returns control of Corel Quattro Pro to the user.
  6741.  
  6742. Use {QUIT} in conjunction with {IF}, {LOOK}, {MENUBRANCH}, or {MENUCALL} to end a macro under user control.
  6743.  
  6744. Example
  6745.  
  6746. The following macro displays a menu that has a "Quit" option, which returns the user to Ready mode.
  6747.  
  6748. quit_menu    Continue    Quit
  6749.  
  6750.         Keep going    Quit to Ready mode
  6751.  
  6752.         {BRANCH \G}    {QUIT}
  6753.  
  6754.  
  6755.  
  6756. \G    {MENUBRANCH quit_menu}
  6757.  
  6758.     Related topics
  6759.  
  6760. {RANDOM}
  6761.  
  6762. Description
  6763.  
  6764. {RANDOM} generates cells of random values drawn from a selected distribution. It is equivalent to the Random Number analysis tool. {RANDOM} has a different format for the following distribution types:
  6765.  
  6766. Uniform    every value has an equal probability of being selected.
  6767.  
  6768. Normal    has the qualities of a symmetrical, bell-shaped curve.
  6769.  
  6770. Bernoulli    has two possible outcomes, failure or success, represented by 0 and 1.
  6771.  
  6772. Binomial    represents the distribution of successful outcomes in a given number of independent Bernoulli trials.
  6773.  
  6774. Poisson    the distribution of values in any interval depends on the length of the interval and the constant Lambda, the expected number of occurrences in an interval
  6775.  
  6776. Patterned    a pattern of repeated values and sequences.
  6777.  
  6778. Discrete    every value in designated cells has a specified probability of being selected (the cumulative probabilities equal 1).
  6779.  
  6780.     Related topics
  6781.  
  6782. {RANDOM} - Uniform Distribution
  6783.  
  6784. Syntax
  6785.  
  6786. {RANDOM OutBlock, Columns, Rows, 1, Seed, LowerBound, UpperBound}
  6787.  
  6788. Description
  6789.  
  6790. When the Distribution argument equals 1, {RANDOM} generates random values drawn from a uniform distribution.
  6791.  
  6792. Parameters
  6793.  
  6794. Parameter    Description
  6795.  
  6796. OutBlock    upper left cell of the output cells
  6797.  
  6798. Columns    a value indicating the number of random number sets to generate; default is the number of columns in OutBlock
  6799.  
  6800. Rows    a value indicating the number of rows of random numbers to generate for each column
  6801.  
  6802. 1     indicates uniform distribution
  6803.  
  6804. Seed    starting number for the random number generation algorithm
  6805.  
  6806. LowerBound    a value indicating the lower bound on the set of numbers to generate
  6807.  
  6808. UpperBound    a value indicating the upper bound on the set of numbers to generate
  6809.  
  6810.     Related topics
  6811.  
  6812. {RANDOM} - Normal Distribution
  6813.  
  6814. Syntax
  6815.  
  6816. {RANDOM OutBlock, Columns, Rows, 2, Seed, Mean, SDev}
  6817.  
  6818. Description
  6819.  
  6820. When the Distribution argument equals 2, {RANDOM} generates random values drawn from a normal distribution.
  6821.  
  6822. Parameters
  6823.  
  6824. Parameter    Description
  6825.  
  6826. OutBlock    upper left cell of the output cells
  6827.  
  6828. Columns    a value indicating the number of random number sets to generate; default is the number of columns in OutBlock
  6829.  
  6830. Rows    a value indicating the number of rows of random numbers to generate for each column
  6831.  
  6832. 2    indicates normal distribution
  6833.  
  6834. Seed    starting number for the random number generation algorithm
  6835.  
  6836. Mean    a value indicating the mean of the set of numbers to generate
  6837.  
  6838. SDev    a value indicating the standard deviation of the set of numbers to generate
  6839.  
  6840.     Related topics
  6841.  
  6842. {RANDOM} - Bernoulli Distribution
  6843.  
  6844. Syntax
  6845.  
  6846. {RANDOM OutBlock, Columns, Rows, 3, Seed, Prob}
  6847.  
  6848. Description
  6849.  
  6850. When the Distribution argument equals 3, {RANDOM} generates random values drawn from a Bernoulli distribution.
  6851.  
  6852. Parameters
  6853.  
  6854. Parameter    Description
  6855.  
  6856. OutBlock    upper left cell of the output cells
  6857.  
  6858. Columns    a value indicating the number of random number sets to generate; default is the number of columns in OutBlock
  6859.  
  6860. Rows    a value indicating the number of rows of random numbers to generate for each column
  6861.  
  6862. 3    indicates Bernoulli distribution
  6863.  
  6864. Prob     starting number for the random number generation algorithm
  6865.  
  6866. Seed    a value indicating the probability of success on each trial run; must be greater than or equal to 0 and less than or equal to 1
  6867.  
  6868.     Related topics
  6869.  
  6870. {RANDOM} - Binomial Distribution
  6871.  
  6872. Syntax
  6873.  
  6874. {RANDOM OutBlock, Columns, Rows, 4, Seed, Prob, Trials}
  6875.  
  6876. Description
  6877.  
  6878. When the Distribution argument equals 4, {RANDOM} generates random values drawn from a binomial distribution.
  6879.  
  6880. Parameters
  6881.  
  6882. Parameter    Description
  6883.  
  6884. OutBlock    upper left cell of the output cells
  6885.  
  6886. Columns    a value indicating the number of random number sets to generate; default is the number of columns in OutBlock
  6887.  
  6888. Rows    a value indicating the number of rows of random numbers to generate for each column
  6889.  
  6890. 4    indicates binomial distribution
  6891.  
  6892. Seed    starting number for the random number generation algorithm
  6893.  
  6894. Prob    a value indicating the probability of success on each trial run; must be greater than or equal to 0 and less than or equal to 1
  6895.  
  6896. Trials    a value indicating the number of trials
  6897.  
  6898.     Related topics
  6899.  
  6900. {RANDOM} - Poisson Distribution
  6901.  
  6902. Syntax
  6903.  
  6904. {RANDOM OutBlock, Columns, Rows, 5, Seed, Lambda}
  6905.  
  6906. Description
  6907.  
  6908. When the Distribution argument equals 5, {RANDOM} generates random values drawn from a Poisson distribution.
  6909.  
  6910. Parameters
  6911.  
  6912. Parameter    Description
  6913.  
  6914. OutBlock    upper left cell of the output cells
  6915.  
  6916. Columns    a value indicating the number of random number sets to generate; default is the number of columns in OutBlock
  6917.  
  6918. Rows    a value indicating the number of rows of random numbers to generate for each column
  6919.  
  6920. 5    indicates Poisson distribution
  6921.  
  6922. Seed    starting number for the random number generation algorithm
  6923.  
  6924. Lambda    a parameter to the Poisson distribution representing the expected number of events in each unit
  6925.  
  6926.     Related topics
  6927.  
  6928. {RANDOM} - Patterned Distribution
  6929.  
  6930. Syntax
  6931.  
  6932. {RANDOM OutBlock, Columns, Rows, 6, Seed, LowerBound, UpperBound, Step, RepeatNumber, RepeatSequence}
  6933.  
  6934. Description
  6935.  
  6936. When the Distribution argument equals 6, {RANDOM} generates random values drawn from a patterned distribution.
  6937.  
  6938. Parameters
  6939.  
  6940. Parameter    Description
  6941.  
  6942. OutBlock    upper left cell of the output cells
  6943.  
  6944. Columns    a value indicating the number of random number sets to generate; default is the number of columns in OutBlock
  6945.  
  6946. Rows    a value indicating the number of rows of random numbers to generate for each column
  6947.  
  6948. 6    indicates patterned distribution
  6949.  
  6950. Seed    starting number for the random number generation algorithm
  6951.  
  6952. LowerBound    a value indicating the lower bound on the set of numbers to generate
  6953.  
  6954. UpperBound    a value indicating the upper bound on the set of numbers to generate
  6955.  
  6956. Step    increment value between LowerBound and UpperBound
  6957.  
  6958. RepeatNumber    a value indicating the number of times to repeat each value
  6959.  
  6960. RepeatSequence    a value indicating the number of times to repeat each sequence of values
  6961.  
  6962.     Related topics
  6963.  
  6964. {RANDOM} - Discrete Distribution
  6965.  
  6966. Syntax
  6967.  
  6968. {RANDOM OutBlock, Columns, Rows, 7, Seed, InBlock}
  6969.  
  6970. Description
  6971.  
  6972. When the Distribution argument equals 7, {RANDOM} generates random values drawn from a discrete distribution.
  6973.  
  6974. Parameters
  6975.  
  6976. Parameter    Description
  6977.  
  6978. OutBlock    upper left cell of the output cells
  6979.  
  6980. Columns    a value indicating the number of random number sets to generate; default is the number of columns in OutBlock
  6981.  
  6982. Rows    a value indicating the number of rows of random numbers to generate for each column
  6983.  
  6984. 7    indicates discrete distribution
  6985.  
  6986. Seed    starting number for the random number generation algorithm
  6987.  
  6988. InBlock    one or more numeric cell values representing the input cells, which contain a range of values and their probabilities, each in a separate column
  6989.  
  6990.     Related topics
  6991.  
  6992. {RANKPERC}
  6993.  
  6994. Syntax
  6995.  
  6996. {RANKPERC InBlock,OutBlock,<Grouped>,<Labels(0|1)>}
  6997.  
  6998. Description
  6999.  
  7000. {RANKPERC} returns the ordinal and percent rank of each value in InBlock. {RANKPERC} is equivalent to the Rank and Percentile analysis tool.
  7001.  
  7002. Parameters
  7003.  
  7004. Parameter    Description
  7005.  
  7006. InBlock    input cells containing one or more columns or rows of numeric values
  7007.  
  7008. OutBlock    upper left cell of the output cells
  7009.  
  7010. Grouped    "C" to group results by column or "R" to group results by row; the default is "C"
  7011.  
  7012. 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
  7013.  
  7014.     Related topics
  7015.  
  7016. {READ}
  7017.  
  7018. Syntax
  7019.  
  7020. {READ #Bytes,Location}
  7021.  
  7022. Description
  7023.  
  7024. {READ} reads #Bytes bytes of characters from a file previously opened using {OPEN} (starting at the current position of the file pointer), and stores them as a label in Location. The file is left unchanged, and the file pointer moves to the position following the last character read. (See {GETPOS} for a discussion of the file pointer.)
  7025.  
  7026. {READ} is similar to {READLN}, except for two differences. While {READLN} reads one line of characters (terminated by a carriage-return/linefeed pair), {READ} reads the precise number of characters specified. This lets you read, for example, fields within a record rather than an entire record. The second difference is that while {READLN} strips out the carriage-return/linefeed pair at the end of a line, {READ} manipulates these as if they were no different from other characters. If you use {READ} to read a file created by {WRITELN}, you will see two graphics characters at the end of each string read. These are the carriage return and linefeed characters. {READ} is best used only in conjunction with {WRITE}, or when you know the text file structure in detail.
  7027.  
  7028. If {READ} succeeds, macro execution continues in the cell below the cell containing the {READ} command; if {READ} fails, macro execution continues in the same cell.
  7029.  
  7030. Example
  7031.  
  7032. This macro opens a text file containing a phone directory database, and reads a name and phone number from the third record. The macro that created this text file is shown in the description of {WRITE}:
  7033.  
  7034. \L    {OPEN "A:PHONEDIR.PRN",R}
  7035.  
  7036.     {SETPOS rec_length*(rec_number-1)}
  7037.  
  7038.     {READ name_length,name}
  7039.  
  7040.     {READ phone_length,phone}
  7041.  
  7042.     {CLOSE}
  7043.  
  7044.     
  7045.  
  7046. rec_number    3
  7047.  
  7048. rec_length    28
  7049.  
  7050. name_length    14
  7051.  
  7052. phone_length    12
  7053.  
  7054. name    Hall, Sue Ann
  7055.  
  7056. phone    617-555-5678
  7057.  
  7058. Parameters
  7059.  
  7060. Parameter    Description
  7061.  
  7062. #Bytes    number of bytes of characters to read from a file
  7063.  
  7064. Location    cell in which to store the characters read
  7065.  
  7066.     Related topics
  7067.  
  7068. {READLN}
  7069.  
  7070. Syntax
  7071.  
  7072. {READLN Location}
  7073.  
  7074. Description
  7075.  
  7076. {READLN} is like {READ}, but instead of using a number of bytes to determine the amount of text to read, {READLN} reads forward from the current file pointer location up to and including the carriage-return/linefeed at the end of the line. Unlike {READ}, it does not read the carriage return/linefeed into the cell. (See {GETPOS} for a discussion of the file pointer.)
  7077.  
  7078. Use {READ} to read lines from a record-structured file, where the lines are of uniform length. {READLN} can read the contents of a file one row at a time, making formatting of the data easier than {READ}.
  7079.  
  7080. Like the other file-access macros, if {READLN} fails, the macro continues execution in the current cell. If it is successful, the macro skips to the row below, and execution continues there. {ONERROR} can be used to trap disk and file errors, such as a disk drive door being left open.
  7081.  
  7082. Example
  7083.  
  7084. The following macro opens the text file TEST.TXT, reads in a line, and calculates the length of the line by subtracting the starting position from the ending position, then subtracting 1 from the result. This adjustment is necessary because the carriage-return and linefeed characters found at the end of each line in a typical text file are stripped away by Corel Quattro Pro when the text is read into cells. The macro that created the file TEST.TXT is shown in the description of {WRITELN}.
  7085.  
  7086. \M    {OPEN "A:TEST.TXT",R}
  7087.  
  7088.     {GETPOS start}
  7089.  
  7090.     {READLN input}
  7091.  
  7092.     {GETPOS end}
  7093.  
  7094.     {CLOSE}
  7095.  
  7096.     {LET num_char,+(end-start)-1}
  7097.  
  7098.     
  7099.  
  7100. start    0
  7101.  
  7102. end    22
  7103.  
  7104. num_char    21
  7105.  
  7106. input    This is a short line.
  7107.  
  7108. Parameters
  7109.  
  7110. Parameter    Description
  7111.  
  7112. Location    cell in which to store the characters read
  7113.  
  7114.     Related topics
  7115.  
  7116. {RECALC}
  7117.  
  7118. Syntax
  7119.  
  7120. {RECALC Location,<Condition>,<Iteration#>}
  7121.  
  7122. Description
  7123.  
  7124. {RECALC} causes Corel Quattro Pro to recalculate a specified portion of the notebook in a row-by-row order. This is different from normal recalculation, where Corel Quattro Pro recalculates the entire notebook in natural order; that is, before a formula calculates, each cell it references is recalculated first.
  7125.  
  7126. With the optional Condition argument, you can tell Corel Quattro Pro to recalculate formulas in cells repeatedly until the specified condition is met. You can also supply Iteration# to specify the maximum number of times to recalculate formulas trying to satisfy Condition. To use Iteration#, Condition must also be supplied.
  7127.  
  7128. {RECALC} is useful for rapid recalculation of specified parts of a notebook, particularly when the notebook is so large that global recalculations would significantly slow your work.
  7129.  
  7130. {RECALC} overrides the recalculation method specified for the notebook, enforcing row-by-row recalculation. If all the formulas reference only cells above, or to the left in the same row, the notebook will be correctly calculated. If there are references to cells to the left and below, you must use {RECALCCOL}. If there are references to cells below or to the right in the same row as your formula, you must use {CALC} to recalculate the entire notebook.
  7131.  
  7132. {RECALC} displays the results of recalculation.
  7133.  
  7134. If there are formulas within the cells being recalculated that depend on formulas outside of the cells, they might not evaluate correctly. Make sure Location encompasses all the cells referenced by formulas within the cells.
  7135.  
  7136. Parameters
  7137.  
  7138. Parameter    Description
  7139.  
  7140. Location    cells to recalculate
  7141.  
  7142. Condition    condition to be met before recalculation is halted (optional)
  7143.  
  7144. Iteration#    maximum number of times to recalculate Location trying to meet Condition (optional)
  7145.  
  7146.     Related topics
  7147.  
  7148. {RECALCCOL}
  7149.  
  7150. Syntax
  7151.  
  7152. {RECALCCOL Location,<Condition>,<Iteration#>}
  7153.  
  7154. Description
  7155.  
  7156. {RECALCCOL} recalculates the specified portion of a notebook in column-by-column order. It is similar to {RECALC}, which recalculates row by row. See {RECALC} for information on when {RECALCCOL} is appropriate and when you need to use {CALC} instead.
  7157.  
  7158. Parameters
  7159.  
  7160. Parameter    Description
  7161.  
  7162. Location    cells to recalculate
  7163.  
  7164. Condition    condition to be met before recalculation is halted (optional)
  7165.  
  7166. Iteration#    maximum number of times to recalculate Location trying to meet Condition (optional)
  7167.  
  7168.     Related topics
  7169.  
  7170. {RefreshScreenOn} and {RefreshScreenOff}
  7171.  
  7172. Description
  7173.  
  7174. {RefreshScreenOn} and {RefreshScreenOff} turn on or off the repainting of Corel Quattro Pro behind an active dialog box.
  7175.  
  7176. {REGRESS}
  7177.  
  7178. Syntax
  7179.  
  7180. {REGRESS InBlockY, InBlockX, YIntZero(0|1), Labels(0|1), Confidence, SumOutBlock, Residuals(0|1), StdResiduals(0|1), <ResidualOutBLock>, <ProbOutBlock>}
  7181.  
  7182. Description
  7183.  
  7184. {REGRESS} performs multiple linear regression analysis. {REGRESS} is equivalent to the Advanced Regression analysis tool.
  7185.  
  7186. Parameters
  7187.  
  7188. Parameter    Description
  7189.  
  7190. InBlockY    input cells containing a single column of y values (the dependent variables)
  7191.  
  7192. InBlockX    input cells containing one or more columns of x values (the independent variables)
  7193.  
  7194. YIntZero    1 if the y-intercept is 0 (the line of regression passes through the origin); 0 if the y-intercept is not 0
  7195.  
  7196. Labels    1 if labels are located in the first column or row of the InBlockY and InBlockX; 0 if the input selections do not contain labels
  7197.  
  7198. Confidence    a value indicating the confidence level to apply to the regression
  7199.  
  7200. SumOutBlock    upper left cell of the output cells for the summary table (allow at least seven columns)
  7201.  
  7202. Residuals    1 or 0; if 1, includes residuals in the output table
  7203.  
  7204. StdResiduals    1 or 0; if 1, includes standardized residuals in the output table
  7205.  
  7206. ResidualOutBlock    upper left cell of the output cells for the residuals table (allow at least four columns)
  7207.  
  7208. ProbOutBlock    upper left cell of the output cells for the probabilities table (allow at least two columns)
  7209.  
  7210.     Related topics
  7211.  
  7212. {Regression.Option}
  7213.  
  7214. Command equivalent    Equivalent to Tools  Numeric Tools  ...
  7215.  
  7216. {Regression.Dependent Block}    ...Regression  Dependent
  7217.  
  7218. {Regression.Go}    ...Regression  OK
  7219.  
  7220. {Regression.Independent Block}    ...Regression  Independent
  7221.  
  7222. {Regression.Output Block}    ...Regression  Output
  7223.  
  7224. {Regression.Reset}    ...Regression  Reset
  7225.  
  7226. {Regression.Y_Intercept Compute|Zero}    ...Regression  Y Intercept
  7227.  
  7228. Description
  7229.  
  7230. {Regression.Option} is the command equivalent for Tools  Numeric Tools  Regression. It performs a regression analysis to show the relationship between a set of independent variables and a dependent variable.
  7231.  
  7232. {Regression.Dependent} indicates the dependent-variable cells. {Regression.Independent} defines the independent variables. In {Regression.Independent}, Block can be noncontiguous with one variable to a column. The dependent and independent selections must all have the same number of rows.
  7233.  
  7234. {Regression.Output} indicates where to store the table of regression results. {Regression.Y_Intercept} specifies whether to compute the Y-intercept, or set it to zero. You can use {Regression.Reset} to clear all settings. Use {Regression.Go} after the other command equivalents to perform the regression analysis. If data changes within the independent or dependent data selections, use {Regression.Go} again to calculate a new regression table.
  7235.  
  7236. You can use {Regression?} or {Regression!} to display the Linear Regression dialog box. {Regression?} lets the user manipulate the dialog box, whereas {Regression!} relies on the macro to manipulate it.
  7237.  
  7238. Example
  7239.  
  7240. The following macro sets these data selections: Independent, B2..D16; Dependent, F2..F16. The last statement performs the regression analysis and stores the results in the cells with upper-left cell H2.
  7241.  
  7242. {Regression.Independent A:B2..A:D16}
  7243.  
  7244. {Regression.Dependent A:F2..A:F16}
  7245.  
  7246. {Regression.Output A:H2}
  7247.  
  7248. {Regression.Go}
  7249.  
  7250.     Related topics
  7251.  
  7252. {REQUEST}
  7253.  
  7254. Syntax
  7255.  
  7256. {REQUEST DDEChannel,DataToReceive,DestBlock}
  7257.  
  7258. Description
  7259.  
  7260. {REQUEST} gets information specified by DataToReceive from applications that support Dynamic Data Exchange (DDE). This information is stored in DestBlock. DataToReceive is a string representing the location of the data to receive in the other application. In Corel Quattro Pro, this could be cells such as A2..A7 or a property such as "(Application.Display)". If requesting a property, the property must be enclosed in parentheses. You must use {INITIATE} to open a channel of communication and obtain the value DDEChannel before using {REQUEST}.
  7261.  
  7262. If your conversation is not within a specific topic (in other words, you opened the channel using the command {INITIATE AppName,"System",DDEChannel}), you can use the following strings in DataToReceive, depending on the application:
  7263.  
  7264. Arguments for DataToReceive
  7265.  
  7266. String    Purpose
  7267.  
  7268. "SysItems"    A listing of all strings you can use with DataToReceive. You can use this command first to view other choices offered by AppName.
  7269.  
  7270. "Topics"    A listing of all topics open. For example, a list of open documents under Word for Windows.
  7271.  
  7272. "Status"    The current status of the application. For example, READY in Excel or EDIT in Corel Quattro Pro when a cell is being edited.
  7273.  
  7274. "Formats"    A list of all Clipboard formats supported by the application or DDE link.
  7275.  
  7276. "Selection"    A list of all items currently selected in the application. For example, in Excel cells A3..A47 could be selected.
  7277.  
  7278. Example
  7279.  
  7280. This macro gets the major and minor version numbers of GroupWise, which is already running.
  7281.  
  7282. dde_channel    0
  7283.  
  7284. get_vernumber    {INITIATE "GroupWise","Command",dde_channel}    
  7285.  
  7286.     {REQUEST dde_channel,"GetOfficeData(ID;MajorVersion!)",G1}
  7287.  
  7288.     {REQUEST dde_channel,"GetOfficeData(ID;MinorVersion!)",G2}
  7289.  
  7290.     {TERMINATE dde_channel}
  7291.  
  7292. This macro gets information from the fields Task and Completed in ObjectVision file TASKLIST.OVD and stores the data in the active notebook.
  7293.  
  7294. dde_channel    10
  7295.  
  7296. command    [@NEXT("TASKS")]
  7297.  
  7298. exec_result    0
  7299.  
  7300. vision_task    Print out third quarter report
  7301.  
  7302. task_complete    Yes
  7303.  
  7304. _get_vision_task    {INITIATE "VISION","TASKLIST.OVD",dde_channel}
  7305.  
  7306.     {REQUEST dde_channel,"Task",vision_task}
  7307.  
  7308.     {REQUEST dde_channel "Completed",task_complete}
  7309.  
  7310.     {EXECUTE dde_channel,+command,exec_result}
  7311.  
  7312. Parameters
  7313.  
  7314. Parameter    Description
  7315.  
  7316. DDEChannel    DDE channel number of the application to receive data from
  7317.  
  7318. DataToReceive    information to receive from the application
  7319.  
  7320. DestBlock    cells to store the data received into
  7321.  
  7322.     Related topics
  7323.  
  7324. {RESIZE}
  7325.  
  7326. Syntax
  7327.  
  7328. {RESIZE x,y,NewWidth,NewHeight,<VertFlip?>,<HorizFlip?>}
  7329.  
  7330. Description
  7331.  
  7332. {RESIZE} resizes all selected objects in the active window (dialog or chart window).
  7333.  
  7334. Parameters
  7335.  
  7336. Parameter    Description
  7337.  
  7338. x a nd y    xy coordinates of the new upper left corner, in pixels
  7339.  
  7340. NewWidth    the new width, in pixels, of the object or group
  7341.  
  7342. NewHeight    the new height, in pixels, of the object or group
  7343.  
  7344. VertFlip?    1 if the object or group is flipped vertically from its previous position
  7345.  
  7346. HorizFlip?    1 if the object or group is flipped horizontally from its previous position
  7347.  
  7348.     Related topics
  7349.  
  7350. {ResizeToSame}
  7351.  
  7352. Description
  7353.  
  7354. {ResizeToSame} is equivalent to Format  Resize To Same, which lets you resize selected objects in the dialog window to the same size as the first object selected.
  7355.  
  7356.     Related topics
  7357.  
  7358. {RESTART}
  7359.  
  7360. Description
  7361.  
  7362. {RESTART} changes the current subroutine to the starting routine (or the main routine) by removing all preceding For loops and subroutine calls.
  7363.  
  7364. {RESTART} is typically used for error handling. If an application is already nested to near the maximum number of levels and a severe error occurs that requires the macro to end, {RESTART} ensures that additional subroutine calls can be made. If you use the {RESTART} command often, you may want to use {BRANCH} to run subroutines.
  7365.  
  7366.     Related topics
  7367.  
  7368. {RestrictInput.Option}
  7369.  
  7370. Command equivalent    Equivalent to...
  7371.  
  7372. {RestrictInput.Enter Block}    No equivalent menu item
  7373.  
  7374. {RestrictInput.Exit}    Any operation that ends INPUT mode
  7375.  
  7376. Description
  7377.  
  7378. {RestrictInput.Enter} enters INPUT mode and stays under macro control until {PAUSEMACRO} is used or {RestrictInput.Exit}, which exits INPUT mode. 
  7379.  
  7380. {RestrictInput.Option} confines selector movement to specific cells of unprotected cells.
  7381.  
  7382. You can use {RestrictInput?} or {RestrictInput!} to display the Restrict Input dialog box. {RestrictInput?} lets the user manipulate the dialog box, whereas {RestrictInput!} relies on the macro to manipulate it.
  7383.  
  7384.     Related topics
  7385.  
  7386. {RETURN}
  7387.  
  7388. Description
  7389.  
  7390. {RETURN} ends the executing subroutine and returns control to the macro that called it. If the macro executing is not a subroutine, execution stops.
  7391.  
  7392. A {RETURN} command at the end of a subroutine is optional, since a macro automatically returns from a subroutine when it reaches a blank cell or a cell containing a value. {RETURN} is usually used with {IF} to return to the main macro if a certain condition is met.
  7393.  
  7394. See {Subroutine} for an example of using {RETURN}.
  7395.  
  7396.     Related topics
  7397.  
  7398. {RIGHT} and {R}
  7399.  
  7400. Syntax
  7401.  
  7402. {RIGHT <Number>} or {R <Number>)
  7403.  
  7404. Description
  7405.  
  7406. {RIGHT} and {R} are equivalent to the Right Arrow key. The optional argument Number moves the selector the corresponding number of columns to the right. You can also use cell references or cell names as arguments.
  7407.  
  7408. Example
  7409.  
  7410. {RIGHT}{RIGHT} moves right two columns.
  7411.  
  7412. {R 6} moves right six columns.
  7413.  
  7414. {RIGHT D9} moves right the number of columns specified in cell D9.
  7415.  
  7416. {RIGHT count} moves right the number of columns specified in the first cell of the selection named count.
  7417.  
  7418. Parameters
  7419.  
  7420. Parameter    Description
  7421.  
  7422. Number    any positive integer (optional)
  7423.  
  7424.     Related topics
  7425.  
  7426. {ROWCOLSHOW}
  7427.  
  7428. Syntax
  7429.  
  7430. {ROWCOLSHOW Block,Show?,Row or Col,FirstPane?}
  7431.  
  7432. Description
  7433.  
  7434. {ROWCOLSHOW} lets you hide or reveal rows and columns (it is equivalent to the cell property Reveal/Hide). Show? specifies whether to reveal (1) or hide (0). Row or Col specifies whether to affect rows (1) or columns (0). Block contains the rows or columns to affect. FirstPane? is used when the active window is split into panes (using View  Split Window). To affect the columns or rows in the left or top pane, set FirstPane? to 1; to affect rows or columns in the right or bottom pane, set FirstPane? to 0.
  7435.  
  7436. Example
  7437.  
  7438. {ROWCOLSHOW A:A..B,1,0,1} reveals columns A and B on sheet A.
  7439.  
  7440. {ROWCOLSHOW A:1..7,0,1,1} hides rows 1 through 7 on sheet A.
  7441.  
  7442. {ROWCOLSHOW A:1..7,1,1,0} reveals rows 1 through 7 on sheet A. If the window is split, the rows are revealed in the right or bottom pane.
  7443.  
  7444. Parameters
  7445.  
  7446. Parameter    Description
  7447.  
  7448. Block    cells containing rows or columns to hide or show
  7449.  
  7450. Show?    1 to reveal rows or columns; 0 to hide rows or columns
  7451.  
  7452. Row or Col    1 to reveal or hide a row; 0 to reveal or hide a column
  7453.  
  7454. FirstPane?    1 to affect rows or columns in left or top window pane; 0 to affect them in the right or bottom window pane
  7455.  
  7456.     Related topics
  7457.  
  7458. {ROWHEIGHT}
  7459.  
  7460. Syntax
  7461.  
  7462. {ROWHEIGHT Block,FirstPane?,Set/Reset,Size}
  7463.  
  7464. Description
  7465.  
  7466. {ROWHEIGHT} provides two ways to change the height of a row or rows (it is equivalent to the cell property Row Height). The rows to change are specified by Block. FirstPane? is used when the active window is split into panes (using View  Split Window). To resize the rows in the left or top pane, set FirstPane? to 1; to resize the rows in the right or bottom pane, set FirstPane? to 0.
  7467.  
  7468. Set/Reset specifies how to change the height. To set a row height, use this syntax: {ROWHEIGHT Block, FirstPane?, 0, Size}
  7469.  
  7470. Size is the new row height, in twips. The maximum height is ten inches (14,400 twips).
  7471.  
  7472. To reset a row to the default height (determined by font sizes in the row), use this syntax: {ROWHEIGHT Block, FirstPane?, 1}
  7473.  
  7474. Example
  7475.  
  7476. {ROWHEIGHT A:1..A:2,1,0,1440} sets the height of rows 1 and 2 (on sheet A) to one inch (1,440 twips).
  7477.  
  7478. {ROWHEIGHT A:1..A:2,0,0,2160} sets the height of rows 1 and 2 (on sheet A) to one and a half inches (2,160 twips). If the window is split, the top or left pane is affected.
  7479.  
  7480. {ROWHEIGHT A:5,1,1} resets the height of row 5 (on sheet A) to the default height.
  7481.  
  7482. Parameters
  7483.  
  7484. Parameter    Description
  7485.  
  7486. Block    cells containing rows to resize
  7487.  
  7488. FirstPane?    1 to resize rows in left or top window pane; 0 to resize rows in right or bottom window pane
  7489.  
  7490. Set/Reset    0 to set the row height; 1 to reset the row height
  7491.  
  7492. Size    new height (in twips) if setting size; not needed if resetting size
  7493.  
  7494.     Related topics
  7495.  
  7496. {SAMPLE}
  7497.  
  7498. Syntax
  7499.  
  7500. {SAMPLE InBlock,OutBlock,Type,Rate}
  7501.  
  7502. Description
  7503.  
  7504. {SAMPLE} returns a periodic or random sample from values in InBlock. {SAMPLE} is equivalent to the Sampling analysis tool.
  7505.  
  7506. Parameters
  7507.  
  7508. Parameter    Description
  7509.  
  7510. InBlock    one or more numeric or cell values representing the input cells
  7511.  
  7512. OutBlock    upper left cell of the output cells
  7513.  
  7514. Type    "P" to specify periodic sample; "R" to specify random sampling
  7515.  
  7516. Rate    a value indicating a sampling rate; if Type = "P", Rate indicates the periodic interval used for sampling; if Type = "R", Rate indicates the number of samples
  7517.  
  7518.     Related topics
  7519.  
  7520. {Scenario.Option}
  7521.  
  7522. Command equivalent    Equivalent to Tools  Scenario  Edit...
  7523.  
  7524. {Scenario.AddCells <Block>}    ... Add
  7525.  
  7526. {Scenario.Capture ScenarioName}    ... Capture
  7527.  
  7528. {Scenario.CaptureArea Area,Block}    ... Modify  Capture Area
  7529.  
  7530. {Scenario.Close}    Closes a Scenario Manager session; no equivalent command
  7531.  
  7532. {Scenario.DeleteGroup GroupName}    ... Modify  Delete
  7533.  
  7534. {Scenario.Find}    ... Find
  7535.  
  7536. {Scenario.Highlight Highlight?(0|1), ChangeCellColor(0-15), ResultCellColor(0-15)}    ... Highlight
  7537.  
  7538. {Scenario.NewGroup GroupName}    ... Modify  New
  7539.  
  7540. {Scenario.Open}    Initializes a Scenario Manager session; no equivalent command
  7541.  
  7542. {Scenario.Remove ScenarioName}    ... Delete
  7543.  
  7544. {Scenario.RemoveCells <Block>}    ... Remove
  7545.  
  7546. {Scenario.RenameGroup OldGroupName,NewGroupName}    ... Modify  Rename
  7547.  
  7548. {Scenario.Report AllGroups(0|1), LeftLabels(0|1), TopLabels(0|1), <Block>}    ... Report
  7549.  
  7550. {Scenario.Show ScenarioName}    ... Scenarios list
  7551.  
  7552. {Scenario.Update_On_Block Update?(0|1)}    ... Modify  Options
  7553.  
  7554. {Scenario.UseGroup GroupName}    ... Group Management
  7555.  
  7556. Description
  7557.  
  7558. {Scenario.Option} is the command equivalent for Tools  Scenario  New. It lets you change values in a model, saving the conditions and results for different scenarios. {Scenario.Open} must be used prior to using other {Scenario.Option} commands; use {Scenario.Close} when you are finished using the Scenario Manager. For {Scenario.AddCells} and {Scenario.RemoveCells}, Block defaults to the currently selected cells. For {Scenario.Report}, Block defaults to the first empty sheet in the notebook.
  7559.  
  7560. You can use {Scenario?} or {Scenario!} to display the Scenario Manager dialog box. {Scenario?} lets the user manipulate the dialog box, whereas {Scenario!} relies on the macro to manipulate it.
  7561.  
  7562. Example
  7563.  
  7564. The following macro captures the base scenario and two additional scenarios for a car loan.
  7565.  
  7566. {Scenario.Open}
  7567.  
  7568. {Scenario.Capture Base Scenario}
  7569.  
  7570. {Scenario.Update}
  7571.  
  7572. {SelectBlock A:F4}
  7573.  
  7574. {PutCell ".096"}
  7575.  
  7576. {SelectBlock A:C5}
  7577.  
  7578. {PutCell "60"}
  7579.  
  7580. {Scenario.Find}
  7581.  
  7582. {Scenario.Highlight 1,7,9}
  7583.  
  7584. {Scenario.Capture APR96-60}
  7585.  
  7586. {Scenario.Update}
  7587.  
  7588. {SelectBlock A:F4}
  7589.  
  7590. {PutCell ".085"}
  7591.  
  7592. {SelectBlock A:C5}
  7593.  
  7594. {PutCell "48"}
  7595.  
  7596. {Scenario.Find}
  7597.  
  7598. {Scenario.Highlight 1,7,9}
  7599.  
  7600. {Scenario.Capture APR85-48}
  7601.  
  7602. {Scenario.Update}
  7603.  
  7604. {Scenario.Report 0,1,0}
  7605.  
  7606. {FileSaveAs "C:\COREL\SUITE8\DATA\CARS.WB3"}
  7607.  
  7608. {Scenario.Close}
  7609.  
  7610.     Related topics
  7611.  
  7612. {ScenarioExpert}
  7613.  
  7614. Description
  7615.  
  7616. {ScenarioExpert} is the command equivalent for Tools  Scenario  New. The macro has no arguments. {ScenarioExpert} displays the first Scenario Expert dialog box.
  7617.  
  7618.     Related topics
  7619.  
  7620. {SCROLLOFF} and {SCROLLON}
  7621.  
  7622. Description
  7623.  
  7624. {SCROLLOFF} and {SCROLLON} are equivalent to Scroll Lock off and Scroll Lock on, respectively.
  7625.  
  7626.     Related topics
  7627.  
  7628. {Search.Option}
  7629.  
  7630. Command equivalent    Equivalent to Edit  Find And Replace...
  7631.  
  7632. {Search.Block Block}    ... Cellss
  7633.  
  7634. {Search.Case Any|Exact}    ... Case Sensitive
  7635.  
  7636. {Search.Direction Column|Row}    ... Columns First
  7637.  
  7638. {Search.Find String}    ... Find
  7639.  
  7640. {Search.Look_In Condition | Formula | Value}    ... Look In
  7641.  
  7642. {Search.Match Part|Whole}    ... Match Whole
  7643.  
  7644. {Search.Next}    ... Next
  7645.  
  7646. {Search.Previous}    ... Previous
  7647.  
  7648. {Search.Replace}    ... Replace button
  7649.  
  7650. {Search.ReplaceAll}    ... Replace All
  7651.  
  7652. {Search.ReplaceBy String}    ... Replace edit field
  7653.  
  7654. {Search.Reset}    ... Reset
  7655.  
  7656. Description
  7657.  
  7658. {Search.Option} is equivalent to Edit  Find And Replace, which searches for strings in the active sheet. Use {Search.ReplaceBy} to specify the replacement string; {Search.Replace} replaces the string.
  7659.  
  7660. You can use {Search?} or {Search!} to display the Find And Replace dialog box. {Search?} lets the user manipulate the dialog box, whereas {Search!} relies on the macro to manipulate it.
  7661.  
  7662. Example
  7663.  
  7664. The following macro searches the active sheet for 1993 in formulas and replaces it with 1994.
  7665.  
  7666. {Search.Reset}
  7667.  
  7668. {Search.Block ""}
  7669.  
  7670. {Search.Look_In Formula}
  7671.  
  7672. {Search.Match Part}
  7673.  
  7674. {Search.Find "1993"}
  7675.  
  7676. {Search.ReplaceBy "1994"}
  7677.  
  7678. {Search.ReplaceAll}
  7679.  
  7680.     Related topics
  7681.  
  7682. {SelectAll}
  7683.  
  7684. Description
  7685.  
  7686. {SelectAll} is the command equivalent for Edit  Select All.
  7687.  
  7688. {SELECTBLOCK}
  7689.  
  7690. Syntax
  7691.  
  7692. {SELECTBLOCK Block, <ActiveCell>}
  7693.  
  7694. Description
  7695.  
  7696. {SELECTBLOCK} lets you select a contiguous or noncontiguous selection within the active notebook. The noncontiguous selections must be enclosed in parentheses.
  7697.  
  7698. Example
  7699.  
  7700. {SELECTBLOCK A4..B23} selects the cells A4..B23 in the active notebook window.
  7701.  
  7702. {SELECTBLOCK (A:A1..A:B12,B:B13..B:C34)} selects the noncontiguous selections A:A1..A:B12, B:B13..B:C34.
  7703.  
  7704. Parameters
  7705.  
  7706. Parameter    Description
  7707.  
  7708. Block    coordinates of the cell(s) to select
  7709.  
  7710. ActiveCell    address of the cell within the cells to make active
  7711.  
  7712.     Related topics
  7713.  
  7714. {SELECTFLOAT}
  7715.  
  7716. Syntax
  7717.  
  7718. {SELECTFLOAT ObjectID1<,ObjectID2,...>}
  7719.  
  7720. Description
  7721.  
  7722. With {SELECTFLOAT} you can select floating objects in the active notebook window using their names. (To find the name of an object, view it and study its Object Name property.) Use {SELECTOBJECT} to select objects in a chart or dialog window.
  7723.  
  7724. Example
  7725.  
  7726. {SELECTFLOAT "Button1"} selects the macro button in the the active notebook window with the object name Button1.
  7727.  
  7728. Parameters
  7729.  
  7730. Parameter    Description
  7731.  
  7732. ObjectIDx    name of the notebook object(s) to select
  7733.  
  7734.     Related topics
  7735.  
  7736. {SELECTOBJECT}
  7737.  
  7738. Syntax
  7739.  
  7740. {SELECTOBJECT ObjectID1<,ObjectID2,...>}
  7741.  
  7742. Description
  7743.  
  7744. With {SELECTOBJECT} you can select objects in the active window using their ID numbers or names. (To find the ID number of an object, view it and study its Object ID property. Its name is stored in its Name property.) Since {SELECTOBJECT} is context-sensitive, you can select controls in a dialog window, drawings in a chart window, or icons in the Objects sheet. 
  7745.  
  7746. Example
  7747.  
  7748. {SELECTOBJECT 2,5,7} selects the objects in the active window with the IDs 2, 5, and 7.
  7749.  
  7750. Parameters
  7751.  
  7752. Parameter    Description
  7753.  
  7754. ObjectIDx    identification number or name of the object(s) to select
  7755.  
  7756.     Related topics
  7757.  
  7758. {Series.Option}
  7759.  
  7760. Command equivalent    Equivalent to Chart  Series...
  7761.  
  7762. {Series.Data_Range SeriesNumber | "XaxisLabelSeries" | "LegendSeries", Block <,CreateIfNotExist? (0|1)>}    ... Number or X-Axis or Legend
  7763.  
  7764. {Series.Delete SeriesNumber <,AndAllSeriesFollowing?>}    ... Delete
  7765.  
  7766. {Series.Go}    ... OK
  7767.  
  7768. {Series.Insert SeriesNumber, Block}    ... Add
  7769.  
  7770. {Series.Label_Range SeriesNumber, Block <,CreateIfNotExist? (0|1)>}    [series Object Inspector] Label Series
  7771.  
  7772. {Series.Legend SeriesNumber, LegendText}    [series Object Inspector] Legend
  7773.  
  7774. {Series.Reverse_Series 1|0}    ... Reverse Series
  7775.  
  7776. {Series.Swap_Row_Col 1|0}    ... Row/Column Swap
  7777.  
  7778. Description
  7779.  
  7780. {Series.Option} is equivalent to Chart  Series and options in a series Object Inspector, which creates or deletes chart series.
  7781.  
  7782. When you manipulate a series using command equivalents, the changes are not made until the command {Series.Go} is used. In all the commands, SeriesNumber is the number of the series to affect (1 for the first series, 2 for the second, and so on).
  7783.  
  7784. {Series.Data_Range} changes the values of an existing series. Block is the new cells that the series should take values from. If you are not sure whether the series exists, set CreateIfNotExist? to 1. Then the series will be created if it does not already exist. You can also use {Series.Data_Range} to set the x-axis series (use "XAxisLabelSeries") or set the legend series (use "LegendSeries").
  7785.  
  7786. {Series.Delete} removes an existing series. Set AndAllSeriesFollowing? to 1 if you also want to remove all series following SeriesNumber.
  7787.  
  7788. {Series.Insert} creates a new series. The series is inserted at the position specified by SeriesNumber. Block refers to the cells containing the new series' data.
  7789.  
  7790. {Series.Label_Range} sets up the labels for each value in a series. Block refers to the cells containing the labels. If you are not sure whether the series exists, set CreateIfNotExist? to 1. Then the series will be created if it does not already exist.
  7791.  
  7792. {Series.Legend} sets the legend text for a series (LegendText is the new text).
  7793.  
  7794. You can use {Series?} or {Series!} to display the Chart Series dialog box. {Series?} lets the user manipulate the dialog box, whereas {Series!} relies on the macro to manipulate it.
  7795.  
  7796. You can add series to a floating chart using {ADDSERIES}.
  7797.  
  7798. Example
  7799.  
  7800. The following macro creates a chart named Profit99 with two series. The series values are in A:A1..A27 and A:C1..C27. The series labels are in A:B1..B27 and A:D1..D27. The x-axis is stored in A:E1..E27.
  7801.  
  7802. {GraphNew Profit99}
  7803.  
  7804. {GraphEdit Profit99}
  7805.  
  7806. {Series.Data_Range 1,A:A1..A27,1}
  7807.  
  7808. {Series.Data_Range 2,A:C1..C27,1}
  7809.  
  7810. {Series.Label_Range 1,A:B1..B27}
  7811.  
  7812. {Series.Label_Range 2,A:D1..D27}
  7813.  
  7814. {Series.Data_Range "XAxisLabelSeries",A:E1..E27}
  7815.  
  7816. {Series.Go}
  7817.  
  7818.  
  7819.  
  7820. The following macro inserts a new series between the two series in the last example.
  7821.  
  7822. {GraphEdit Profit99}
  7823.  
  7824. {Series.Insert 2,A:G1..G27}
  7825.  
  7826. {Series.Go}
  7827.  
  7828.     Related topics
  7829.  
  7830. {SeriesManager.Option}
  7831.  
  7832. Command equivalent    Equivalent to
  7833.  
  7834. {SeriesManager.Define Name, Formula, FormulaText, SeedText}    Edit  Fill  Define QuickFill  Create (Formula series)
  7835.  
  7836. {SeriesManager.Define Name, List, Repeating?(0|1), Value1 <,Value2, Value3,...>}    Data  Fill  Define QuickFill  Create (List series)
  7837.  
  7838. {SeriesManager.Go Name, Rows | Columns | Tabs, Block}    Equivalent to using the SpeedFill button on the Main Toolbar
  7839.  
  7840. {SeriesManager.Remove Name}    Eidit  Fill  Define QuickFill  Delete
  7841.  
  7842. {SeriesManager.Rename OldName, NewName}    Edit  Fill  Define QuickFill  Rename
  7843.  
  7844. Description
  7845.  
  7846. {SeriesManager.Option} is the command equivalent for Data  Fill  Define QuickFill. Use {SeriesManager.Define Name, Formula,...} to create a formula series and {SeriesManager.Define Name, List,...} to create a list series.
  7847.  
  7848. You can use {SeriesManager?} or {SeriesManager!} to display the Define Fill Series dialog box. {SeriesManager?} lets the user manipulate the dialog box, whereas {SeriesManager!} relies on the macro to manipulate it.
  7849.  
  7850. Example
  7851.  
  7852. The following macro creates a SpeedFill series named "First of Month" that consists of the first day of each month in 1995, then fills a column starting at A:A2 with the dates.
  7853.  
  7854. {SeriesManager.Define "First of Month", List, No, "01/01/95", "02/01/95", "03/01/95", "04/01/95", "05/01/85", "06/01/95", "07/01/95", "08/01/95", "09/01/95", "10/01/05", "11/01/95", "12/01/95"}
  7855.  
  7856. {SpeedFill}
  7857.  
  7858. {SeriesManager.Go "First of Month",Columns, A:A2}
  7859.  
  7860.     Related topics
  7861.  
  7862. {SETGRAPHATTR}
  7863.  
  7864. Syntax
  7865.  
  7866. {SETGRAPHATTR FillColor,BkgColor,FillStyle,BorderColor,BoxType}
  7867.  
  7868. Description
  7869.  
  7870. {SETGRAPHATTR} lets you quickly set the properties of all selected objects in the active chart window. If one of the arguments specified in the {SETGRAPHATTR} command is not appropriate for an object, that argument is ignored.
  7871.  
  7872. Each color (FillColor, BkgColor, and BorderColor) is in quotes, and specified in RGB format. For FillStyle, use any of the strings for that option in the appropriate Object Inspector.
  7873.  
  7874. BoxType specifies the new border style for the object; use any Border Style property string included in a chart Object Inspector.
  7875.  
  7876. Parameters
  7877.  
  7878. Parameter    Description
  7879.  
  7880. FillColor    new fill color of the selected object(s)
  7881.  
  7882. BkgColor    new background color of the selected object(s)
  7883.  
  7884. FillStyle    new fill style of the selected object(s)
  7885.  
  7886. BorderColor    new border color of the selected object(s)
  7887.  
  7888. BoxType    new border style of the selected object(s)
  7889.  
  7890.     Related topics
  7891.  
  7892. {SETLCID}
  7893.  
  7894. Syntax
  7895.  
  7896. {SETLCID <LocaleID>}
  7897.  
  7898. Description
  7899.  
  7900. {SETLCID} sets the locale ID to the default locale ID or to one specified by LocaleID. The locale ID is a fixed number which specifies language, separator character, and a variety of other international settings; use {SETLCID} to ensure that the automation controller is using the default ID or the ID of a specific target object.
  7901.  
  7902. For more details on using {SETLCID} and other OLE automation macro commands, Using OLE Automation Features.
  7903.  
  7904. Parameters
  7905.  
  7906. Parameter    Description
  7907.  
  7908. LocaleID    value for a locale ID
  7909.  
  7910. {SETMENUBAR}
  7911.  
  7912. Syntax
  7913.  
  7914. {SETMENUBAR <SystemDefinition>}
  7915.  
  7916. Description
  7917.  
  7918. {SETMENUBAR} lets you specify which menu system displays on the menu bar. SystemDefinition refers to cells containing the new menu system definition.
  7919.  
  7920. You can use {SETMENUBAR} without an argument to restore the default Corel Quattro Pro menu system.
  7921.  
  7922. Example
  7923.  
  7924. {SETMENUBAR "A3..C324"} makes the system defined in A3..C324 the active menu system.
  7925.  
  7926. Parameters
  7927.  
  7928. Parameter    Description
  7929.  
  7930. SystemDefinition    cells containing a menu system definition
  7931.  
  7932.     Related topics
  7933.  
  7934. {SETOBJECTPROPERTY}
  7935.  
  7936. Syntax
  7937.  
  7938. {SETOBJECTPROPERTY Object.Property,Value}
  7939.  
  7940. Description
  7941.  
  7942. {SETOBJECTPROPERTY} can change the property settings of many Corel Quattro Pro objects. Selectable objects such as blocks and annotations can also be changed using {SETPROPERTY}. {SETOBJECTPROPERTY} can affect:
  7943.  
  7944. ¿    Dialog controls. Use this syntax to specify a control to manipulate in a dialog window: [Notebook]DialogName:ObjectID.Property. [Notebook] is optional. For example, the following macro sets the Fill Color property of the control Rectangle1 in the dialog ColorPick to red:
  7945.  
  7946. {SETOBJECTPROPERTY "ColorPick:Rectangle1.Fill_Color", "255,0,0"}
  7947.  
  7948. ¿    Chart objects. Use the same syntax as for dialog controls, but substitute the name of the chart in place of DialogName. For example, the following macro changes the size of a rectangle named ColorPick in the chart 1QTR92:
  7949.  
  7950. {SETOBJECTPROPERTY "1QTR92:ColorPick.Dimension", "0,0,25,25"}
  7951.  
  7952. ¿    Menu items. Use the syntax MenuPath.Property. See the description of {ADDMENU} for the syntax of MenuPath.. For example, the following macro disables File  Save in the active menu system:
  7953.  
  7954. {SETOBJECTPROPERTY "/File/Save.Disabled", "Yes"}
  7955.  
  7956. Parameters
  7957.  
  7958. Value  is the new setting for the property. You can also substitute another instance of Object.Property for this argument to copy property settings between objects. For example, this macro copies the text color of the active cells to the text color of A23:
  7959.  
  7960. {SETOBJECTPROPERTY "A23.Text_Color","Active_Block.Text_Color"}
  7961.  
  7962. See Property Reference for a list of properties you can use.
  7963.  
  7964. Parameters
  7965.  
  7966. Parameter    Description
  7967.  
  7968. Object    object to alter property of
  7969.  
  7970. Property        property to alter
  7971.  
  7972. Value    new property setting (or another instance of Object.Property to copy the new setting from)
  7973.  
  7974.     Related topics
  7975.  
  7976. {SETPOS}
  7977.  
  7978. Syntax
  7979.  
  7980. {SETPOS FilePosition}
  7981.  
  7982. Description
  7983.  
  7984. {SETPOS} moves the file pointer of a file previously opened using {OPEN} to the value FilePosition. (See {GETPOS} for a discussion of the file pointer.) FilePosition refers to the offset, in number of bytes, where you want to position the file pointer. Therefore, the first position in the file is numbered 0, not 1.
  7985.  
  7986. If no file is open when {SETPOS} is encountered (or some other problem occurs), macro execution begins with the next command in the same cell as {SETPOS}. If {SETPOS} succeeds, the rest of that cell's commands are ignored, and execution continues in the next row of the macro.
  7987.  
  7988. For an example using {SETPOS}, see {READ}.
  7989.  
  7990. Parameters
  7991.  
  7992. Parameter    Description
  7993.  
  7994. FilePosition    the number of bytes into a file to set the file pointer to
  7995.  
  7996.     Related topics
  7997.  
  7998. {SETPROPERTY}
  7999.  
  8000. Syntax
  8001.  
  8002. {SETPROPERTY Property,Setting}
  8003.  
  8004. Description
  8005.  
  8006. {SETPROPERTY} alters the properties of the active object (use {SELECTBLOCK}, {SELECTFLOAT}, or {SELECTOBJECT} to select objects).
  8007.  
  8008. To find Property, view the object and use the name of the control that sets the property. If the control name is more than one word, connect the words with underscores (_). See Property Reference for a list of properties you can use.
  8009.  
  8010. Example
  8011.  
  8012. {SETPROPERTY "Text_Color", "3"} sets the selected cells' Text Color property to the fourth color on the notebook palette (the first color is 0).
  8013.  
  8014. The following macro selects the macro button named PushButton1 and renames it Button1.
  8015.  
  8016. name_float    {SELECTFLOAT "PushButton1"}
  8017.  
  8018.         {SETPROPERTY "Object_Name","Button1"}
  8019.  
  8020. Parameters
  8021.  
  8022. Parameter    Description
  8023.  
  8024. Property    string representing the property to change
  8025.  
  8026. Setting    string representing the setting to apply to the property
  8027.  
  8028.     Related topics
  8029.  
  8030. {SHIFT}
  8031.  
  8032. Syntax
  8033.  
  8034. {SHIFT+Key <Number>}
  8035.  
  8036. Description
  8037.  
  8038. {SHIFT} emulates holding down the Shift key while pressing a keystroke. It is handy for selecting cells, portions of a text box, or parts of a formula being edited.
  8039.  
  8040. You can combine {ALT}, {CTRL}, and {SHIFT}. For example, {CTRL+SHIFT+S} is equivalent to pressing Ctrl+Shift+S, which displays a list of styles to apply to the selected cells.
  8041.  
  8042. Example
  8043.  
  8044. {SHIFT+DOWN 5} emulates pressing the Shift key while moving down five cells.
  8045.  
  8046. {EDIT}{END}{SHIFT+LEFT 3} edits the active cell, and selects the last three characters of the cell contents.
  8047.  
  8048. Parameters
  8049.  
  8050. Parameter    Description
  8051.  
  8052. Key    keyboard macro command (PGUP, DOWN, and so on)
  8053.  
  8054. Number    number of times to repeat the operation (optional)
  8055.  
  8056.     Related topics
  8057.  
  8058. {Slide.Option}
  8059.  
  8060. Command equivalent    Action
  8061.  
  8062. {Slide.Eff ect Effect}    Specifies the transition effect to use when displaying the next slide in a slide show; no equivalent command
  8063.  
  8064. {Slide.Goto SlideName}    Takes the active slide show directly to the slide SlideName; no equivalent command
  8065.  
  8066. {Slide.Next}    Advances the active slide show to the next slide; no equivalent command
  8067.  
  8068. {Slide.Previous}    Returns the active slide show to the previous slide; no equivalent command
  8069.  
  8070. {Slide.Run SlideShowName}    Tools  Slide Show  Play
  8071.  
  8072. {Slide.Speed 0-15}    Specifies the transition speed to use when displaying the next slide in a slide show; no equivalent command
  8073.  
  8074. {Slide.Time Time}    Specifies the time in seconds to display the next slide in a slide show; no equivalent command
  8075.  
  8076. Description
  8077.  
  8078. {Slide.Option} lets you build, edit, and present graphic slide show sequences. Effect, Speed, and Time are the same options offered in the Slide Effect property in the Light Table window. {Slide.Effect}, {Slide.Speed}, {Slide.Time}, {Slide.Goto}, {Slide.Next}, and {Slide.Previous} can be in the spreadsheet macro which started the slide show, in a spreadsheet macro run from a chart button, or attached directly to a QuickButton or custom dialog box button.
  8079.  
  8080.     Related topics
  8081.  
  8082. {SlideShowExpert}
  8083.  
  8084. Description
  8085.  
  8086. {SlideShowExpert} is the command equivalent for Tools  Slide Show  New. The macro has no arguments. {SlideShowExpert} displays the first Slide Show Expert dialog box.
  8087.  
  8088.     Related topics
  8089.  
  8090. {SolveFor.Option}
  8091.  
  8092. Command equivalent    Equivalent to Tools  Numeric Tools  Solve For...
  8093.  
  8094. {SolveFor.Accuracy Value}    ... Accuracy
  8095.  
  8096. {SolveFor.Variable_Cell Cell}    ... Variable Cell
  8097.  
  8098. {SolveFor.Formula_Cell Cell}    ... Formula Cell
  8099.  
  8100. {SolveFor.Go}    ... OK
  8101.  
  8102. {SolveFor.Max_Iters Value}    ... Max Iterations
  8103.  
  8104. {SolveFor.Reset}    Clears all Solve For settings; no equivalent menu item
  8105.  
  8106. {SolveFor.Target_Value Value}    ... Target Value
  8107.  
  8108. Description
  8109.  
  8110. {SolveFor.Option} is the command equivalent for Tools  Numeric Tools  Solve For. It solves goal-seeking problems with one variable.
  8111.  
  8112. {SolveFor.Formula_Cell} indicates the location of the formula to evaluate. {SolveFor.Target_Value} is the goal to reach, either a number or a cell containing a number. {SolveFor.Variable_Cell} indicates the formula variable (a referenced cell) that can change to reach the target value.
  8113.  
  8114. {SolveFor.Max_Iters} and {SolveFor.Accuracy} control how many calculation passes to make and how closely the solution must match the target value. Use {SolveFor.Go} after the other commands. {SolveFor.Reset} clears previous settings.
  8115.  
  8116. You can use {SolveFor?} or {SolveFor!} to display the Solve For dialog box. {SolveFor?} lets the user manipulate the dialog box, whereas {SolveFor!} relies on the macro to manipulate it.
  8117.  
  8118.     Related topics
  8119.  
  8120. {Sort.Option}
  8121.  
  8122. Command equivalent    Equivalent to Tools  Sort...
  8123.  
  8124. {Sort.BlankCellsFirst 0|1}    Determines whether to filter blank cells to the top or not during a sort.  Equivalent to Tools  Sort  Options  Sort blank cells first.
  8125.  
  8126. {Sort.Block Block}    ... Cells
  8127.  
  8128. {Sort.Data "Labels First"|"Numbers First"}    ... Data.
  8129.  
  8130. Determines whether to sort Labels or Numbers first.  Equivalent to Tools  Sort  Options  Sort Numbers Last.
  8131.  
  8132. {Sort.Go}    ... OK
  8133.  
  8134. {Sort.Heading 0|1}    Determines whether the first row (or column, depending on sorting based on rows or columns) is used as column headings, or is part of the sort block.  Equivalent to Tools  Sort  Selection contains a heading.
  8135.  
  8136. {Sort.Key_1-5 Block}    ... Column  1st - 5th
  8137.  
  8138. {Sort.Labels "Character Code"|"Dictionary"}    ... Labels. Specifies whether text sorts in Dictionary order (ordinary alphabetizing rules) or Character Code order (according to character number--for example, uppercase letters before lowercase). Not recordable. Retained for use with previous Quattro Pro version macros.
  8139.  
  8140. {Sort.Order_1-5 Ascending|Descending}    ... Ascending  1st - 5th
  8141.  
  8142. {Sort.PreviousSorts N}    Stores up to the last five sorts performed in current file. Equivalent to Tools  Sort  Previous Sorts.
  8143.  
  8144. {Sort.Reset}    ... Reset
  8145.  
  8146. {Sort.Type "Left to Right" | "Top to Bottom"    Determines to sort row-wise or column-wise. Equivalent to Tools  Sort  Options  Sort.
  8147.  
  8148. Description
  8149.  
  8150. {Sort.Option} is equivalent to Tools  Sort, which sorts the entries in cells. To perform the sort, use {Sort.Go} after the other sort command equivalents.
  8151.  
  8152. You can use {Sort?} or {Sort!} to display the Data Sort dialog box. {Sort?} lets the user manipulate the dialog box, whereas {Sort!} relies on the macro to manipulate it.
  8153.  
  8154. {Sort.Reset} allows Corel Quattro Pro to automatically determine the sort block, the first sort key, and whether or not there is a heading row, based on the block surrounding the selected cell, or the selected range.
  8155.  
  8156. Example
  8157.  
  8158. The following macro sorts the cells A3..C40 using two sort keys (columns A and C). The sort is in ascending order, and values in a column are placed in a group before labels in the column. The labels are sorted in dictionary order.
  8159.  
  8160. {Sort.Reset}
  8161.  
  8162. {Sort.Block "A:A3..C40"}
  8163.  
  8164. {Sort.Type Top to bottom}
  8165.  
  8166. {Sort.Heading 0}
  8167.  
  8168. {Sort.Key_1 a25}
  8169.  
  8170. {Sort.Key_2 c23}
  8171.  
  8172. {Sort.Order_1 Ascending}
  8173.  
  8174. {Sort.Order_2 Ascending}
  8175.  
  8176. {Sort.BlankCellsFirst No}
  8177.  
  8178. {Sort.Data Numbers First}
  8179.  
  8180. {Sort.PreviousSorts -1}
  8181.  
  8182. {Sort.Labels Dictionary}
  8183.  
  8184. {Sort.Go}
  8185.  
  8186.     Related topics
  8187.  
  8188. {SPEEDFILL}
  8189.  
  8190. Description
  8191.  
  8192. {SPEEDFILL} is equivalent to the QuickFill button  on the Toolbar. It fills the selected cells with sequential data, based on entries in the upper-left portion of the cells.
  8193.  
  8194. To create or modify a series used with QuickFill, use {SeriesManager.Option}.
  8195.  
  8196.     Related topics
  8197.  
  8198. {SpeedFormat}
  8199.  
  8200. Syntax
  8201.  
  8202. {SpeedFormat FmtName, NumFmt?(0|1), Font?(0|1), Shading?(0|1), TextColor?(0|1), Align?(0|1), LineDraw?(0|1), AutoWidth?(0|1), ColHead?(0|1), ColTotal?(0|1), RowHead?(0|1), RowTotal?(0|1), <SubTotals?(0|1)>}
  8203.  
  8204. Description
  8205.  
  8206. {SpeedFormat} applies the format FmtName to the selected cells; it is equivalent to Format  SpeedFormat or clicking the SpeedFormat button  on the Toolbar. The arguments NumFmt? through SubTotals? each specify a part of the format to apply; use 1 to apply the part or 0 to omit the part.
  8207.  
  8208. You can use {SpeedFormat?} or {SpeedFormat!} to display the SpeedFormat dialog box. {SpeedFormat?} lets the user manipulate the dialog box, whereas {SpeedFormat!} relies on the macro to manipulate it.
  8209.  
  8210. To add or remove formats, use {SpeedFormat.Option}.
  8211.  
  8212. Parameters
  8213.  
  8214. Parameter    Description
  8215.  
  8216. FmtName    name of the format to apply
  8217.  
  8218. NumFmt?    to apply the numeric format; 0 otherwise
  8219.  
  8220. Font?    1 to apply the font; 0 otherwise
  8221.  
  8222. Shading?    1 to apply the shading; 0 otherwise
  8223.  
  8224. TextColor?    1 to apply the text color; 0 otherwise
  8225.  
  8226. Align?    1 to apply the alignment; 0 otherwise
  8227.  
  8228. LineDraw?    1 to apply the line drawing; 0 otherwise
  8229.  
  8230. AutoWidth?    1 to automatically size the columns; 0 otherwise
  8231.  
  8232. ColHead    1 to apply the column heading format; 0 otherwise
  8233.  
  8234. ColTotal?    1 to apply the column total format; 0 otherwise
  8235.  
  8236. RowHead?    1 to apply the row heading format; 0 otherwise
  8237.  
  8238. RowTotal?    1 to apply the row total format; 0 otherwise
  8239.  
  8240. SubTotals?    1 to apply the subtotal format; 0 otherwise
  8241.  
  8242.     Related topics
  8243.  
  8244. {SpeedFormat.Option}
  8245.  
  8246. Command Equivalent    Equivalent to Format  SpeedFormat...
  8247.  
  8248. {SpeedFormat.Add Name, ExampleBlock}    ... Add
  8249.  
  8250. {SpeedFormat.Remove Name}    ... Delete
  8251.  
  8252. Description
  8253.  
  8254. {SpeedFormat.Option} adds formats to the SpeedFormat dialog box, or removes them. {SPEEDFORMAT.Add} lets you specify a name for the new format and the example cells that define the format. {SpeedFormat.Remove} deletes a specified format.
  8255.  
  8256. Example
  8257.  
  8258. The following macro adds a format named "Strauss" to the SpeedFormat dialog box. The format is based on the example cells A:C10..H25.
  8259.  
  8260. {SpeedFormat.Add "Strauss",A:C10..H25}
  8261.  
  8262.     Related topics
  8263.  
  8264. {SPEEDSUM}
  8265.  
  8266. Syntax
  8267.  
  8268. {SPEEDSUM Block}
  8269.  
  8270. Description
  8271.  
  8272. {SPEEDSUM} is equivalent to selecting cells and choosing the QuickSum button  from 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.
  8273.  
  8274. Parameters
  8275.  
  8276. Parameter    Description
  8277.  
  8278. Block    coordinates of the cells to sum, including blank cells for results
  8279.  
  8280.     Related topics
  8281.  
  8282. {STEP}
  8283.  
  8284. Description
  8285.  
  8286. {STEP} is equivalent to the Debug key, Shift+F2.
  8287.  
  8288.     Related topics
  8289.  
  8290. {STEPOFF}
  8291.  
  8292. Description
  8293.  
  8294. {STEPOFF} exits Debug mode, which runs the macro in slow-motion for debugging. The macro then runs at normal speed.
  8295.  
  8296. See {STEPON} for more information.
  8297.  
  8298.     Related topics
  8299.  
  8300. {STEPON}
  8301.  
  8302. Description
  8303.  
  8304. {STEPON} activates Debug mode, which runs macros one step at a time for debugging. When Corel Quattro Pro encounters a {STEPON} command, it pauses and waits for the user to press any key or click the mouse before it runs the next macro command and pauses again. Debug mode continues until {STEPOFF} is encountered or the macro ends.
  8305.  
  8306. {STEPON} is like using the Debug key (Shift+F2) to enter Debug mode, but you can embed it within a macro. The Debug key must be used before a macro begins executing.
  8307.  
  8308. Example
  8309.  
  8310. This example uses {STEPON} and {STEPOFF} to debug the last routine of a macro. Notice that the empty pairs of braces, placed at the beginning and end of the routine, make it easy to add {STEPON} and {STEPOFF} commands when there is a problem, because you can delete them when you want to debug, and insert them when you do not.
  8311.  
  8312. _clean_up    {; Save notebook to disk and say goodbye}
  8313.  
  8314.     { }{STEPON}
  8315.  
  8316.     {FileSave}
  8317.  
  8318.     {BRANCH _quit_msg}
  8319.  
  8320.     
  8321.  
  8322. _quit_msg    { }{STEPOFF}
  8323.  
  8324.     {QUIT}
  8325.  
  8326.     Related topics
  8327.  
  8328. {Subroutine}
  8329.  
  8330. Syntax
  8331.  
  8332. {Subroutine <ArgumentList>}
  8333.  
  8334. Description
  8335.  
  8336. {Subroutine} calls the subroutine of the specified name, passing along any arguments given in ArgumentList. (Those arguments are then defined within the subroutine using the {DEFINE} command.)
  8337.  
  8338. Any macro can be a subroutine. The macro commands in the subroutine run until {RETURN}, a blank cell, or a value is encountered. Then Corel Quattro Pro returns control to the calling routine, continuing execution with the macro command in the next cell. If the subroutine ends with {QUIT}, both the subroutine and the calling macro(s) end.
  8339.  
  8340. Example
  8341.  
  8342. The following example invokes a subroutine that forces the user to verify printing twice before it begins.
  8343.  
  8344. _print    {GETLABEL "Do you want to print this (Y/N)?",ans_cell}
  8345.  
  8346.     {IF @UPPER(ans_cell)="Y"}{_chk_twice}
  8347.  
  8348.     {HOME}
  8349.  
  8350.     
  8351.  
  8352. _chk_twice    {; Double-check the print request}
  8353.  
  8354.     {GETLABEL "Are you certain (Y/N)?",ans_cell}
  8355.  
  8356.     {IF @UPPER(ans_cell)="N"} {RETURN}
  8357.  
  8358.     {GETLABEL "Ready to print now (Y/N)?",ans_cell}
  8359.  
  8360.     {IF @UPPER(ans_cell)="Y"}{Print.DoPrint}
  8361.  
  8362.     {RETURN}
  8363.  
  8364.     
  8365.  
  8366. ans_cell    Y
  8367.  
  8368. Parameters
  8369.  
  8370. Parameter    Description
  8371.  
  8372. Subroutine    name of the subroutine being called (which can be a cell name or a cell address)
  8373.  
  8374. ArgumentList    list of one or more arguments to be passed to the specified subroutine (optional)
  8375.  
  8376.     Related topics
  8377.  
  8378. {TAB}
  8379.  
  8380. Syntax
  8381.  
  8382. {TAB <Number>}
  8383.  
  8384. Description
  8385.  
  8386. {TAB}, like {BIGRIGHT}, is equivalent to the Tab key, which moves one cell to the right.
  8387.  
  8388. When the Compatible Keys option of Tools  Settings  General is checked, {TAB} selects the leftmost cell of the screen that is to the right of the current one.
  8389.  
  8390. The optional argument Number specifies how many times to repeat the operation; for example, {TAB 2} is equivalent to pressing Tab twice.
  8391.  
  8392. Parameters
  8393.  
  8394. Parameter    Description
  8395.  
  8396. Number    any positive integer or the address of a cell containing a positive integer (optional)
  8397.  
  8398.     Related topics
  8399.  
  8400. {TabControl.Option}
  8401.  
  8402. Command Equivalent    Equivalent to Properties  Page List...
  8403.  
  8404. {TabControl.Add_Page TabControlName, Position}    Add
  8405.  
  8406. {TabControl.Delete_Page TabControlName, TabButtonName}    Delete
  8407.  
  8408. {TabControl.Insert_Page TabControlName, Position}    Insert
  8409.  
  8410. {TabControl.Move_Page TabControlName, TabButtonName,Up|Down}    Move
  8411.  
  8412. {TabControl.SelectPage TabControlName, TabButtonName}    Select a named sheet
  8413.  
  8414. Description
  8415.  
  8416. {TabControl.Option} is equivalent to Properties  Page List, which lets you add, remove, and rearrange tabs in the current tab control.
  8417.  
  8418. {TABLE}
  8419.  
  8420. Description
  8421.  
  8422. {TABLE} is equivalent to the Table key, F8, which repeats the last Tools  Numeric Tools  What-If operation.
  8423.  
  8424.     Related topics
  8425.  
  8426. {TableLink.Option}
  8427.  
  8428. Command equivalent    Equivalent to Insert  External Data  Table Link...
  8429.  
  8430. {TableLink.Block Block}    ... Cells
  8431.  
  8432. {TableLink.Name TableName}    ... Table
  8433.  
  8434.   {TableLink.Go}    ... OK
  8435.  
  8436. Description
  8437.  
  8438. {TableLink.Option} is the command equivalent Insert  External Data  Table Link. It establishes a link to an external database table and displays the table in a Corel Quattro Pro notebook.
  8439.  
  8440. You can use {TableLink?} or {TableLink!} to display the Table Link dialog box. {TableLink?} lets the user manipulate the dialog box, whereas {TableLink!} relies on the macro to manipulate it.
  8441.  
  8442.     Related topics
  8443.  
  8444. {TableQuery.Option}
  8445.  
  8446. Command equivalent    Equivalent to Insert  External Data  Table Query...
  8447.  
  8448. {TableQuery.Destination Block}    ... Destination
  8449.  
  8450. {TableQuery.FileQuery Yes|No}    ... Query in File
  8451.  
  8452. {TableQuery.Go}    ... OK
  8453.  
  8454. {TableQuery.QueryBlock Block}    ... QBE Selection
  8455.  
  8456. {TableQuery.QueryFile Filename}    ... QBE File
  8457.  
  8458. Description
  8459.  
  8460. {TableQuery.Option} is equivalent to Insert  External Data  Table Query, which lets you search external databases for records. The query is not performed until {TableQuery.Go} is used.
  8461.  
  8462. You can use {TableQuery?} or {TableQuery!} to display the Table Query dialog box. {TableQuery?} lets the user manipulate the dialog box, whereas {TableQuery!} relies on the macro to manipulate it.
  8463.  
  8464. Example
  8465.  
  8466. The following macro searches the external table TASKLIST.DB using the query file TASKLIST.QBE. The results of the search are stored in A:A2.
  8467.  
  8468. {TableQuery.FileQuery Yes}
  8469.  
  8470. {TableQuery.QueryFile TASKLIST.QBE}
  8471.  
  8472. {TableQuery.Destination A:A2}
  8473.  
  8474. {TableQuery.Go}
  8475.  
  8476.  
  8477.  
  8478. The next macro searches the same database, but uses the query defined in the named cell task_query.
  8479.  
  8480. {TableQuery.FileQuery No}
  8481.  
  8482. {TableQuery.QueryBlock task_query}
  8483.  
  8484. {TableQuery.Destination A:A2}
  8485.  
  8486. {TableQuery.Go}
  8487.  
  8488.     Related topics
  8489.  
  8490. {TableView}
  8491.  
  8492. Description
  8493.  
  8494. {TableView} is equivalent to Insert  External Data  Database Desktop, which launches the Database Desktop.
  8495.  
  8496.     Related topics
  8497.  
  8498. {TemplateTB.Option}
  8499.  
  8500. Command Equivalent    Description
  8501.  
  8502. {TemplateTB.Add Name, Path}    Adds a new Template Toolbar
  8503.  
  8504. {TemplateTB.Show Name}    Shows a Template Toolbar
  8505.  
  8506. {TemplateTB.Hide Name}    Hides a Template Toolbar
  8507.  
  8508. {TemplateTB.Remove Name}    Removes a Template Toolbar
  8509.  
  8510. {TemplateTB.Reset Name}    Resets a Template Toolbar to its default setup
  8511.  
  8512. {TemplateTB.Docking_Position Name, Top | Left | Right | Bottom | Floating}    Sets the docking position of a Template Toolbar
  8513.  
  8514. {TemplateTB.Rename Name, NewName}    Renames a Template Toolbar
  8515.  
  8516. {TemplateTB.Context Name, Desktop (Yes | No), Notebook (Yes | No), Chart (Yes | No), Dialog (Yes | No), Objects Page (Yes | No), Slide Show (Yes | No)}    Sets the contexts in Corel Quattro Pro in which a Template Toolbar appears
  8517.  
  8518. Description
  8519.  
  8520. {TemplateTB.Option} is similar to {Toolbar.Option} except that it controls the Template Toolbar.
  8521.  
  8522. {TERMINATE}
  8523.  
  8524. Syntax
  8525.  
  8526. {TERMINATE DDEChannel}
  8527.  
  8528. Description
  8529.  
  8530. {TERMINATE} closes down a DDE conversation opened with {INITIATE}.
  8531.  
  8532. For an example using {TERMINATE}, see {EXECUTE}.
  8533.  
  8534. Parameters
  8535.  
  8536. Parameter    Description
  8537.  
  8538. DDEChannel    channel number of the DDE conversation to terminate
  8539.  
  8540.     Related topics
  8541.  
  8542. {Toolbar.Option}
  8543.  
  8544. Command equivalent    Equivalent to View  Toolbars...
  8545.  
  8546. {Toolbar.Add Name, Path}    Add
  8547.  
  8548. {Toolbar.Context Name, Desktop(1|0), Notebook(1|0), Chart(1|0), Dialog(1|0), Objects Page(1|0), Slide Show(1|0)}    Options  Visible in Context
  8549.  
  8550. {Toolbar.Docking_Position Name, Top | Left | Right | Bottom | Floating, Order}    Options  Docking Position
  8551.  
  8552. {Toolbar.Hide Name}    Hide
  8553.  
  8554. {Toolbar.Remove Name}    Remove
  8555.  
  8556. {Toolbar.Rename Name, NewName}    Options  Name
  8557.  
  8558. {Toolbar.Reset Name}    Reset
  8559.  
  8560. {Toolbar.Show Name}    Show
  8561.  
  8562. Description
  8563.  
  8564. {Toolbar.Option} is the command equivalent for View  Toolbars.
  8565.  
  8566. {Toolbar.Docking_Position Order} is a numeric number used to position the selected toolbar in relation to other visible toolbars at the specified docking position:
  8567.  
  8568. -1    displays the specified toolbar at the end of toolbars at the specified docking position
  8569.  
  8570. 0    displays the specified toolbar at the beginning of toolbars at the specified docking position
  8571.  
  8572. 1    displays the specified toolbar 1 position in from the beginning of toolbars at the specified docking position
  8573.  
  8574. n    displays the specified toolbar n positions in from the beginning of toolbars at the specified docking position.
  8575.  
  8576. To record such macros as adding, positioning, and removing toolbars, right-click anywhere on a visible toolbar while recording a macro.
  8577.  
  8578. {TTESTM}
  8579.  
  8580. Syntax
  8581.  
  8582. {TTESTM InBlock1,InBlock2,OutBlock,<Labels>,<Alpha>,<Difference>}
  8583.  
  8584. Description
  8585.  
  8586. {TTESTM} performs a Student's t-Test using two indepependent (rather than paired) samples with equal variances. {TTESTM} is equivalent to the t-Test analysis tool.
  8587.  
  8588. Parameters
  8589.  
  8590. Parameter    Description
  8591.  
  8592. InBlock1    one or more numeric cell values representing the first input cells
  8593.  
  8594. InBlock2    one or more numeric cell values representing the second input cells
  8595.  
  8596. OutBlock    upper left cell of the output cells
  8597.  
  8598. 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
  8599.  
  8600. Alpha    significance level of the test; the default is 0.05
  8601.  
  8602. Difference    value indicating the hypothetical difference in the means between InBlock1 and InBlock2; the default is 0
  8603.  
  8604.     Related topics
  8605.  
  8606. {UNDO}
  8607.  
  8608. Description
  8609.  
  8610. {UNDO} "takes back" the last command given and restores the previous state for most commands.
  8611.  
  8612.     Related topics
  8613.  
  8614. {UngroupObjects}
  8615.  
  8616. Description
  8617.  
  8618. {UngroupObjects} is the command equivalent for Format  Ungroup. It separates the selected group of chart annotation objects so each can be moved or modified without affecting the others.
  8619.  
  8620.     Related topics
  8621.  
  8622. {UP} and {U}
  8623.  
  8624. Syntax
  8625.  
  8626. {UP <Number>} or {U <Number>}
  8627.  
  8628. Description
  8629.  
  8630. {UP} and {U} are equivalent to the Up Arrow key. The optional argument Number moves the selector up the corresponding number of rows. You can use cell references or cell names as arguments.
  8631.  
  8632. Example
  8633.  
  8634. {UP}{UP}{UP}    moves the selector up three rows.
  8635.  
  8636. {UP 4}    moves the selector up four rows.
  8637.  
  8638. {UP C13}    moves the selector up the number of rows specified in cell C13.
  8639.  
  8640. {UP temp}    moves the selector up the number of rows specified in the first cell of the selection named temp.
  8641.  
  8642. Parameters
  8643.  
  8644. Parameter    Description
  8645.  
  8646. Number    any positive integer (optional)
  8647.  
  8648.     Related topics
  8649.  
  8650. {VLINE}
  8651.  
  8652. Syntax
  8653.  
  8654. {VLINE Distance}
  8655.  
  8656. Description
  8657.  
  8658. {VLINE} scrolls the active notebook vertically by Distance rows. If the number is positive, it scrolls down; if negative, it scrolls up. {VLINE} does not move the selector; only the view of the notebook is altered. Use {DOWN} or {UP} to move the selector vertically.
  8659.  
  8660. Example
  8661.  
  8662. {VLINE 11} scrolls the display 11 rows down.
  8663.  
  8664. {VLINE -4} scrolls the display 4 columns up.
  8665.  
  8666. Parameters
  8667.  
  8668. Parameter    Description
  8669.  
  8670. Distance    number of rows to scroll the active notebook vertically
  8671.  
  8672.     Related topics
  8673.  
  8674. {VPAGE}
  8675.  
  8676. Syntax
  8677.  
  8678. {VPAGE Distance}
  8679.  
  8680. Description
  8681.  
  8682. {VPAGE} scrolls the active notebook vertically by Distance screens. If the number is positive, it scrolls down; if negative, it scrolls up. {VPAGE} does not move the selector; only the view of the notebook is altered. Use the commands {PGDN} or {PGUP} to move the selector vertically.
  8683.  
  8684. Parameters
  8685.  
  8686. Parameter    Description
  8687.  
  8688. Distance    number of screens to scroll the active notebook vertically
  8689.  
  8690.     Related topics
  8691.  
  8692. {WAIT}
  8693.  
  8694. Syntax
  8695.  
  8696. {WAIT DateTimeNumber}
  8697.  
  8698. Description
  8699.  
  8700. {WAIT} pauses macro execution until the time corresponding to DateTimeNumber arrives. DateTimeNumber is a standard date/time serial number (both date and time portions must be included). If the current date is already later than the date specified in DateTimeNumber, macro execution continues immediately.
  8701.  
  8702. While execution is suspended, the macro is inactive, a WAIT indicator displays on the status line, and normal notebook operation can be restored only by pressing Ctrl+Break.
  8703.  
  8704. Example
  8705.  
  8706. The following macro beeps, displays a "Go home" message, and suspends all execution until 8:00 a.m. the next day:
  8707.  
  8708.     {BEEP 3}
  8709.  
  8710.     {PUTCELL "Time to go home!"}
  8711.  
  8712.     {DOWN}
  8713.  
  8714.     {WAIT @TODAY+1+@TIMEVALUE("8:00 AM")}
  8715.  
  8716. This macro waits for one day:
  8717.  
  8718.     {WAIT @NOW+1}
  8719.  
  8720. This macro uses {WAIT} to alert the user by sounding five short beeps, spaced two seconds apart:
  8721.  
  8722. \H    {FOR counter,1,5,1,_loop_here}
  8723.  
  8724.  
  8725.  
  8726. _loop_here    {BEEP 3}
  8727.  
  8728.         {WAIT @NOW+@TIME(0,0,2)}
  8729.  
  8730. counter 6
  8731.  
  8732. Parameters
  8733.  
  8734. Parameter    Description
  8735.  
  8736. DateTimeNumber    the date and time at which macro execution can resume
  8737.  
  8738.     Related topics
  8739.  
  8740. {WaitCursorOn} and {WaitCursorOff}
  8741.  
  8742. {WaitCursorOn} and {WaitCursorOff} turn on or off the default Windows "busy" cursor.
  8743.  
  8744. {WhatIf.Option}
  8745.  
  8746. Command equivalent    Equivalent to Tools   Numeric Tools  What-If...
  8747.  
  8748. {WhatIf.Block Block}    ... Data Table
  8749.  
  8750. {WhatIf.Input_Cell_1 Cell}    ... Input Cell (Column Input Cell)
  8751.  
  8752. {WhatIf.Input_Cell_2 Cell}    ... Row Input Cell
  8753.  
  8754. {WhatIf.One_Way}    ... One Free Variable, ... Generate
  8755.  
  8756. {WhatIf.Reset}    ... Reset
  8757.  
  8758. {WhatIf.Two_Way}    ... Two Free Variables, ... Generate
  8759.  
  8760. Description
  8761.  
  8762. {WhatIf.Option} is the command equivalent for Tools  Numeric Tools  What-If. It builds one- or two-variable "what-if" tables that display a range of results for different conditions.
  8763.  
  8764. If you are creating a one-variable table, use these command equivalents: {WhatIf.Input_Cell_1}, {WhatIf.Block}, {WhatIf.One_Way}. For two-variable tables, use {WhatIf.Input_Cell_2} after indicating the first input cell; use {WhatIf.Two_Way} instead of {WhatIf.One_Way}.
  8765.  
  8766. You can use {WhatIf?} or {WhatIf!} to display the What-If dialog box. {WhatIf?} lets the user manipulate the dialog box, whereas {WhatIf!} relies on the macro to manipulate it.
  8767.  
  8768. Example
  8769.  
  8770. The following macro defines A4..H18 as the "what-if" cells, B1 as Input Cell 1, B2 as Input Cell 2, and builds a two-variable table.
  8771.  
  8772. {Whatif.Block A:A4..A:H18}
  8773.  
  8774. {Whatif.Input_cell_1 A:B1}
  8775.  
  8776. {Whatif.Input_cell_2 A:B2}
  8777.  
  8778. {Whatif.Two_Way}
  8779.  
  8780.     Related topics
  8781.  
  8782. {WhatIfExpert}
  8783.  
  8784. Description
  8785.  
  8786. {WhatIfExpert} is the command equivalent for Tools  Numeric Tools  What-If. The macro has no arguments. {WhatIfExpert} displays the first What-If Expert dialog box.
  8787.  
  8788.     Related topics
  8789.  
  8790. {WINDOW}
  8791.  
  8792. Syntax
  8793.  
  8794. {WINDOW<Number>}
  8795.  
  8796. Description
  8797.  
  8798. {WINDOW} switches to the specified open notebook window (1-9). This command is for compatibility with Corel Quattro Pro for DOS; use {ACTIVATE} to activate windows when developing macros for Corel Quattro Pro for Windows.
  8799.  
  8800. The argument Number is optional; {WINDOW} without an argument is equivalent to the Pane key, F6.
  8801.  
  8802. Parameters
  8803.  
  8804. Parameter    Description
  8805.  
  8806. Number    number of an open notebook window (1-9)
  8807.  
  8808.     Related topics
  8809.  
  8810. {WindowArrIcon}
  8811.  
  8812. Description
  8813.  
  8814. {WindowArrIcon} is equivalent to Window  Arrange Icons, which lines up minimized windows on the Corel Quattro Pro desktop or icons on the Objects sheet.
  8815.  
  8816.     Related topics
  8817.  
  8818. {WindowCascade}
  8819.  
  8820. Description
  8821.  
  8822. {WindowCascade} is equivalent to Window  Cascade, which rearranges all open windows on the Corel Quattro Pro desktop.
  8823.  
  8824.     Related topics
  8825.  
  8826. {WindowClose}
  8827.  
  8828. Description
  8829.  
  8830. {WindowClose} is equivalent to Close in a Control menu, which closes the active window (if the active window is not saved, a prompt appears to confirm the operation).
  8831.  
  8832.     Related topics
  8833.  
  8834. {WindowHide}
  8835.  
  8836. Description
  8837.  
  8838. {WindowHide} is equivalent to Window  Hide, which conceals the active notebook window.
  8839.  
  8840.     Related topics
  8841.  
  8842. {WindowMaximize}
  8843.  
  8844. Description
  8845.  
  8846. {WindowMaximize} is equivalent to Maximize in a Control menu, which enlarges the active window so it fills the screen.
  8847.  
  8848.     Related topics
  8849.  
  8850. {WindowMinimize}
  8851.  
  8852. Description
  8853.  
  8854. {WindowMinimize} is equivalent to Minimize in a Control menu, which shrinks the active window to an icon on the Corel Quattro Pro desktop.
  8855.  
  8856.     Related topics
  8857.  
  8858. {WindowMove}
  8859.  
  8860. Syntax
  8861.  
  8862. {WindowMove UpperLeftX, UpperLeftY}
  8863.  
  8864. Description
  8865.  
  8866. {WindowMove} is equivalent to Move in a Control menu, which lets you move the active window. UpperLeftX and UpperLeftY are the new coordinates of the upper-left corner of the window.
  8867.  
  8868. Parameters
  8869.  
  8870. Parameter    Description
  8871.  
  8872. UpperLeftX    distance between the left side of the Corel Quattro Pro window and the left side of active window, in pixels
  8873.  
  8874. UpperLeftY    distance between the bottom of the input line and the top of active window, in pixels
  8875.  
  8876.     Related topics
  8877.  
  8878. {WindowNewView}
  8879.  
  8880. Description
  8881.  
  8882. {WindowNewView} is the command equivalent for Window  New View. It displays a duplicate copy of the active notebook in a new window.
  8883.  
  8884.     Related topics
  8885.  
  8886. {WindowNext}
  8887.  
  8888. Description
  8889.  
  8890. {WindowNext} is equivalent to choosing Next in a Control menu or pressing Ctrl+F6. It makes the next window active.
  8891.  
  8892.     Related topics
  8893.  
  8894. {WindowPanes}
  8895.  
  8896. Syntax
  8897.  
  8898. {WindowPanes Horizontal|Vertical|Clear, Synch?(0|1), <Width>, <Height>}
  8899.  
  8900. Description
  8901.  
  8902. {WindowPanes} is the command equivalent for View  Split Windows. It splits a notebook window into two horizontal or vertical panes; use Clear to restore a single pane.
  8903.  
  8904. Width and Height indicate the ratio relationship between the panes.
  8905.  
  8906. You can use {WindowPanes?} or {WindowPanes!} to display the Split Window dialog box. {WindowPanes?} lets the user manipulate the dialog box, whereas {WindowPanes!} relies on the macro to manipulate it.
  8907.  
  8908. Example
  8909.  
  8910. {WindowPanes Vertical,0,2,1} splits the notebook window into two vertical panes, not synchronized. The first pane is twice as wide as the second.
  8911.  
  8912. Parameters
  8913.  
  8914. Parameter    Description
  8915.  
  8916. Synch?    whether the panes are synchronized: yes (1) or no (0)
  8917.  
  8918. Width    width of the left pane or height of the upper pane (optional)
  8919.  
  8920. Height    width of the right pane or height of the lower pane (optional)
  8921.  
  8922.     Related topics
  8923.  
  8924. {WindowQPW.Option}
  8925.  
  8926. Command equivalent    Equivalent to the Corel Quattro Pro Control menu  ...
  8927.  
  8928. {WindowQPW.Maximize}    ... Maximize
  8929.  
  8930. {WindowQPW.Minimize}    ... Minimize
  8931.  
  8932. {WindowQPW.Restore}    ... Restore
  8933.  
  8934. Description
  8935.  
  8936. {WindowQPW.Option} is the command equivalent for the Maximize, Minimize, and Restore commands on the Corel Quattro Pro Control menu.
  8937.  
  8938. ¿    {WindowQPW.Maximize} enlarges the Corel Quattro Pro window so it fills the screen.
  8939.  
  8940. ¿    {WindowQPW.Minimize} shrinks the Corel Quattro Pro window to an icon.
  8941.  
  8942. ¿    {WindowQPW.Restore} restores the Corel Quattro Pro window to its original size.
  8943.  
  8944.     Related topics
  8945.  
  8946. {WindowRestore}
  8947.  
  8948. Description
  8949.  
  8950. {WindowRestore} is equivalent to Restore on the Control Menu. It restores minimized windows to their original size.
  8951.  
  8952.     Related topics
  8953.  
  8954. {WindowShow}
  8955.  
  8956. Syntax
  8957.  
  8958. {WindowShow Name}
  8959.  
  8960. Description
  8961.  
  8962. {WindowShow} is the command equivalent for Window  Show. It shows hidden window Name and makes it active.
  8963.  
  8964. You can use {WindowShow?} or {WindowShow!} to display the Show Window dialog box. {WindowShow?} lets the user manipulate the dialog box, whereas {WindowShow!} relies on the macro to manipulate it.
  8965.  
  8966. Parameters
  8967.  
  8968. Parameter    Description
  8969.  
  8970. Name    name of the hidden window to show
  8971.  
  8972.     Related topics
  8973.  
  8974. {WindowSize}
  8975.  
  8976. Syntax
  8977.  
  8978. {WindowSize X,Y}
  8979.  
  8980. Description
  8981.  
  8982. {WindowSize} is equivalent to Size in the Control menu. It sizes the active window to the specified width and height.
  8983.  
  8984. Parameters
  8985.  
  8986. Parameter    Description
  8987.  
  8988. X    new window width, in pixels
  8989.  
  8990. Y    new window height, in pixels
  8991.  
  8992.     Related topics
  8993.  
  8994. {WINDOWSOFF}
  8995.  
  8996. Description
  8997.  
  8998. {WINDOWSOFF} disables normal screen updating during macro execution when Corel Quattro Pro's Macro Suppress-Redraw property is set to None. It can significantly speed up execution for most macros because it saves Corel Quattro Pro the time normally needed to redraw the screen each time a cell changes. Corel Quattro Pro cancels it once the macro stops executing, so the user is not "locked out" of the screen. To cancel its effect within the same macro, use {WINDOWSON}.
  8999.  
  9000. Use {WINDOWSOFF} with {PANELOFF} to completely disable normal screen updating.
  9001.  
  9002. After a {WINDOWSOFF} command, avoid letting users point to cells in response to an Edit command. The selector may be in a different cell than the "frozen" display indicates. If users must point to cells, precede it with a {WINDOWSON} command.
  9003.  
  9004. Example
  9005.  
  9006. The following macro uses {WINDOWSOFF} and {WINDOWSON} to turn off screen updating while Corel Quattro Pro sorts a list of vendors with the cell name vendor_name, thereby speeding up the sort operation.
  9007.  
  9008. sort_blk    vendor_name
  9009.  
  9010. key_nm    vendor_name
  9011.  
  9012.  
  9013.  
  9014. \W    {QGOTO}sort_message~
  9015.  
  9016.         {WINDOWSOFF}
  9017.  
  9018.         {_sort vendor_name}
  9019.  
  9020.         {WINDOWSON}
  9021.  
  9022.  
  9023.  
  9024. _sort    {DEFINE sort_blk}
  9025.  
  9026.         {Sort.Block @@(sort_blk)}
  9027.  
  9028.         {BlockCopy sort_blk,key_nm}
  9029.  
  9030.         {Sort.Key_1 @@(key_nm)}
  9031.  
  9032.         {Sort.Order_1 "Ascending"}
  9033.  
  9034.         {Sort.Go}
  9035.  
  9036.  
  9037.  
  9038. sort_message    SORT IS IN PROGRESS
  9039.  
  9040.  
  9041.  
  9042. vendor_name    General Cement Co.
  9043.  
  9044.         Alveoli Mfg., Inc.
  9045.  
  9046.         Sandab Development
  9047.  
  9048.         Consolidated Dust
  9049.  
  9050.     Related topics
  9051.  
  9052. {WINDOWSON}
  9053.  
  9054. Description
  9055.  
  9056. {WINDOWSON} reenables normal screen updating during macro execution, canceling the effects of a previous {WINDOWSOFF}. However, the screen will not be updated until {CALC} is encountered or the macro ends. If {WINDOWSON} is called when screen updating is already in effect, the command is ignored.
  9057.  
  9058. See {WINDOWSOFF}for an example using {WINDOWSON}.
  9059.  
  9060.     Related topics
  9061.  
  9062. {WindowTile}
  9063.  
  9064. Description
  9065.  
  9066. {WindowTile} is the command equivalent for Window  Tile. It displays all open windows without overlapping them.
  9067.  
  9068.     Related topics
  9069.  
  9070. {WindowTile.TileTopToBottom}
  9071.  
  9072. Description
  9073.  
  9074. Tiles multiple files horizontally. Equivalent to Window  Tile Top To Bottom.
  9075.  
  9076. {WindowTitles}
  9077.  
  9078. Syntax
  9079.  
  9080. {WindowTitles Horizontal | Vertical | Both | Clear}
  9081.  
  9082. Description
  9083.  
  9084. {WindowTitles Horizontal|Vertical|Both|Clear} is the command equivalent for View  Locked Titles. It locks specific rows and/or columns of a spreadsheet sheet onscreen as titles. When you scroll, the titles remain fixed onscreen while the rows below (or columns to the right) scroll as usual. "Horizontal" locks rows above the active cell, "Vertical" locks columns to the left of the active cell, and "Both" locks both rows and columns. Use "Clear" to unlock the titles.
  9085.  
  9086. You can use {WindowTitles?} or {WindowTitles!} to display the Locked Titles dialog box. {WindowTitles?} lets the user manipulate the dialog box, whereas {WindowTitles!} relies on the macro to manipulate it.
  9087.  
  9088. You can use {WindowTitles.Title} with @COMMAND, @PROPERTY, and @CURVALUE.
  9089.  
  9090. Example
  9091.  
  9092. Use @COMMAND{"WindowTitles.Title"} to determine whether locked titles are in use and display their type (Horizontal, Vertical, Both, or Clear). You can also use this command in macros to check for locked titles.
  9093.  
  9094. \A    {Calc} {If TitlesOn} {WindowTitles Clear} {Quit}
  9095.  
  9096.     {WindowTitles Both}
  9097.  
  9098.  
  9099.  
  9100. TitlesOn    @COMMAND("WindowTitles.Title") = "Both"
  9101.  
  9102.     Related topics
  9103.  
  9104. {WorkSpace.Option}
  9105.  
  9106. Command equivalent    Equivalent to File  Workspace...
  9107.  
  9108. {Workspace.Restore Filename}    ... Restore
  9109.  
  9110. {Workspace.Save Filename}    ... Save
  9111.  
  9112. Description
  9113.  
  9114. {Workspace.Save} saves all open notebooks as a group with the specified Filename (Corel Quattro Pro's default file extension for workspaces is .WBS). {Workspace.Restore} opens the specified file.
  9115.  
  9116.     Related topics
  9117.  
  9118. {WRITE}
  9119.  
  9120. Syntax
  9121.  
  9122. {WRITE String<,String2,String3,...>}
  9123.  
  9124. Description
  9125.  
  9126. {WRITE} copies String to a file opened with the {OPEN} command, starting at the location of the file pointer. The file pointer is advanced to the position following the last character written, and the file's size increases if necessary. See {GETPOS} for a discussion of the file pointer.
  9127.  
  9128. {WRITE} does not place the carriage return and linefeed characters at the ends of lines. To include these characters, use {WRITELN}.
  9129.  
  9130. String can be a quoted string or text formula. If using more than one String, separate them with commas. For example, to write the label Dear Ms. followed by the contents of B6 into the file, use the following:
  9131.  
  9132. {WRITE "Dear Ms. ",+B6}
  9133.  
  9134. You can use an unlimited number of String arguments with {WRITE}.
  9135.  
  9136. If no file is open, or if there is insufficient room on the disk to increase the file's size, {WRITE} fails. Macro execution then continues with the first command after {WRITE} (in the same cell). If {WRITE} is successful, the rest of that cell's commands are ignored, and execution continues on the next row below.
  9137.  
  9138. If you try to reference a cell that does not contain a label, an error message displays.
  9139.  
  9140. Tips
  9141.  
  9142. ¿    After you finish accessing a file with {WRITE}, it must be closed with {CLOSE}. Otherwise, the file could become corrupted if the computer is turned off or otherwise interrupted.
  9143.  
  9144. Example
  9145.  
  9146. The following example creates a text file with fixed-length fields that will serve as a phone list database. After the macro runs, the file will look like this:
  9147.  
  9148.     Golden, David 415-555-7774;Hack, Edmund  201-555-3511;Hall, Sue Ann 617-555-5678
  9149.  
  9150.  
  9151.  
  9152. See the description of {READ} to see how to read a file like this.
  9153.  
  9154. \K    {OPEN "A:PHONEDIR.PRN",W}
  9155.  
  9156.         {WRITE "Golden, David "}
  9157.  
  9158.         {WRITE "415-555-7774;"}
  9159.  
  9160.         {WRITE "Hack, Edmund  "}
  9161.  
  9162.         {WRITE "201-555-3511;"}
  9163.  
  9164.         {WRITE "Hall, Sue Ann "}
  9165.  
  9166.         {WRITE "617-555-5678"}
  9167.  
  9168.         {CLOSE}
  9169.  
  9170. Parameters
  9171.  
  9172. Parameter    Description
  9173.  
  9174. String    string of characters to be written into the open file
  9175.  
  9176.     Related topics
  9177.  
  9178. {WRITELN}
  9179.  
  9180. Syntax
  9181.  
  9182. {WRITELN String<,String2,String3,...>}
  9183.  
  9184. Description
  9185.  
  9186. {WRITELN} copies String(s) to a file opened with {OPEN}, starting at the location of the file pointer, and ends the string(s) with the carriage-return and linefeed characters. The file pointer advances to the position following the last character written, and the file's size increases if necessary. (See {GETPOS} for a discussion of the file pointer.)
  9187.  
  9188. To enter a blank line in the file, use {WRITELN ""}. To enter characters without carriage-return/linefeed characters, use {WRITE}.
  9189.  
  9190. String can be a quoted string or a text formula. If using more than one String, separate them with commas. For example, to write the label Dear Ms. followed by the contents of B6 into the file you would use
  9191.  
  9192.     {WRITELN "Dear Ms. ",+B6}
  9193.  
  9194. A carriage return and linefeed character are placed at the end of all strings combined, not after each. You can use an unlimited number of String arguments with {WRITELN}.
  9195.  
  9196. If no file is open, or if there is insufficient room on the disk to increase file's size, {WRITELN} fails. Macro execution then continues with the first command after {WRITELN} in the same cell. If {WRITELN} succeeds, the rest of that cell's commands are ignored, and execution continues on the next row below.
  9197.  
  9198. Tips
  9199.  
  9200. ¿    After you finish accessing a file with {WRITELN}, you must close the file with {CLOSE}. Otherwise, the file could become corrupted if the computer is turned off or otherwise interrupted.
  9201.  
  9202. Example
  9203.  
  9204. The following example shows how {WRITELN} is used to write a line of text to the file TEST.TXT. This line is terminated by the CR (carriage-return) and LF (linefeed) characters.
  9205.  
  9206. \Z    {OPEN "A:TEST.TXT",W}
  9207.  
  9208.         {WRITELN "This is a short line."}
  9209.  
  9210.         {CLOSE}
  9211.  
  9212. Parameters
  9213.  
  9214. Parameter    Description
  9215.  
  9216. String    string of characters to be written into the open file as a single line
  9217.  
  9218.     Related topics
  9219.  
  9220. {ZOOM}
  9221.  
  9222. Description
  9223.  
  9224. {ZOOM} maximizes and restores the active window.
  9225.  
  9226. This command is for compatibility with Corel Quattro Pro for DOS; use {WindowMaximize} and {WindowRestore} when developing macros for Corel Quattro Pro for Windows.
  9227.  
  9228. To change the zoom factor for a notebook or sheet, use {Notebook.Zoom_Factor} or {Page.Zoom_Factor}, respectively.
  9229.  
  9230.     Related topics
  9231.  
  9232. {ZTESTM}
  9233.  
  9234. Syntax
  9235.  
  9236. {ZTESTM InBlock1, InBlock2, OutBlock, <Labels(0|1)>, <Alpha>, <Difference>, <Variance1>, <Variance2>}
  9237.  
  9238. Description
  9239.  
  9240. {ZTESTM} performs a two-sample z-Test for means, assuming known variances for each sample. {ZTESTM} is equivalent to the z-Test analysis tool.
  9241.  
  9242. Parameters
  9243.  
  9244. Parameter    Description
  9245.  
  9246. InBlock1    one or more numeric cell values representing the first input cells
  9247.  
  9248. InBlock2    one or more numeric cell values representing the second input cells
  9249.  
  9250. OutBlock    upper left cell of the output cells
  9251.  
  9252. 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
  9253.  
  9254. Alpha    significance level of the test; the default is 0.05
  9255.  
  9256. Difference    a value indicating the hypothetical difference in the means between InBlock1 and InBlock2; the default is 0
  9257.  
  9258. Variance1    a value indicating the variance of data set one; the default is 0
  9259.  
  9260. Variance2    a value indicating the variance of data set two; the default is 0
  9261.  
  9262.     Related topics
  9263.  
  9264. Numeric Format Codes
  9265.  
  9266. Code    Description
  9267.  
  9268. 0-15    Fixed (0-15 decimals)
  9269.  
  9270. 16-31    Scientific (0-15 decimals)
  9271.  
  9272. 32-47    Currency (0-15 decimals)
  9273.  
  9274. 48-63    % (percent; 0-15 decimals)
  9275.  
  9276. 64-79    , (comma; 0-15 decimals)
  9277.  
  9278. 112    +/- (bar chart)
  9279.  
  9280. 113    General
  9281.  
  9282. 114    Date [1] (DD-MMM-YYYY)
  9283.  
  9284. 115    Date [2] (DD-MMM)
  9285.  
  9286. 116    Date [3] (MMM-YYYY)
  9287.  
  9288. 117    Text
  9289.  
  9290. 118    Hidden
  9291.  
  9292. 119    Time [1] (HH:MM:SS AM/PM)
  9293.  
  9294. 120    Time [2] (HH:MM AM/PM)
  9295.  
  9296. 121    Date [4] (Long International)
  9297.  
  9298. 122    Date [5] (Short International)
  9299.  
  9300. 123    Time [3] (Long International)
  9301.  
  9302. 124    Time [4] (Short International)
  9303.  
  9304. 127    Default (set with Normal style)
  9305.  
  9306.  
  9307.  
  9308.  
  9309.  
  9310.  
  9311. MAC_A-Z, 5/1/1997        55
  9312.  
  9313. MAC_A-Z, 05/01/97, Page 55    55
  9314.  
  9315.  
  9316.