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

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