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

  1. {CALC}
  2.  
  3. Description
  4.  
  5. {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.
  6.  
  7. {CAPOFF} and {CAPON}
  8.  
  9. Description
  10.  
  11. {CAPOFF} and {CAPON} are equivalent to Caps Lock off and Caps Lock on, respectively.
  12.  
  13. {ChartExpert}
  14.  
  15. Description
  16.  
  17. {ChartExpert} displays the first Chart Expert dialog box. The macro has no arguments.
  18.  
  19. {CHOOSE}
  20.  
  21. Description
  22.  
  23. {CHOOSE} displays a pick list of open windows. Your choice becomes the active window.
  24.  
  25. {CLEAR}
  26.  
  27. Description
  28.  
  29. {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.
  30.  
  31. {ClearComments}
  32.  
  33. Syntax
  34.  
  35. {ClearComments <PageOnly? (0|1)>}
  36.  
  37. PerfectScript Syntax
  38.  
  39. ClearComments ([PageOnly?:Numeric])
  40.  
  41. Description
  42.  
  43. {ClearComments} 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.
  44.  
  45. {ClearContents}
  46.  
  47. Syntax
  48.  
  49. {ClearContents <PageOnly?(0|1)>}
  50.  
  51. PerfectScript Syntax
  52.  
  53. ClearContents ([PageOnly?:Enumeration {Yes!; No!}])
  54.  
  55. Description
  56.  
  57. {ClearContents} erases the contents of the selected cells but leaves cell property settings intact.
  58.  
  59. Parameters
  60.  
  61. 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
  62.  
  63. {ClearFormats}
  64.  
  65. Syntax
  66.  
  67. {ClearFormats <PageOnly?(0|1)>}
  68.  
  69. PerfectScript Syntax
  70.  
  71. ClearFormats ([PageOnly?:Enumeration {Yes!; No!}])
  72.  
  73. Description
  74.  
  75. {ClearFormats} resets the properties of cells but retains the values.
  76.  
  77. Parameters
  78.  
  79. 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
  80.  
  81. {CLOSE}
  82.  
  83. Description
  84.  
  85. {CLOSE} ends access to a file previously opened using {OPEN}. This lets you open another file (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.
  86.  
  87. {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.
  88.  
  89. Example
  90.  
  91. 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.
  92.  
  93. \F    {OPEN "A:\AFILE",W}
  94.  
  95.         {WRITELN "Hello, world!"}
  96.  
  97.         {CLOSE}
  98.  
  99. {COLUMNWIDTH}
  100.  
  101. Syntax
  102.  
  103. {COLUMNWIDTH Block, FirstPane?, Set/Reset/Auto, Size}
  104.  
  105. PerfectScript Syntax
  106.  
  107. ColumnWidth (Block:String; FirstPane?:Enumeration {Yes!; No!}; Mode:Enumeration {Set!; Reset!; Auto!}; Size:Numeric)
  108.  
  109. Description
  110.  
  111. {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. 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.
  112.  
  113. The argument Set/Resize/Auto specifies how to change the width. To set a column width, use this syntax: {COLUMNWIDTH Block, FirstPane?, 0, NewSize}.
  114.  
  115. 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).
  116.  
  117. To reset a column to the default width (set by Default Width in the sheet Object Inspector) use this syntax: {COLUMNWIDTH Block, FirstPane?, 1}.
  118.  
  119. To automatically size a column based on what is entered in it, use this syntax: {COLUMNWIDTH Block, FirstPane?, 2, ExtraCharacters}
  120.  
  121. ExtraCharacters is the number of characters to add on to the calculated width. If this argument is omitted, the default is used (1 character).
  122.  
  123. Example
  124.  
  125. {COLUMNWIDTH A:A..B,1,0,1440} sets the width of columns A and B (on sheet A) to one inch (1,440 twips).
  126.  
  127. {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.
  128.  
  129. {COLUMNWIDTH A:C,1,1} resets the width of column C (on sheet A) to the default width.
  130.  
  131. {COLUMNWIDTH A:C,1,2,3} automatically sizes column C (on sheet A) and adds three characters to the calculated width.
  132.  
  133. Parameters
  134.  
  135. Block    Cells containing columns to resize
  136.  
  137.  FirstPane?    1 to resize columns in left or top window pane; 0 to resize columns in right or bottom window pane
  138.  
  139. Set/Reset/Auto    0 to set the column width; 1 to reset the column width; 2 to automatically size the column(s)
  140.  
  141. Size    New width (in twips) if Set/... = 0; not needed if Set/... = 1; resetting size; extra characters (optional) if Set/... = 2
  142.  
  143. {Comment.Edit}
  144.  
  145. Syntax
  146.  
  147. {Comment.Edit <CommentText>}
  148.  
  149. PerfectScript Syntax
  150.  
  151. Comment_Edit (Value?:String)
  152.  
  153. Description
  154.  
  155. {Comment.Edit} 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.
  156.  
  157. {Comment.EditURL}
  158.  
  159. Syntax
  160.  
  161. {Comment.EditURL <URLText>}
  162.  
  163. PerfectScript Syntax
  164.  
  165. Comment_EditURL (Value?:String)
  166.  
  167. Description
  168.  
  169. Brings up the Insert Hyperlink dialog, allowing you to insert, modify, or delete a hyperlink.
  170.  
  171. {ComposeFormula}
  172.  
  173. Description
  174.  
  175. {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.
  176.  
  177. {Consolidate}
  178.  
  179. Syntax
  180.  
  181. {Consolidate.Option}
  182.  
  183. PerfectScript Syntax
  184.  
  185. Consolidate_Add_Source_Block ([Block:String])
  186.  
  187. Consolidate_Destination ([Block:String])
  188.  
  189. Consolidate_Function (Function:Enumeration {SUM!; AVG!; COUNT!; MIN!; MAX!; STD!; STDS!; VAR!; VARS!})
  190.  
  191. Consolidate_Go ()
  192.  
  193. Consolidate_Options (OutputWithFormulas?:Enumeration {Yes!; No!}; LabelsInTopRow?:Enumeration {Yes!; No!}; LabelsInLeftCol?:Enumeration {Yes!; No!})
  194.  
  195. Consolidate_Remove (Name:String)
  196.  
  197. Consolidate_Remove_Source_Block ([Block:String])
  198.  
  199. Consolidate_Reset ()
  200.  
  201. Consolidate_Save (Name:String)
  202.  
  203. Consolidate_Use (Name:String)
  204.  
  205. Description
  206.  
  207. {Consolidate} combines data from multiple selections into one using your choice of operators. Block defaults to the current selection if the argument is not supplied.
  208.  
  209. You can use {Consolidate?} or {Consolidate!} to display the Consolidation dialog box. {Consolidate?} lets you manipulate the dialog box, whereas {Consolidate!} relies on the macro to manipulate it.
  210.  
  211. Example
  212.  
  213. 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.
  214.  
  215. {Consolidate.Add_Source_Block A:B2..B4}
  216.  
  217. {Consolidate.Add_Source_Block A:C2..C3}
  218.  
  219. {Consolidate.Add_Source_Block A:D2..D4}
  220.  
  221. {Consolidate.Function SUM}
  222.  
  223. {Consolidate.Destination A:F2..F4}
  224.  
  225. {Consolidate.Options 1,0,0}
  226.  
  227. {Consolidate.Go}
  228.  
  229. {Consolidate.Save CONSOL1}
  230.  
  231. Options
  232.  
  233. {Consolidate.Add_Source_Block <Block>}    Adds an entry to the Source Cells list.
  234.  
  235. {Consolidate.Destination <Block>}    Sets the cells to contain the consolidation results.
  236.  
  237. {Consolidate.Function SummaryFunction}    Specifies the operations to perform on the source cells.
  238.  
  239. {Consolidate.Go}    Performs the consolidation of the source cells.
  240.  
  241. {Consolidate.Options OutputWithFormulas?(0|1), LabelsInTopRow?(0|1), LabelsInLeftCol?(0|1)}    Selects options for consolidation.
  242.  
  243. {Consolidate.Remove Name}    Deletes the selected setup in the Consolidations list.
  244.  
  245. {Consolidate.Remove_Source_Block <Block>}    Removes an entry from the Source Cells list.
  246.  
  247. {Consolidate.Reset}    Clears Source Cells and Destination Cells, and resets Options to default values in the Consolidation dialog box..
  248.  
  249. {Consolidate.Save Name}    Saves the current consolidation setup.
  250.  
  251. {Consolidate.Use Name}    Lists saved consolidation setups.
  252.  
  253. {ConsolidateExpert}
  254.  
  255. Description
  256.  
  257. {ConsolidateExpert} displays the first Consolidate Expert dialog box. The macro has no arguments.
  258.  
  259. {CONTENTS}
  260.  
  261. Syntax
  262.  
  263. {CONTENTS Dest, Source, <Width#>, <Format#>}
  264.  
  265. PerfectScript Syntax
  266.  
  267. Contents (DestCell:String; SourceCell:String; [Width:Numeric]; [Format:Numeric])
  268.  
  269. Description
  270.  
  271. {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.
  272.  
  273. Width# can be any number from 1 to 1023. 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.
  274.  
  275. 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#.
  276.  
  277. Example
  278.  
  279. The following examples assume cell C18 contains the value 48,988 in comma format with a column width of 12.
  280.  
  281. {CONTENTS A18,C18}
  282.  
  283. Places the 12-character label ' 48,988 in cell A18 (six spaces are inserted at the beginning).
  284.  
  285. {CONTENTS E10,C18,3}
  286.  
  287. Places the 3-character label '*** in cell E10. (Only asterisks are copied because the value does not fit within three spaces.)
  288.  
  289. {CONTENTS A5,C18,15,34}
  290.  
  291. Places the 15-character label ' $48,988.00 in cell A5 (five spaces are inserted at the beginning).
  292.  
  293. Parameters
  294.  
  295. Dest    Cell you want data written to
  296.  
  297. Source    Cell you want data copied from
  298.  
  299. Width#    Optional column width (1 to 1023)
  300.  
  301. Format#    Optional format code
  302.  
  303. {Controls}
  304.  
  305. Syntax
  306.  
  307. {Controls.Option}
  308.  
  309. PerfectScript Syntax
  310.  
  311. Controls_Order ()
  312.  
  313. Controls_OrderFrom ()
  314.  
  315. Controls_OrderTab ()
  316.  
  317. Controls_OrderTabFrom ()
  318.  
  319. Description
  320.  
  321. {Controls} affects selected objects in the dialog window.
  322.  
  323. Options
  324.  
  325. {Controls.Order}    Changes the setting order of controls
  326.  
  327. {Controls.OrderFrom}    Places related controls together in the setting order
  328.  
  329. {Controls.OrderTab}    Sets the tab order for controls
  330.  
  331. {Controls.OrderTabFrom}    Pulls specific controls out of the tab order and groups them together
  332.  
  333. {CR} or ~
  334.  
  335. Description
  336.  
  337. {CR} or ~ (tilde) are equivalent to the Enter key.
  338.  
  339. {CreateChart}
  340.  
  341. Syntax
  342.  
  343. {CreateChart Name}
  344.  
  345. PerfectScript Syntax
  346.  
  347. CreateChart (Name: String)
  348.  
  349. Description
  350.  
  351. Lets you create a chart.
  352.  
  353. Parameter
  354.  
  355. Name    The name of the chart
  356.  
  357. {CREATEOBJECT}
  358.  
  359. Syntax
  360.  
  361. {CREATEOBJECT ObjectType, x1, y1, x2, y2<, x3, y3, ...>}
  362.  
  363. PerfectScript Syntax
  364.  
  365. CreateObject (ObjectName:String; x1:Numeric; y1:Numeric; x2:Numeric; y2:Numeric; {[x:Numeric]; [y:Numeric]})
  366.  
  367. Description
  368.  
  369. 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. 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.
  370.  
  371. Chart Objects {CREATEOBJECT} Can Generate
  372.  
  373. Object    # of (x,y)'s    Coordinates
  374.  
  375. Line    2    1st: Start point, 2nd: End point
  376.  
  377. Arrow        (same as for Line)
  378.  
  379. Block    2    1st: Upper left corner, 2nd: Width and height of the objects (in relative coordinates)
  380.  
  381. Rect (Rectangle)    2    (same as for Block)
  382.  
  383. Ellipse    2    1st: Upper left corner of a rectangle bounding the ellipse; 2nd: Width and height of the bounding rectangle
  384.  
  385. Rounded_Rect        (same as for Block)
  386.  
  387. Text        (same as for Block)
  388.  
  389. 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
  390.  
  391. Polygon        (same as for Polyline)
  392.  
  393. Freehand_Polyline        (same as for Polyline)
  394.  
  395. Freehand_Polygon        (same as for Polyline)
  396.  
  397. Block Objects
  398.  
  399. The Block object has additional arguments for {CREATEOBJECT}:
  400.  
  401. {CREATEOBJECT ObjectType, x1, y1, x2, y2, "Block", "RowBorders?(Yes|No), ColBorders?(Yes|No), HorzGridLines?(Yes|No), VertGridLines?(Yes|No), AspectRatio?(Yes|No)"}
  402.  
  403. 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.
  404.  
  405. Dialog Controls {CREATEOBJECT} Can Generate
  406.  
  407. 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.
  408.  
  409. ObjectType is enclosed in quotes. The x and y coordinates for each point follow, separated by commas.
  410.  
  411. Example
  412.  
  413. {CREATEOBJECT "Rect",86,11,94,74} creates a rectangle with upper-left corner = (86,11), width = 94, and height =74 (pixels).
  414.  
  415. {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.
  416.  
  417. {CREATEOBJECT "Line",260,238,356,228} creates a line that starts at (260,238) and ends at (356,228).
  418.  
  419. {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).
  420.  
  421. Parameters
  422.  
  423. ObjectName    Type of object to create
  424.  
  425. x1, y1    XY coordinates for the starting point of the object; the upper left corner for rectangles and objects bounded by rectangles
  426.  
  427. 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
  428.  
  429. x3, y3    XY coordinates for the next or last point of a polyline or polygon object
  430.  
  431. {CrossTab}
  432.  
  433. Syntax
  434.  
  435. {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>"}
  436.  
  437. PerfectScript Syntax
  438.  
  439. CrossTab (SrcBlock:String; DstBlock:String; PageName:String; RowData:String; ColData:String; {[DataTotal:String]})
  440.  
  441. Description
  442.  
  443. {CrossTab} creates a summary of your data in a format that is simple and easy to read. This is especially useful when you are working with large pieces of data, such as imported databases.
  444.  
  445. All items surrounded by <> are optional. All quotes in this macro command must be included in order for the macro to function.
  446.  
  447. 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.
  448.  
  449. Example
  450.  
  451. {CrossTab "A:A1..H145";"B:A1";"";"0,1";"2,3,4";"6: SUM";"4: AVERAGE"}
  452.  
  453. Notice that if the 3D Sheet Name is not included, the macro must have the empty quotes or it will not function properly.
  454.  
  455. Parameters
  456.  
  457. Data Option    SUM, AVERAGE, COUNT, % of COLUMN, % of ROW, % of GRAND, or STRING
  458.  
  459. Row and Column Options    SUM, AVERAGE, COUNT, % of COLUMN, % of ROW, % of GRAND, INCREASE, % INCREASE, or STRING
  460.  
  461. {CrossTabReport.AddField}
  462.  
  463. Syntax
  464.  
  465. {CrossTabReport.AddField Index; Type}
  466.  
  467. PerfectScript Syntax
  468.  
  469. CrossTabReport_AddField (Index?: Numeric; Type?: Numeric)
  470.  
  471. Description
  472.  
  473. Lets you add a field to the active report.
  474.  
  475. Parameters
  476.  
  477. Index    The index of the field
  478.  
  479.   Type    1 Row
  480.  
  481. 2 Column
  482.  
  483. 3 Page
  484.  
  485. 4 Data
  486.  
  487. Example
  488.  
  489. A sample Cross Tab Report has the following macro commands run against it.
  490.  
  491. {CrossTabReport.AddField 3;3}
  492.  
  493. {CrossTabReport.Edit}
  494.  
  495. The result is that the Winery field (index position 3 in the underlying data source) has been added to the page area of the Report.
  496.  
  497. {CrossTabReport.CenterLabels}
  498.  
  499. Syntax
  500.  
  501. {CrossTabReport.CenterLabels Enable}
  502.  
  503. PerfectScript Syntax
  504.  
  505. CrossTabReport_CenterLabels (Enable?: Boolean)
  506.  
  507. Description
  508.  
  509. Lets you specify whether or not to center the labels on a report.
  510.  
  511. Parameter
  512.  
  513. Enable    0 Do not center the labels
  514.  
  515. 1 Center the labels.
  516.  
  517. Example
  518.  
  519. A sample Cross Tab Report has the following macro commands run against it.
  520.  
  521. {CrossTabReport.CenterLabels 1}
  522.  
  523. {CrossTabReport.Options}
  524.  
  525. The result is that the Year labels (1991 and 1992) have been centered against the rows of data.
  526.  
  527. {CrossTabReport.ColumnSummary}
  528.  
  529. Syntax
  530.  
  531. {CrossTabReport.ColumnSummary Enable}
  532.  
  533. PerfectScript Syntax
  534.  
  535. CrossTabReport_ColumnSummary (Enable?: Boolean)
  536.  
  537. Description
  538.  
  539. Lets you specify whether or not to display a column summary.
  540.  
  541. Parameter
  542.  
  543. Enable    0 Do not display a column summary.
  544.  
  545. 1 Display a column summary.
  546.  
  547. Example
  548.  
  549. A sample Cross Tab Report has the following macro commands run against it.
  550.  
  551. {CrossTabReport.ColumnSummary 1}
  552.  
  553. {CrossTabReport.Options}
  554.  
  555. The result is that each of the columns of sales data (Q1-Q4) have been added together and a grand total displayed at the bottom of each.
  556.  
  557. {CrossTabReport.CopyStatic}
  558.  
  559. Syntax
  560.  
  561. {CrossTabReport.CopyStatic}
  562.  
  563. PerfectScript Syntax
  564.  
  565. CrossTabReport_CopyStatic ()
  566.  
  567. Description
  568.  
  569. A command macro which creates a static copy of the current Cross Tab Report. The copy does not hold any properties of the report and is not affected by changes in the underlying source data.
  570.  
  571. {CrossTabReport.Create}
  572.  
  573. Syntax
  574.  
  575. {CrossTabReport.Create}
  576.  
  577. PerfectScript Syntax
  578.  
  579. CrossTabReport_Create ()
  580.  
  581. Description
  582.  
  583. A command macro which is used to generate a new Cross Tab Report. As shown below, this macro is typically used in conjunction with the {CrossTabReport.Source}, {CrossTabReport.Destination}, {CrossTabReport.Name}, and {CrossTabReport.AddField} macros.
  584.  
  585. Example
  586.  
  587. A sample spreadsheet is used as the data source for a Cross Tab Report. To create the report, the following sequence of macro commands is run.
  588.  
  589. {CrossTabReport.Source A:A1..H145}
  590.  
  591. {CrossTabReport.Destination B:A1}
  592.  
  593. {CrossTabReport.Name CrossTabs Table 1}
  594.  
  595. {CrossTabReport.AddField 1;1}
  596.  
  597. {CrossTabReport.AddField 2;2}
  598.  
  599. {CrossTabReport.AddField 8;4}
  600.  
  601. {CrossTabReport.Create}
  602.  
  603. The result is that a new Cross Tab Report is created. It uses columns A through H in Sheet A as its data source, and cell A1 in Sheet B is used as the destination for the report. The Year, Quarter, and Sales fields are then added to the Cross Tab Report's row, column, and data areas respectively.
  604.  
  605. {CrossTabReport.DataAlignment}
  606.  
  607. Syntax
  608.  
  609. {CrossTabReport.DataAlignment RowOrCol}
  610.  
  611. PerfectScript Syntax
  612.  
  613. CrossTabReport_DataAlignment (RowOrCol?: Numeric)
  614.  
  615. Description
  616.  
  617. Lets you specify whether the data fields in a report are aligned by row or column. By default, data fields are aligned in a row.
  618.  
  619. Parameter
  620.  
  621. RowOrCol    0 Row
  622.  
  623. 1 Column
  624.  
  625. Example
  626.  
  627. A sample Cross Tab Report has its data fields (Sales and Cost Per Case) aligned by row. To change this, the following macro commands are run.
  628.  
  629. {CrossTabReport.DataAlignment 1}
  630.  
  631. {CrossTabReport.Edit}
  632.  
  633. The result is a Cross Tab Report which now has its data fields aligned by column.
  634.  
  635. {CrossTabReport.DefineFieldProps}
  636.  
  637. Syntax
  638.  
  639. {CrossTabReport.DefineFieldProps Area; Index}
  640.  
  641. PerfectScript Syntax
  642.  
  643. CrossTabReport_DefineFieldProps (Area?: String ; Index: String)
  644.  
  645. Description
  646.  
  647. Lets you specify the fields on which specified options will operate. Typically, this macro will be followed by other macros which perform the desired operation on the specified field. For example, the {CrossTabReport.FieldSummary} and {CrossTabReport.FieldOptions} macros might be used, as shown below, to specify which operations to perform on the specified field.
  648.  
  649. Parameter
  650.  
  651. Area
  652.  
  653.  
  654.  
  655.  
  656.  
  657.  
  658.  
  659.  
  660.  
  661. Field Index    1 Row area
  662.  
  663. 2 Column area
  664.  
  665. 3 Page area
  666.  
  667. 4 Data area
  668.  
  669.  
  670.  
  671. The index of the given field based on its position in that area
  672.  
  673. Example
  674.  
  675. A sample Cross Tab Report contains two data fields, Sales and Cases Sold, both of which already have the summary option Sum. To add the summary option Max to only the Sales field, and not the Cases Sold field, the following macro commands are run
  676.  
  677. {CrossTabReport.DefineFieldProps "4;1"}
  678.  
  679. {CrossTabReport.FieldSummary "1;4"}
  680.  
  681. {CrossTabReport.FieldOptions}
  682.  
  683. The result is that the first field in the data area (Sales) is defined as the field on which to apply the summary option Max. For more information on the options applied to the defined field, refer to the help for the macros {CrossTabReport.FieldSummary} and {CrossTabReport.FieldOptions}.
  684.  
  685. {CrossTabReport.Destination}
  686.  
  687. Syntax
  688.  
  689. {CrossTabReport.Destination Block}
  690.  
  691. PerfectScript Syntax
  692.  
  693. CrossTabReport_Destination (Block?: String)
  694.  
  695. Description
  696.  
  697. Lets you specify where the report is located.
  698.  
  699. Parameter
  700.  
  701. Block    The destination cell
  702.  
  703. Example
  704.  
  705. When creating a Cross Tab Report, the following macro command is used to specify a destination cell for the report.
  706.  
  707. {CrossTabReport.Destination B:A1}
  708.  
  709. The result is a Cross Tab Report residing on sheet B, cell A1. For a more detailed example, refer to the help for the {CrossTabReport.Create} macro.
  710.  
  711. {CrossTabReport.DisplayInEmptyCell}
  712.  
  713. Syntax
  714.  
  715. {CrossTabReport.DisplayInEmptyCell Enable}
  716.  
  717. PerfectScript Syntax
  718.  
  719. CrossTabReport_DisplayInEmptyCell (Enable?: Boolean)
  720.  
  721. Description
  722.  
  723. Lets you specify whether or not to display a specifc value in the empty cells of a report.
  724.  
  725. Parameter
  726.  
  727. Enable    0 Do not display a value in empty cells.
  728.  
  729. 1 Display a value in empty cells.
  730.  
  731. Example
  732.  
  733. A sample report contains one or more cells which are empty or awaiting future data. To fill these cells with some value, say "TBA", the following macro commands are used.
  734.  
  735. {CrossTabReport.DisplayInEmptyCell 1}
  736.  
  737. {CrossTabReport.EmptyCellString TBA}
  738.  
  739. {CrossTabReoirt.Options}
  740.  
  741. The result is a Cross Tab Report with the value TBA displayed in any previously empty cells. Note that the {CrossTabReport.EmptyCellString}.can be used to specify the text which will appear in place of the empty cell.
  742.  
  743. {CrossTabReport.Edit}
  744.  
  745. Syntax
  746.  
  747. {CrossTabReport.Edit}
  748.  
  749. PerfectScript Syntax
  750.  
  751. CrossTabReport_Edit ()
  752.  
  753. Description
  754.  
  755. A command macro which is used to modify the report settings or configuration. Typically, this macro is used after a sequence of operations such as adding a field or changing the destination of a report.
  756.  
  757. Example
  758.  
  759. For an example detailing the usage of the {CrossTabReport.Edit} macro, see the help for either the {CrossTabReport.AddField} macro or the {CrossTabReport.DataAlignment} macro.
  760.  
  761. {CrossTabReport.EmptyCellString}
  762.  
  763. Syntax
  764.  
  765. {CrossTabReport.EmptyCellString Name}
  766.  
  767. PerfectScript Syntax
  768.  
  769. CrossTabReport_EmptyCellString (Name?: String)
  770.  
  771. Description
  772.  
  773. Lets you specify the string to be displayed in the empty cells of a Cross Tab Report.
  774.  
  775. Parameter
  776.  
  777. Name    The string to be displayed in empty cells
  778.  
  779. Example
  780.  
  781. A sample report contains one or more cells which are empty or awaiting future data. To fill these cells with some value, say "TBA" the following macro commands are used.
  782.  
  783. {CrossTabReport.DisplayInEmptyCell 1}
  784.  
  785. {CrossTabReport.EmptyCellString TBA}
  786.  
  787. The result is a Cross Tab Report with the value TBA displayed in any previously empty cells. Note that the {CrossTabReport.DisplayInEmptyCell}.is used to specify whether or not a value is displayed in empty cells.
  788.  
  789. {CrossTabReport.Expand}
  790.  
  791. Syntax
  792.  
  793. {CrossTabReport.Expand <Index> <;Index2>}
  794.  
  795. PerfectScript Syntax
  796.  
  797. CrossTabReport ([Index?: Numeric] [;Index2?: Numeric])
  798.  
  799. Description
  800.  
  801. Lets you expand the current report onto several different sheets by specifying the appropriate field indices. By default, this macro command will expand to the maximum number of levels. Note that in order to use this macro, you must have a least one field in the Pages position of the report.
  802.  
  803. Parameters
  804.  
  805. Index1    The field on which you want to base the report expansion.
  806.  
  807. Index2
  808.  
  809. [optional]    The number of levels to which you want to expand the report.
  810.  
  811. Example
  812.  
  813. A sample report, located on sheet A of a notebook, contains two fields in the Pages area of the report. The field "Winery", located in index position 1, contains two field items, Beaulieu and Duckhorn. To expand the report based on the items in this field, the following macro commands are used
  814.  
  815. {CrossTabReport.Expand 1}
  816.  
  817. The result is that the Cross Tab Report is expanded onto the next two unprotected pages in the notebook; in this case sheet B and sheet C. Sheet B contains the field item Beaulieu and all the data associated with it, and sheet C contains the field item Duckhorn and all the data associated with it.
  818.  
  819. {CrossTabReport.FieldCmp}
  820.  
  821. Syntax
  822.  
  823. {CrossTabReport.FieldCmp Value}
  824.  
  825. PerfectScript Syntax
  826.  
  827. CrossTabReport_FieldCmp (Value?: Numeric)
  828.  
  829. Description
  830.  
  831. Lets you specify a comparision option on any given field within a report. Typically, this macro will be used along with the {CrossTabReport.FieldCmpBase}, {CrossTabReport.FieldCmpItem},and {CrossTabReport.FieldCmpItemPreset} macros.
  832.  
  833. Parameter
  834.  
  835. Value    0 None
  836.  
  837. 1 DiffFrom
  838.  
  839. 2 PercentOf
  840.  
  841. 3 PercentDiffFrom
  842.  
  843. 4 RunningTotal
  844.  
  845. 5 PercentRow
  846.  
  847. 6 PercentColumn
  848.  
  849. 7 PercentTotal
  850.  
  851. 8 Index
  852.  
  853. Example
  854.  
  855. A sample Cross Tab Report has the following macro commands run against it.
  856.  
  857. {CrossTabReport.DefineFieldProps "4,1"}
  858.  
  859. {CrossTabReport.FieldCmp 1}
  860.  
  861. {CrossTabReport.FieldCmpBase 1}
  862.  
  863. {CrossTabReport.FieldCmpItemPreset -1}
  864.  
  865. {CrossTabReport.FieldOptions}
  866.  
  867. The {CrossTabReport.DefineFieldProps} macro is used to indicate that the specified comparision options are to be applied to the Sales field in the Data area of the page. The result is a report which takes the sales data in each row of the Year field (index position 1) and calculates the difference between it and the data from the previous year.
  868.  
  869. {CrossTabReport.FieldCmpBase}
  870.  
  871. Syntax
  872.  
  873. {CrossTabReport.FieldCmpBase Value}
  874.  
  875. PerfectScript Syntax
  876.  
  877. CrossTabReport_FieldCmpBase (Value?: Numeric)
  878.  
  879. Description
  880.  
  881. Lets you specify the index of the base field.
  882.  
  883. Parameter
  884.  
  885. Value    The index of the base field
  886.  
  887. Example
  888.  
  889. {CrossTabReport.Field CmpBase 1}
  890.  
  891. The field with index value 1 is taken to be the base field for comparision. For a more detailed example involving this macro, please see the help for the {CrossTabReport.FieldCmp} macro.
  892.  
  893. {CrossTabReport.FieldCmpItem}
  894.  
  895. Syntax
  896.  
  897. {CrossTabReport.FieldCmpItem Value}
  898.  
  899. PerfectScript Syntax
  900.  
  901. CrossTabReport_FieldCmpItemPreset (Value?: String)
  902.  
  903. Description
  904.  
  905. Lets you specify the field item to be compared.
  906.  
  907. Parameter
  908.  
  909. Value    The index of the field 
  910.  
  911. Example
  912.  
  913.     {CrossTabReport.FieldCmpItem 2}
  914.  
  915. The field with index value 2 is defined as the item to be compared.
  916.  
  917. {CrossTabReport.FieldCmpItemPreset}
  918.  
  919. Syntax
  920.  
  921. {CrossTabReport.FieldCmpItemPreset Value}
  922.  
  923. PerfectScript Syntax
  924.  
  925. CrossTabReport_FieldCmpItemPreset (Value?: Numeric)
  926.  
  927. Description
  928.  
  929. Lets you specify the type of preset to be used during comparision.
  930.  
  931. Parameter
  932.  
  933. Value    0 None
  934.  
  935. -1 Previous
  936.  
  937. 1 Next
  938.  
  939. Example
  940.  
  941. {CrossTabReport.FieldCmpItemPreset -1}
  942.  
  943. Previous is selected as the type of preset to be used during the comparision. For a more detailed example involving this macro, see the help for the {CrossTabReport.FieldCmp} macro.
  944.  
  945. {CrossTabReport.FieldHide}
  946.  
  947. Syntax
  948.  
  949. {CrossTabReport.FieldHide Value}
  950.  
  951. PerfectScript Syntax
  952.  
  953. CrossTabReport_FieldHide (Value?: String)
  954.  
  955. Description
  956.  
  957. Lets you hide one or more data items associated with the report. You can specify the field by using the {CrossTabReport.DefineFieldProps} command.
  958.  
  959. Parameter
  960.  
  961. Value [semicolon delimited]    Semicolon delimited items
  962.  
  963. Example
  964.  
  965. A sample Cross Tab Report has the following macro commands run against it.
  966.  
  967. {CrossTabReport.DefineFieldProps "1;1"}
  968.  
  969. {CrossTabReport.FieldHide "1991"}
  970.  
  971. {CrossTabReport.FieldOptions}
  972.  
  973. The result is a report which hides the field item 1991 and its data.
  974.  
  975. Note
  976.  
  977.   You can leave the Value value empty to clear the existing values.
  978.   
  979. {CrossTabReport.FieldLabel}
  980.  
  981. Syntax
  982.  
  983.  {CrossTabReport.FieldLabel Value}
  984.  
  985. PerfectScript Syntax
  986.  
  987.  CrossTabReport_FieldLabel (Value?: String)
  988.  
  989. Description
  990.  
  991.  Lets you specify or change the label on a given field. You can specify the field by using the {CrossTabReport.DefineFieldProps} command.
  992.  
  993. Parameter
  994.  
  995.  Valuel    Text for the field label
  996.  
  997. Example
  998.  
  999.  A sample Cross Tab Report has the following macro commands run against it.
  1000.  
  1001.  {CrossTabReport.DefineFieldProps "1,1"}
  1002.  
  1003.  {CrossTabReport.FieldLabel Years}
  1004.  
  1005.  {CrossReport.FieldOptions}
  1006.  
  1007.  The result is that the label which previously displayed as "Year", has been modified to display as "Years".
  1008.  
  1009. {CrossTabReport.FieldOptions}
  1010.  
  1011. Syntax
  1012.  
  1013.  {CrossTabReport.FieldOptions}
  1014.  
  1015. PerfectScript Syntax
  1016.  
  1017.  CrossTabReport_FieldOptions ()
  1018.  
  1019. Description
  1020.  
  1021.  This is a command macro used to modify field options. Typically, macro operations which modify a field will be followed by this command macro.
  1022.  
  1023. Example
  1024.  
  1025.  For examples detailing the usage of this macro, refer to the help for either the {CrossTabReport.FieldCmp} {CrossTabReport.FieldHide} macros.
  1026.  
  1027. {CrossTabReport.FieldSummary}
  1028.  
  1029. Syntax
  1030.  
  1031.  {CrossTabReport.FieldSummary Value}
  1032.  
  1033. PerfectScript Syntax
  1034.  
  1035.  CrossTabReport_FieldSummary (Value?: String)
  1036.  
  1037. Description
  1038.  
  1039.  Lets you specify one or more summary option flags. Value consists of variables delimited by semicolons. You can specify the field by using the {CrossTabReport.DefineFieldProps} command.
  1040.  
  1041. Parameter
  1042.  
  1043.  Value [semicolon delimited]    1 Sum
  1044.  
  1045.  2 Count
  1046.  
  1047.  3 Average
  1048.  
  1049.  4 Max
  1050.  
  1051.  5 Min
  1052.  
  1053.  6 StdDevp
  1054.  
  1055.  7 StdDevs
  1056.  
  1057.  8 Varp
  1058.  
  1059.  9 Var
  1060.  
  1061.  10 CountNonBlank
  1062.  
  1063.  11 SumNone (clears existing flags)
  1064.  
  1065. Example
  1066.  
  1067.  A sample Cross Tab Report has the following macro commands run against it.
  1068.  
  1069.  {CrossTabReport.DefineFieldProps "4;1"}
  1070.  
  1071.  {CrossTabReport.FieldSummary "1; 3; 4; 5"}
  1072.  
  1073.  {CrossTabReport.FieldOptions}
  1074.  
  1075.  The result is a report which now calculates and displays Sum, Average, Max, and Min values for the Sales field.
  1076.  
  1077. {CrossTabReport.FormatReport}
  1078.  
  1079. Syntax
  1080.  
  1081.  {CrossTabReport.FormatReport Enable}
  1082.  
  1083. PerfectScript Syntax
  1084.  
  1085.  CrossTabReport_FormatReport (Enable?: Boolean)
  1086.  
  1087. Description
  1088.  
  1089.  Lets you specify whether or not to apply a predefined format to the report.
  1090.  
  1091. Parameter
  1092.  
  1093.  Enable    0 Do not apply a predefined format to the report.
  1094.  
  1095.  1 Apply a predefined format to the report.
  1096.  
  1097. Example
  1098.  
  1099.  A sample Cross Tab Report, with a predefined format applied, has the following macro commands run against it.
  1100.  
  1101.  {CrossTabReport.FormatReport 0}
  1102.  
  1103.  {CrossTabReport.Options}
  1104.  
  1105.  The result is a report which no longer has a predefined format applied. Note that in this example the dark cell borders have been lost as a result of the predefined format no longer being applied.
  1106.  
  1107. {CrossTabReport.Hide}
  1108.  
  1109. Syntax
  1110.  
  1111.  {CrossTabReport.Hide}
  1112.  
  1113. PerfectScript Syntax
  1114.  
  1115.  CrossTabReport_Hide ()
  1116.  
  1117. Description
  1118.  
  1119.  A command macro used to hide the details of the active or selected field in a report.
  1120.  
  1121. Example
  1122.  
  1123.  Within a sample Cross Tab Report, the active cursor selection is positioned within the Q1 field item and the following macro command is executed.
  1124.  
  1125.  {CrossTabReport.Hide}
  1126.  
  1127.  The result is a report which displays without any details for Q1. All other field items continue to display as they were originally.
  1128.  
  1129. Note
  1130.  
  1131.  The {CrossTabReport.Show} macro can be used to return the report to its original state.
  1132.  
  1133. {CrossTabReport.LabelEdit}
  1134.  
  1135. Syntax
  1136.  
  1137.  {CrossTabReport.LabelEdit LabelEdit}
  1138.  
  1139. PerfectScript Syntax
  1140.  
  1141.  CrossTabReport_LabelEdit (LabelEdit?: String)
  1142.  
  1143. Description
  1144.  
  1145.  Lets you change the label of the selected field cell in the sheet. This macro allows you to edit a field label from the active report without going through the field options.
  1146.  
  1147. Parameter
  1148.  
  1149.  LabelEdit    The changed label of the selected field cell
  1150.  
  1151. Example
  1152.  
  1153.  Within a sample Cross Tab Report, the active cursor selection is positioned at the label to be changed and the following macro command is executed.
  1154.  
  1155.  {CrossTabReport.LabelEdit Years}
  1156.  
  1157.   The result is that the label which previously displayed as "Year", has been modified to display as "Years".
  1158.  
  1159. {CrossTabReport.MoveCell}
  1160.  
  1161. Syntax
  1162.  
  1163.  {CrossTabReport.MoveCell Row; Column}
  1164.  
  1165. PerfectScript Syntax
  1166.  
  1167.  CrossTabReport_MoveCell (Row?: Numeric; Column?: Numeric)
  1168.  
  1169. Description
  1170.  
  1171.  Lets you move a selected cell within the active report to a specfied destination cell.
  1172.  
  1173. Parameters
  1174.  
  1175.  Row    The row you to which you want to move the selected cell.
  1176.  
  1177.  Column    The column to which you want to move the selected cell.
  1178.  
  1179. Example
  1180.  
  1181.  Within a sample Cross Tab Report, the active cursor selection is positioned at the Year label cell, and the following macro command is executed.
  1182.  
  1183.  {CrossTabReport.MoveCell 1;3}
  1184.  
  1185.  The result is a report in which the Year field is now displayed in the column area instead of the row area as it had been previously.
  1186.  
  1187. {CrossTabReport.MoveField}
  1188.  
  1189. Syntax
  1190.  
  1191.  {CrossTabReport.MoveField Source_Index; Source_Type; Destination_Index; Destination_Type}
  1192.  
  1193. PerfectScript Syntax
  1194.  
  1195.  CrossTabReport_MoveField (Source_Index?: Numeric; Source_Type?: Numeric; Destination_Index?: Numeric; Destination_Type?: Numeric)
  1196.  
  1197. Description
  1198.  
  1199.  Lets you move the selected field to a new position within an active report.
  1200.  
  1201. Parameters
  1202.  
  1203.  Source_Area    1 Row area
  1204.  
  1205.  2 Column area
  1206.  
  1207.  3 Page area
  1208.  
  1209.  4 Data area
  1210.  
  1211.  Source_Index    The numeric index of the source field
  1212.  
  1213.  Destination_Area    1 Row area
  1214.  
  1215.  2 Column area
  1216.  
  1217.  3 Page area
  1218.  
  1219.  4 Data area
  1220.  
  1221.  Destination_Index    The numeric index of the destination field
  1222.  
  1223. Example
  1224.  
  1225.  Within a sample Cross Tab Report, the active cursor selection is positioned in the Year field, and the following macro command is executed.
  1226.  
  1227.  {CrossTabReport.MoveField 1;1;2;2}
  1228.  
  1229.  {CrossTabReport.FieldOptions}
  1230.  
  1231.  The result is a report in which the Year field is now displayed in the column area instead of the row area as it had been previously. The field has been moved from index position 1 of the Row area to index position 2 of the Column area.
  1232.  
  1233. {CrossTabReport.Name}
  1234.  
  1235. Syntax
  1236.  
  1237.  {CrossTabReport.Name Name}
  1238.  
  1239. PerfectScript Syntax
  1240.  
  1241.  CrossTabReport_Name (Name?: String)
  1242.  
  1243. Description
  1244.  
  1245.  Lets you specify or change the name of an active report.
  1246.  
  1247. Parameter
  1248.  
  1249.  Name    The name of the report
  1250.  
  1251. Example
  1252.  
  1253.  A report is named CrossTabs Table 1. To change this, the following macro command is executed.
  1254.  
  1255.  {CrossTabReport.Name "CrossTabs Table 2"}
  1256.  
  1257.  The report is now named CrossTabs Table 2. The new report name can be viewed or verified using the Cross Tabs Options dialog box.
  1258.  
  1259. {CrossTabReport.Options}
  1260.  
  1261. Syntax
  1262.  
  1263.  {CrossTabReport.Options}
  1264.  
  1265. PerfectScript Syntax
  1266.  
  1267.  CrossTabReport_Options ()
  1268.  
  1269. Description
  1270.  
  1271.  A command macro used to modify the report options. Typically, this macro is used after a sequence of commands such as showing a column summary or displaying a value in empty cells.
  1272.  
  1273. Example
  1274.  
  1275.  For an example detailing the usage of the {CrossTabReport.Options} macro, see the help for either the {CrossTabReport.ColumnSummary} macro or the {CrossTabReport.DisplayInEmptyCell} macro
  1276.  
  1277. {CrossTabReport.PageFilter}
  1278.  
  1279. Syntax
  1280.  
  1281.  {CrossTabReport.PageFilter Index; Value}
  1282.  
  1283. PerfectScript Syntax
  1284.  
  1285.  CrossTabReport_PageFilter (Index?: Numeric; Value?: String)
  1286.  
  1287. Description
  1288.  
  1289.  Lets you apply a page filter to the specified field and value in the page area.
  1290.  
  1291. Parameters
  1292.  
  1293.  Index    The numeric index of the field to be filtered.
  1294.  
  1295.  Value    The field value on which you filter the report.
  1296.  
  1297. Example
  1298.  
  1299.  A sample Cross Tab Report has a Winery field located in the Pages area. This field contains the items Beaulieu, Duckhorn, and [All]. To filter this report, the active cursor selection is positioned within the report, and the following macro command is executed.
  1300.  
  1301.  {CrossTabReport.PageFilter 1; Duckhorn}
  1302.  
  1303.  The result is a report which has been filtered on index position 1 of the Pages area. In this example, the report now shows only data relating to the Duckhorn winery.
  1304.  
  1305. {CrossTabReport.PreserveDataFormat}
  1306.  
  1307. Syntax
  1308.  
  1309.  {CrossTabReport.PreserveDataFormat Enable}
  1310.  
  1311. PerfectScript Syntax
  1312.  
  1313.  CrossTabReport_PreserveDataFormat (Enable?: Boolean)
  1314.  
  1315. Description
  1316.  
  1317.  Lets you specify whether or not the report should preserve the formatting options found in the data source.
  1318.  
  1319. Parameter
  1320.  
  1321.  Enable    0 Do not preserve the data format from source
  1322.  
  1323.  1 Preserve the data format from source.
  1324.  
  1325. Example
  1326.  
  1327.  A sample report has been generated without retaining the source data formatting. In the source, all data had appeared in bold. To apply the source data formatting to the report, the following macro command is executed.
  1328.  
  1329.  {CrossTabReport.PreserveDataFormat 1}
  1330.  
  1331.  {CrossTabReport.Edit}
  1332.  
  1333.  The result is a report which now applies the formatting options found in the source. All data now appears in bold.
  1334.  
  1335. {CrossTabReport.Refresh}
  1336.  
  1337. Syntax
  1338.  
  1339.  {CrossTabReport.Refresh}
  1340.  
  1341. PerfectScript Syntax
  1342.  
  1343.  CrossTabReport_Refresh ()
  1344.  
  1345. Description
  1346.  
  1347.  A command macro that lets you refresh the active report to reflect changes in the source data.
  1348.  
  1349. Example
  1350.  
  1351.  A sample report is generated from a data source. Now suppose the underlying data source is changed, for example, to reflect an increase in sales of $20,000 for Q4 of 1992. In order to have this change reflected in the report, the following macro command is executed while the active cursor selection is within the report.
  1352.  
  1353.  {CrossTabReport.Refresh}
  1354.  
  1355.  The result is a report updated to reflect changes in the source data. Note that the figure in Q4 of 1992 has changed.
  1356.  
  1357. {CrossTabReport.Remove}
  1358.  
  1359. Syntax
  1360.  
  1361.  {CrossTabReport.Remove}
  1362.  
  1363. PerfectScript Syntax
  1364.  
  1365.  CrossTabReport_Remove ()
  1366.  
  1367. Description
  1368.  
  1369.  A command macro which removes the active report.
  1370.  
  1371. {CrossTabReport.RowSummary}
  1372.  
  1373. Syntax
  1374.  
  1375.  {CrossTabReport.RowSummary Enable}
  1376.  
  1377. PerfectScript Syntax
  1378.  
  1379.  CrossTabReport_RowSummary (Enable?: Boolean)
  1380.  
  1381. Description
  1382.  
  1383.  Lets you specify whether or not to display row summaries in a report.
  1384.  
  1385. Parameter
  1386.  
  1387.  Enable    0 Do not display row summaries for the report.
  1388.  
  1389.  1 Display row summaries for the report
  1390.  
  1391. Example
  1392.  
  1393.  A sample report summarizes sales data. To add a row summary which calculates the total sales for each year, the following macro commands are executed.
  1394.  
  1395.  {CrossTabReport.RowSummary 1}
  1396.  
  1397.  {CrossTabReport.Options}
  1398.  
  1399.  The result is that each of the rows of sales data (1991-1992) have been added together and a grand total displayed at the end of each.
  1400.  
  1401. {CrossTabReport.Show}
  1402.  
  1403. Syntax
  1404.  
  1405.  {CrossTabReport.Show}
  1406.  
  1407. PerfectScript Syntax
  1408.  
  1409.  CrossTabReport_Show ()
  1410.  
  1411. Description
  1412.  
  1413.  A command macro used to show the details of the active or selected field in a report.
  1414.  
  1415. Example
  1416.  
  1417.  Within a sample Cross Tab Report, the active cursor selection is positioned within the Q1 field item, which has its details hidden, and the following macro command is executed.
  1418.  
  1419.  {CrossTabReport.Hide}
  1420.  
  1421.  The result is a report which displays the details for Q1. All other field items continue to display as they were originally.
  1422.  
  1423. Note
  1424.  
  1425.  The {CrossTabReport.Hide} macro can be used to return the report to its original state.
  1426.  
  1427. {CrossTabReport.Source}
  1428.  
  1429. Syntax
  1430.  
  1431.  {CrossTabReport.Source Block}
  1432.  
  1433. PerfectScript Syntax
  1434.  
  1435.  CrossTabReport_Source (Block?: String)
  1436.  
  1437. Description
  1438.  
  1439.  Lets you specify the sheet and range of cells from which you want to generate the report.
  1440.  
  1441. Parameter
  1442.  
  1443.  Block    The range of cells.
  1444.  
  1445. Example
  1446.  
  1447.  When creating a Cross Tab Report, the following macro command is used to specify the source for the report.
  1448.  
  1449.  {CrossTabReport.Source A:A1..H145}
  1450.  
  1451.  The report is generated from cells A1 to H145 on sheet A. For a more detailed example involving this macro, refer to the help for the {CrossTabReport.Create} macro.
  1452.  
  1453. {CrossTabReport.UpdateDataOnOpen}
  1454.  
  1455. Syntax
  1456.  
  1457.  {CrossTabReport.UpdateDataOnOpen Enable}
  1458.  
  1459. PerfectScript Syntax
  1460.  
  1461.  CrossTabReport_UpdateDataOnOpen (Enable?: Boolean)
  1462.  
  1463. Description
  1464.  
  1465.  Lets you specify whether or not to update data when you open the report.
  1466.  
  1467. Parameter
  1468.  
  1469.  Enable    0 Do not update the data.
  1470.  
  1471.  1 Update the data.
  1472.  
  1473. Example
  1474.  
  1475.  To update a report upon opening it, the following macro command is executed.
  1476.  
  1477.  {CrossTabReport.UpdateDataOnOpen 1}
  1478.  
  1479.  The report is updated to reflect any changes made to the source data.
  1480.  
  1481. {CTRL}
  1482.  
  1483. Syntax
  1484.  
  1485.  CTRL()
  1486.  
  1487. PerfectScript Syntax
  1488.  
  1489.  CTRL()
  1490.  
  1491. Description
  1492.  
  1493.  Is equivalent to using the CTRL key.
  1494.  
  1495. ¿ 
  1496. ¿ 
  1497.  
  1498.  
  1499.  
  1500.