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

  1. {SAMPLE}
  2.  
  3. Syntax
  4.  
  5. {SAMPLE InBlock,OutBlock,Type,Rate}
  6.  
  7. PerfectScript Syntax
  8.  
  9. SAMPLE (InBlock:String; OutBlock:String; Type:String; Rate:Numeric)
  10.  
  11. Description
  12.  
  13. {SAMPLE} returns a periodic or random sample from values in InBlock. {SAMPLE} is equivalent to the Sampling analysis tool.
  14.  
  15. Parameters
  16.  
  17. InBlock    One or more numeric or cell values representing the input cells
  18.  
  19. OutBlock    Upper-left cell of the output cells
  20.  
  21. Type    "P" to specify periodic sample; "R" to specify random sampling
  22.  
  23. Rate    A value indicating a sampling rate; if Type = "P", Rate indicates the periodic interval used for sampling; if Type = "R", Rate indicates the number of samples
  24.  
  25. {SaveHtml! }
  26.  
  27. Syntax
  28.  
  29. {SaveHtml!}
  30.  
  31. Description
  32.  
  33. Lets you open and view the Publish to Internet dialog box.
  34.  
  35. Example
  36.  
  37. SaveHtml!
  38.  
  39. {SaveHtml.BackgroundColor}
  40.  
  41. Syntax
  42.  
  43. {SaveHtml.BackgroundColor BkColor}
  44.  
  45. PerfectScript Syntax
  46.  
  47. SaveHtml_BackgroundColor (BkColor?: String)
  48.  
  49. Description
  50.  
  51. Lets you specify the default color of the background.
  52.  
  53. Example
  54.  
  55. SaveHtml.BackgroundColor Black
  56.  
  57. SaveHtml.BackgroundColor "#ff00ff"
  58.  
  59. Parameter
  60.  
  61. BkColor    The name of the default background color
  62.  
  63. Note
  64.  
  65.   SaveHtml.BackgroundColor will be effective only when the SaveHtml.UseBrowserColor command is called with 0
  66.   
  67. {SaveHtml.FileOptions}
  68.  
  69. Syntax
  70.  
  71.  {SaveHtml.FileOptions FileData}
  72.  
  73. PerfectScript Syntax
  74.  
  75.  SaveHtml_FileOptions (FileData?: String)
  76.  
  77. Description
  78.  
  79.  Lets you specify the initial .HTML file name and the default extension to be used. FileData consists of two variables delimited by a semicolon.
  80.  
  81. Example
  82.  
  83.  SaveHtml.FileOptions "Index.HTM; HTM"
  84.  
  85. Parameters
  86.  
  87.  FileData [semicolon delimited]    Initial name
  88.  
  89.  The initial .HTML file name
  90.  
  91.  
  92.  
  93.  Extension
  94.  
  95.  The default extension of .HTML files
  96.  
  97. {SaveHtml.GraphicType}
  98.  
  99. Syntax
  100.  
  101.  {SaveHtml.GraphicType Value}
  102.  
  103. PerfectScript Syntax
  104.  
  105.  SaveHtml_GraphicType (Value?: Numeric)
  106.  
  107. Description
  108.  
  109.  Lets you specify the file format to use for graphic images.
  110.  
  111. Example
  112.  
  113.  SaveHtml.GraphicType 1
  114.  
  115.  Result: Use the .JPG file format.
  116.  
  117. Parameter
  118.  
  119.  Value    0 The .GIF file format
  120.  
  121.  1 The .JPG file format
  122.  
  123.  2 The .PNG file format
  124.  
  125. {SaveHtml.Header}
  126.  
  127. Syntax
  128.  
  129.  {SaveHtml.Header Header}
  130.  
  131. PerfectScript Syntax
  132.  
  133.  SaveHtml_Header (Header?: String)
  134.  
  135. Description
  136.  
  137.  Lets you specify the text for the header section of the .HTML document.
  138.  
  139. Example
  140.  
  141.  SaveHtml.Header "Header text of this file"
  142.  
  143. Parameter
  144.  
  145.  Header    The text
  146.  
  147. {SaveHtml.HeaderDescription}
  148.  
  149. Syntax
  150.  
  151.  {SaveHtml.HeaderDescription HdrDesc}
  152.  
  153. PerfectScript Syntax
  154.  
  155.  SaveHtml_HeaderDescription (HdrDesc?: String)
  156.  
  157. Description
  158.  
  159.  Lets you specify the header description.
  160.  
  161. Example
  162.  
  163.  SaveHtml.HeaderDescription "Header description for this file"
  164.  
  165. Parameter
  166.  
  167.  HdrDesc    The header description
  168.  
  169. {SaveHtml.Layout}
  170.  
  171. Syntax
  172.  
  173.  {SaveHtml.Layout Value}
  174.  
  175. PerfectScript Syntax
  176.  
  177.  SaveHtml_Layout (Value?: Numeric)
  178.  
  179. Description
  180.  
  181.  Lets you specify the layout to be used.
  182.  
  183. Example
  184.  
  185.  SaveHtml.Layout 2
  186.  
  187. Parameter
  188.  
  189.  Value    0 Single page
  190.  
  191.  1 Frame enhanced pages
  192.  
  193.  2 Multiple pages
  194.  
  195. {SaveHtml.LineBeforeFooter}
  196.  
  197. Syntax
  198.  
  199.  {SaveHtml.LineBeforeFooter Enable}
  200.  
  201. PerfectScript Syntax
  202.  
  203.  SaveHtml_LineBeforeFooter (Enable?: Boolean)
  204.  
  205. Description
  206.  
  207.  Lets you specify whether or not to insert a line before the footer.
  208.  
  209. Example
  210.  
  211.  SaveHtml.LineBeforeFooter 1
  212.  
  213. Parameter
  214.  
  215.  Enable    0 No footer line
  216.  
  217.  1 Footer line
  218.  
  219. {SaveHtml.LineBeforeHeader}
  220.  
  221. Syntax
  222.  
  223.  {SaveHtml.LineBeforeHeader Enable}
  224.  
  225. PerfectScript Syntax
  226.  
  227.  SaveHtml_LineBeforeHeader (Enable?: Boolean)
  228.  
  229. Description
  230.  
  231.  Lets you specify whether or not to insert a line before the header.
  232.  
  233. Example
  234.  
  235.  SaveHtml.LineBeforeHeader 0
  236.  
  237. Parameter
  238.  
  239.  Enable    0 No header line
  240.  
  241.  1 Header line
  242.  
  243. {SaveHtml.LinkColor}
  244.  
  245. Syntax
  246.  
  247.  {SaveHtml.LinkColor LinkColor}
  248.  
  249. PerfectScript Syntax
  250.  
  251.  SaveHtml_LinkColor (LinkColor?: String)
  252.  
  253. Description
  254.  
  255.  Lets you specify the default color of the links
  256.  
  257. Example
  258.  
  259.  SaveHtml.LinkColor Black
  260.  
  261.  SaveHtml.LinkColor "#ff00ff"
  262.  
  263. Parameter
  264.  
  265.  LinkColor    The name of the default link color
  266.  
  267. Note
  268.  
  269.   SaveHtml.LinkColor will be effective only when the SaveHtml.UseBrowserColor command is called with 0
  270.   
  271. {SaveHtml.OutputFile}
  272.  
  273. Syntax
  274.  
  275.  {SaveHtml.OutputFile Filename}
  276.  
  277. PerfectScript Syntax
  278.  
  279.  SaveHtml_OutputFile (Filename?: String)
  280.  
  281. Description
  282.  
  283.  The name of the .HTML file into which the data is to be published.
  284.  
  285. Example
  286.  
  287.  SaveHtml.OutputFile "C:\Shared\New.HTM"
  288.  
  289. Parameter
  290.  
  291.  Filename    The name of the .HTML file
  292.  
  293. {SaveHtml.OutputType}
  294.  
  295. Syntax
  296.  
  297.  {SaveHtml.OutputType Value}
  298.  
  299. PerfectScript Syntax
  300.  
  301.  SaveHtml_OutputType (Value?: Numeric)
  302.  
  303. Description
  304.  
  305.  Lets you specify the type of the output file.
  306.  
  307. Example
  308.  
  309.  SaveHtml.OutputType 1
  310.  
  311. Parameter
  312.  
  313.  Value    0 Output as .HTML
  314.  
  315.  1 Output as .XML
  316.  
  317.  2 Insert into an existing .HTML file
  318.  
  319. {SaveHtml.SaveHtml}
  320.  
  321. Syntax
  322.  
  323.  {SaveHtml.SaveHtml}
  324.  
  325. PerfectScript Syntax
  326.  
  327.  SaveHtml_SaveHtml
  328.  
  329. Description
  330.  
  331.  Saves the data from the specified range into a .HTML file. Takes default values if no values have been specified.
  332.  
  333. {SaveHtml.Source}
  334.  
  335. Syntax
  336.  
  337.  {SaveHtml.Source SourceData}
  338.  
  339. PerfectScript Syntax
  340.  
  341.  SaveHtml_OutputFile (SourceData?: String)
  342.  
  343. Description
  344.  
  345.  Lets you specify the name of the .HTML file into which the data is to be published. SourceData consists of two variables delimited by a semicolon.
  346.  
  347. Example
  348.  
  349.  SaveHtml.Source "Range:A:A11..D11; 0"
  350.  
  351. Parameters
  352.  
  353.  SourceData [semicolon delimited]    Range
  354.  
  355.  The range specified as "Range:" followed by page name, followed by actual range.
  356.  
  357.  
  358.  
  359.  Boolean
  360.  
  361.  0 Output as table
  362.  
  363.  1 Output as text
  364.  
  365. {SaveHtml.TextColor}
  366.  
  367. Syntax
  368.  
  369.  {SaveHtml.TextColor TextColor}
  370.  
  371. PerfectScript Syntax
  372.  
  373.  SaveHtml_TextColor (TextColor?: String)
  374.  
  375. Description
  376.  
  377.  Lets you specify the default color of the text.
  378.  
  379. Example
  380.  
  381.  SaveHtml.TextColor Black
  382.  
  383.  SaveHtml.TextColor "#ff00ff"
  384.  
  385. Parameter
  386.  
  387.  TextColor    The name of the default text color
  388.  
  389. Note
  390.  
  391.   SaveHtml.TextColor will be effective only when the SaveHtml.UseBrowserColor command is called with 0
  392.   
  393. {SaveHtml.Title}
  394.  
  395. Syntax
  396.  
  397.  {SaveHtml.Title Title}
  398.  
  399. PerfectScript Syntax
  400.  
  401.  SaveHtml_Title (Title?: String)
  402.  
  403. Description
  404.  
  405.  Lets you specify the title for the file.
  406.  
  407. Example
  408.  
  409.  SaveHtml.Title "Title info of this file"
  410.  
  411. Parameter
  412.  
  413.  Title    The title for the file
  414.  
  415. {SaveHtml.UseBrowserColor}
  416.  
  417. Syntax
  418.  
  419.  {SaveHtml.UseBrowserColor Enable}
  420.  
  421. PerfectScript Syntax
  422.  
  423.  SaveHtml_UseBrowserColor (Enable?: Boolean)
  424.  
  425. Description
  426.  
  427.  Lets you specify whether browser colors or the colors you specify are to be used.
  428.  
  429. Example
  430.  
  431.  SaveHtml.UseBrowserColor 0
  432.  
  433. Parameter
  434.  
  435.  Enable    0 Lets you specify the colors.
  436.  
  437.  1 Use the browser's colors.
  438.  
  439. {SaveHtml.UserDetails}
  440.  
  441. Syntax
  442.  
  443.  {SaveHtml.UserDetails UserData}
  444.  
  445. PerfectScript Syntax
  446.  
  447.  SaveHtml_UserDetails (UserData?: String)
  448.  
  449. Description
  450.  
  451.  Lets you specify the user details for the .HTML file. UserData consists of three variables delimited by semicolons.
  452.  
  453. Example
  454.  
  455.  SaveHtml.UserDetails "Sep 23, 1998; Alpha; Alpha@Gamma.com"
  456.  
  457. Parameters
  458.  
  459.  UserData [semicolon delimited]    Last updated
  460.  
  461.  Lets you specify the date of the last update.
  462.  
  463.  
  464.  
  465.  Updated by
  466.  
  467.  Lets you specify who last updated the .HTML file.
  468.  
  469.  
  470.  
  471.  Email
  472.  
  473.  Lets you specify an email address.
  474.  
  475. {SaveHtml.UseRGBValues}
  476.  
  477. Syntax
  478.  
  479.  {SaveHtml.UseRGBValues Enable}
  480.  
  481. PerfectScript Syntax
  482.  
  483.  SaveHtml_UseRGBValues (Enable?: Boolean)
  484.  
  485. Description
  486.  
  487.  Lets you specify whether RGB values are to be used instead of the color name strings.
  488.  
  489. Example
  490.  
  491.  SaveHtml.UseRGBValues 0
  492.  
  493. Parameter
  494.  
  495.  Enable    0 Use the color name strings.
  496.  
  497.  1 Use RGB values.
  498.  
  499. {SaveHtml.Wallpaper}
  500.  
  501. Syntax
  502.  
  503.  {SaveHtml.Wallpaper Fillename}
  504.  
  505. PerfectScript Syntax
  506.  
  507.  SaveHtml_Wallpaper (Filename?: String)
  508.  
  509. Description
  510.  
  511.  Lets you specify which wallpaper is to be used as the background of the .HTML file.
  512.  
  513. Example
  514.  
  515.  SaveHtml.WallPaper "Stars.JPG"
  516.  
  517. Parameter
  518.  
  519.  Filename    The name of the wallpaper file
  520.  
  521. {Scenario}
  522.  
  523. Syntax
  524.  
  525.  {Scenario.Option}
  526.  
  527. PerfectScript Syntax
  528.  
  529.  Scenario_AddCells ([Block:String])
  530.  
  531.  Scenario_Capture (ScenarioName:String)
  532.  
  533.  Scenario_CaptureArea (Area:Enumeration {Notebook!; Page!; Block!; UserDefined!}; [Block:String])
  534.  
  535.  Scenario_Close ()
  536.  
  537.  Scenario_DeleteGroup (GroupName:String)
  538.  
  539.  Scenario_Find ()
  540.  
  541.  Scenario_Highlight (Highlight?:Enumeration {Yes!; No!}; ChangeCellColor:Numeric; ResultCellColor:Numeric)
  542.  
  543.  Scenario_NewGroup (GroupName:String)
  544.  
  545.  Scenario_Open ()
  546.  
  547.  Scenario_Remove (ScenarioName:String)
  548.  
  549.  Scenario_RemoveCells ([Block:String])
  550.  
  551.  Scenario_RenameGroup (OldGroupName:String; NewGroupName:String)
  552.  
  553.  Scenario_Report (AllGroups?:Enumeration {Yes!; No!}; LeftLabels?:Enumeration {Yes!; No!}; TopLabels?:Enumeration {Yes!; No!}; [Block:String])
  554.  
  555.  Scenario_Show (ScenarioName:String)
  556.  
  557.  Scenario_Update_On_Block (Update?:Enumeration {Yes!; No!})
  558.  
  559.  Scenario_UseGroup (GroupName:String)
  560.  
  561. Description
  562.  
  563.  {Scenario} lets you change values in a model, saving the conditions and results for different scenarios. {Scenario.Open} must be used prior to using other {Scenario.Option} commands; use {Scenario.Close} when you are finished using the Scenario Manager. For {Scenario.AddCells} and {Scenario.RemoveCells}, Block defaults to the currently selected cells. For {Scenario.Report}, Block defaults to the first empty sheet in the notebook.
  564.  
  565.  You can use {Scenario?} or {Scenario!} to display the Scenario Manager dialog box. {Scenario?} lets you manipulate the dialog box, whereas {Scenario!} relies on the macro to manipulate it.
  566.  
  567. Example
  568.  
  569.  The following macro captures the base scenario and two additional scenarios for a car loan.
  570.  
  571.  {Scenario.Open}
  572.  
  573.  {Scenario.Capture Base Scenario}
  574.  
  575.  {Scenario.Update}
  576.  
  577.  {SelectBlock A:F4}
  578.  
  579.  {PutCell ".096"}
  580.  
  581.  {SelectBlock A:C5}
  582.  
  583.  {PutCell "60"}
  584.  
  585.  {Scenario.Find}
  586.  
  587.  {Scenario.Highlight 1,7,9}
  588.  
  589.  {Scenario.Capture APR96-60}
  590.  
  591.  {Scenario.Update}
  592.  
  593.  {SelectBlock A:F4}
  594.  
  595.  {PutCell ".085"}
  596.  
  597.  {SelectBlock A:C5}
  598.  
  599.  {PutCell "48"}
  600.  
  601.  {Scenario.Find}
  602.  
  603.  {Scenario.Highlight 1,7,9}
  604.  
  605.  {Scenario.Capture APR85-48}
  606.  
  607.  {Scenario.Update}
  608.  
  609.  {Scenario.Report 0,1,0}
  610.  
  611.  {FileSaveAs "C:\COREL\SUITE8\DATA\CARS.WB3"}
  612.  
  613.  {Scenario.Close}
  614.  
  615. Options
  616.  
  617.  {Scenario.AddCells <Block>}    Defines the selected cells as change-and-result cells.
  618.  
  619.  {Scenario.Capture ScenarioName}    Takes a baseline snapshot of data
  620.  
  621.  {Scenario.CaptureArea Area,Block}    Specifies the area where the Scenario Manager tracks data and format changes.
  622.  
  623.  {Scenario.Close}    Closes a Scenario Manager session.
  624.  
  625.  {Scenario.DeleteGroup GroupName}    Deletes the active group and all scenarios in it.
  626.  
  627.  {Scenario.Find}    Automatically locates changed cells after you capture the baseline scenario and make changes.
  628.  
  629.  {Scenario.Highlight Highlight?(0|1), ChangeCellColor(0-15), ResultCellColor(0-15)}    Turns on and off coloring of change-and-result cells.
  630.  
  631.  {Scenario.NewGroup GroupName}    Creates and names a new Scenario Manager group.
  632.  
  633.  {Scenario.Open}    Initializes a Scenario Manager session.
  634.  
  635.  {Scenario.Remove ScenarioName}    Deletes the selected scenario.
  636.  
  637.  {Scenario.RemoveCells <Block>}    Excludes the selected change-and-result cells from the scenario.
  638.  
  639.  {Scenario.RenameGroup OldGroupName,NewGroupName}    Applies another name to the active group.
  640.  
  641.  {Scenario.Report AllGroups(0|1), LeftLabels(0|1), TopLabels(0|1), <Block>}    Creates a summary report of the change-and-result cells in each scenario.
  642.  
  643.  {Scenario.Show ScenarioName}    Lists scenarios you have captured in the active group of scenarios
  644.  
  645.  {Scenario.Update_On_Block Update?(0|1)}    Offers options for using the Scenario Manager to track versions.
  646.  
  647.  {Scenario.UseGroup GroupName}    Lists the scenario groups included in the active notebook.
  648.  
  649. {ScenarioExpert}
  650.  
  651. Description
  652.  
  653.  {ScenarioExpert} displays the first Scenario Expert dialog box. The macro has no arguments.
  654.  
  655. {SCROLLOFF} and {SCROLLON}
  656.  
  657. Description
  658.  
  659.  {SCROLLOFF} and {SCROLLON} are equivalent to Scroll Lock off and Scroll Lock on, respectively.
  660.  
  661. {Search}
  662.  
  663. Syntax
  664.  
  665.  {Search.Option}
  666.  
  667. PerfectScript Syntax
  668.  
  669.  Search_Block (Block:String)
  670.  
  671.  Search_Case (Case:Enumeration {Any!; Exact!})
  672.  
  673.  Search_Direction (Direction:Enumeration {Row!; Column!})
  674.  
  675.  Search_Find (String:String)
  676.  
  677.  Search_Look_In (LookIn:Enumeration {Formula!; Value!; Condition!})
  678.  
  679.  Search_Match (Match:Enumeration {Part!; Whole!})
  680.  
  681.  Search_Next ()
  682.  
  683.  Search_Previous ()
  684.  
  685.  Search_Replace ()
  686.  
  687.  Search_ReplaceAll ()
  688.  
  689.  Search_ReplaceBy (String:String)
  690.  
  691.  Search_Reset ()
  692.  
  693. Description
  694.  
  695.  {Search} searches for strings in the active sheet. Use {Search.ReplaceBy} to specify the replacement string; {Search.Replace} replaces the string.
  696.  
  697.  You can use {Search?} or {Search!} to display the Find And Replace dialog box. {Search?} lets you manipulate the dialog box, whereas {Search!} relies on the macro to manipulate it.
  698.  
  699. Example
  700.  
  701.  The following macro searches the active sheet for 1993 in formulas and replaces it with 1994.
  702.  
  703.  {Search.Reset}
  704.  
  705.  {Search.Block ""}
  706.  
  707.  {Search.Look_In Formula}
  708.  
  709.  {Search.Match Part}
  710.  
  711.  {Search.Find "1993"}
  712.  
  713.  {Search.ReplaceBy "1994"}
  714.  
  715.  {Search.ReplaceAll}
  716.  
  717. Options
  718.  
  719.  {Search.Block Block}    Specifies the cell or multiple cells to search.
  720.  
  721.  {Search.Case Any|Exact}    Considers capitalization during the search.
  722.  
  723.  {Search.Direction Column|Row}    Searches down columns first, starting with column 1.
  724.  
  725.  {Search.Find String}    Specifies the group of characters to be found in labels, values, and formulas.
  726.  
  727.  {Search.Look_In Condition | Formula | Value}    Specifies what is included in the search.
  728.  
  729.  {Search.Match Part|Whole}    Forces the search string to match all of a cell entry.
  730.  
  731.  {Search.Next}    Begins or resumes a forward search without replacing found entries.
  732.  
  733.  {Search.Previous}    Begins or resumes a backward search without replacing found entries.
  734.  
  735.  {Search.Replace}    Lets you decide on an individual basis whether to replace each string found.
  736.  
  737.  {Search.ReplaceAll}    Replaces all found strings without stopping.
  738.  
  739.  {Search.ReplaceBy String}    Specifies the group of characters to substitute for characters found.
  740.  
  741.  {Search.Reset}    Clears any entries in the dialog box and reinstates the defaults.
  742.  
  743. {SelectAll}
  744.  
  745. Description
  746.  
  747.  {SelectAll} selects every cell in the active sheet.
  748.  
  749. {SELECTBLOCK}
  750.  
  751. Syntax
  752.  
  753.  {SELECTBLOCK Block, <ActiveCell>}
  754.  
  755. PerfectScript Syntax
  756.  
  757.  SelectBlock (Block:String; [ActiveCell:String])
  758.  
  759. Description
  760.  
  761.  {SELECTBLOCK} lets you select a contiguous or noncontiguous selection within the active notebook. The noncontiguous selections must be enclosed in parentheses.
  762.  
  763. Example
  764.  
  765.  {SELECTBLOCK A4..B23} selects the cells A4..B23 in the active notebook window.
  766.  
  767.  {SELECTBLOCK (A:A1..A:B12,B:B13..B:C34)} selects the noncontiguous selections A:A1..A:B12, B:B13..B:C34.
  768.  
  769. Parameters
  770.  
  771.  Block    Coordinates of the cell(s) to select
  772.  
  773.  ActiveCell    Address of the cell within the cells to make active
  774.  
  775. {SELECTFLOAT}
  776.  
  777. Syntax
  778.  
  779.  {SELECTFLOAT ObjectID1<,ObjectID2,...>}
  780.  
  781. PerfectScript Syntax
  782.  
  783.  SelectFloat (ObjectID:String; {[MoreObjectID:String]})
  784.  
  785. Description
  786.  
  787.  With {SELECTFLOAT} you can select floating objects in the active notebook window using their names. (To find the name of an object, view it and study its Object Name property.) Use {SELECTOBJECT} to select objects in a chart or dialog window.
  788.  
  789. Example
  790.  
  791.  {SELECTFLOAT "Button1"} selects the macro button in the active notebook window with the object name Button1.
  792.  
  793. Parameters
  794.  
  795.  ObjectIDx    Name of the notebook object(s) to select
  796.  
  797. {SELECTOBJECT}
  798.  
  799. Syntax
  800.  
  801.  {SELECTOBJECT ObjectID1<,ObjectID2,...>}
  802.  
  803. PerfectScript Syntax
  804.  
  805.  SelectObject ([ObjectID:String]; {[MoreObjectID:String]})
  806.  
  807. Description
  808.  
  809.  With {SELECTOBJECT} you can select objects in the active window using their ID numbers or names. (To find the ID number of an object, view it and study its Object ID property. Its name is stored in its Name property.) Since {SELECTOBJECT} is context sensitive, you can select controls in a dialog window, drawings in a chart window, or icons in the Objects sheet.
  810.  
  811. Example
  812.  
  813.  {SELECTOBJECT 2,5,7} selects the objects in the active window with the IDs 2, 5, and 7.
  814.  
  815. Parameters
  816.  
  817.  ObjectIDx    Identification number or name of the object(s) to select
  818.  
  819. {Series}
  820.  
  821. Syntax
  822.  
  823.  {Series.Option}
  824.  
  825. PerfectScript Syntax
  826.  
  827.  Series_Data_Range (SeriesID:Any; Block:String; [CreateIfNotExist?:Enumeration {Yes!; No!}])
  828.  
  829.  Series_Delete (SeriesNumber:Numeric; [AndAllSeriesFollowing?:Enumeration {Yes!; No!}])
  830.  
  831.  Series_Go ()
  832.  
  833.  Series_Insert (SeriesNumber:Numeric; Block:String)
  834.  
  835.  Series_Label_Range (SeriesNumber:Numeric; Block:String; [CreateIfNotExist?:Enumeration {Yes!; No!}])
  836.  
  837.  Series_Legend (SeriesNumber:Numeric; LegendText:String)
  838.  
  839.  Series_Reverse_Series (Yes?:Enumeration {Yes!; No!})
  840.  
  841.  Series_Swap_Row_Col (Yes?:Enumeration {Yes!; No!})
  842.  
  843. Description
  844.  
  845.  {Series} creates or deletes chart series.
  846.  
  847.  When you manipulate a series using command equivalents, the changes are not made until the command {Series.Go} is used. In all the commands, SeriesNumber is the number of the series to affect (1 for the first series, 2 for the second, and so on).
  848.  
  849.  {Series.Data_Range} changes the values of an existing series. Block is the new cells that the series should take values from. If you are not sure whether the series exists, set CreateIfNotExist? to 1. Then the series will be created if it does not already exist. You can also use {Series.Data_Range} to set the x-axis series (use "XAxisLabelSeries") or set the legend series (use "LegendSeries").
  850.  
  851.  {Series.Delete} removes an existing series. Set AndAllSeriesFollowing? to 1 if you also want to remove all series following SeriesNumber.
  852.  
  853.  {Series.Insert} creates a new series. The series is inserted at the position specified by SeriesNumber. Block refers to the cells containing the new series' data.
  854.  
  855.  {Series.Label_Range} sets up the labels for each value in a series. Block refers to the cells containing the labels. If you are not sure whether the series exists, set CreateIfNotExist? to 1. Then the series will be created if it does not already exist.
  856.  
  857.  {Series.Legend} sets the legend text for a series (LegendText is the new text).
  858.  
  859.  You can use {Series?} or {Series!} to display the Chart Series dialog box. {Series?} lets you manipulate the dialog box, whereas {Series!} relies on the macro to manipulate it.
  860.  
  861.  You can add series to a floating chart using {ADDSERIES}.
  862.  
  863. Example
  864.  
  865.  The following macro creates a chart named Profit99 with two series. The series values are in A:A1..A27 and A:C1..C27. The series labels are in A:B1..B27 and A:D1..D27. The x axis is stored in A:E1..E27.
  866.  
  867.  {GraphNew Profit99}
  868.  
  869.  {GraphEdit Profit99}
  870.  
  871.  {Series.Data_Range 1,A:A1..A27,1}
  872.  
  873.  {Series.Data_Range 2,A:C1..C27,1}
  874.  
  875.  {Series.Label_Range 1,A:B1..B27}
  876.  
  877.  {Series.Label_Range 2,A:D1..D27}
  878.  
  879.  {Series.Data_Range "XAxisLabelSeries",A:E1..E27}
  880.  
  881.  {Series.Go}
  882.  
  883.  The following macro inserts a new series between the two series in the last example.
  884.  
  885.  {GraphEdit Profit99}
  886.  
  887.  {Series.Insert 2,A:G1..G27}
  888.  
  889.  {Series.Go}
  890.  
  891. Options
  892.  
  893.  {Series.Data_Range SeriesNumber | "XaxisLabelSeries" | "LegendSeries", Block <,CreateIfNotExist? (0|1)>}    Specifies the cell coordinates of the chart data, legend, or label. You must place this value within quotations.
  894.  
  895.     {Series.Delete SeriesNumber <,AndAllSeriesFollowing?>}    Deletes the selected series.
  896.  
  897.  {Series.Go}    Changes the series according to your selections.
  898.  
  899.  {Series.Insert SeriesNumber, Block}    Adds a new series after the selected series.
  900.  
  901.  {Series.Label_Range SeriesNumber, Block <,CreateIfNotExist? (0|1)>}    Specifies the series used for labels.
  902.  
  903.  {Series.Legend SeriesNumber, LegendText}    Specifies the series used for the legend. You must place this value within quotations.
  904.  
  905.  {Series.Reverse_Series 1|0}    Plots the last series first, then moves backwards through the series order.
  906.  
  907.   {Series.Swap_Row_Col 1|0}    Plots columns as series when Quattro Pro plots series by rows, and plots rows as series when Quattro Pro would plot columns.
  908.  
  909. {SeriesManager}
  910.  
  911. Syntax
  912.  
  913.  {SeriesManager.Option}
  914.  
  915. PerfectScript Syntax
  916.  
  917.  SeriesManager_Define (Name:String; FormulaOrList:String; FormulaTextOrRepeat:Any; SeedTextOrValue:String; {[Value:String]})
  918.  
  919.  SeriesManager_Go (Name:String; Orientation:Enumeration {Rows!; Columns!; Tabs!}; [Block:String])
  920.  
  921.  SeriesManager_Remove (Name:String)
  922.  
  923.  SeriesManager_Rename (OldName:String; NewName:String)
  924.  
  925. Description
  926.  
  927.  {SeriesManager} create a new QuickFill list series. Use {SeriesManager} to create a formula series and a list series.
  928.  
  929.  You can use {SeriesManager?} or {SeriesManager!} to display the Define Fill Series dialog box. {SeriesManager?} lets you manipulate the dialog box, whereas {SeriesManager!} relies on the macro to manipulate it.
  930.  
  931. Example
  932.  
  933.  The following macro creates a SpeedFill series named "First of Month" that consists of the first day of each month in 1995, then fills a column starting at A:A2 with the dates.
  934.  
  935.  {SeriesManager.Define "First of Month", List, No, "01/01/95", "02/01/95", "03/01/95", "04/01/95", "05/01/85", "06/01/95", "07/01/95", "08/01/95", "09/01/95", "10/01/05", "11/01/95", "12/01/95"}
  936.  
  937.  {SpeedFill}
  938.  
  939.  {SeriesManager.Go "First of Month",Columns, A:A2}
  940.  
  941. Options
  942.  
  943.  {SeriesManager.Define Name, Formula, FormulaText, SeedText}    Lets you define a new series.
  944.  
  945.  {SeriesManager.Define Name, List, Repeating?(0|1), Value1 <,Value2, Value3,...>}    Lets you define and name a new series.
  946.  
  947.  {SeriesManager.Go Name, Rows | Columns | Tabs, Block}    Quickly fill cells with a sequence of entries.
  948.  
  949.  {SeriesManager.Remove Name}    Deletes the selected series.
  950.  
  951.  {SeriesManager.Rename OldName, NewName}    Changes the name for the selected series.
  952.  
  953. {SetCellString}
  954.  
  955. Syntax
  956.  
  957.  {SetCellString Cell; String}
  958.  
  959. PerfectScript Syntax
  960.  
  961.  SetCellString (Cell: String; String: String)
  962.  
  963. Description
  964.  
  965.  Lets you specify the string insert into the cell.
  966.  
  967. Example
  968.  
  969.  {SetCellString A1; "The string"}
  970.  
  971. Parameters
  972.  
  973.  Cell    The cell into which you want to insert the string
  974.  
  975.  String    The string you want to insert into the cell
  976.  
  977. {SETGRAPHATTR}
  978.  
  979. Syntax
  980.  
  981.  {SETGRAPHATTR FillColor,BkgColor,FillStyle,BorderColor,BoxType}
  982.  
  983. PerfectScript Syntax
  984.  
  985.  SetGraphAttr (FillColor:String; BkgColor:String; FillStyle:String; BorderColor:String; BoxType:String)
  986.  
  987. Description
  988.  
  989.  {SETGRAPHATTR} lets you quickly set the properties of all selected objects in the active chart window. If one of the arguments specified in the {SETGRAPHATTR} command is not appropriate for an object, that argument is ignored.
  990.  
  991.  Each color (FillColor, BkgColor, and BorderColor) is in quotes, and specified in RGB format. For FillStyle, use any of the strings for that option in the appropriate Object Inspector.
  992.  
  993.  BoxType specifies the new border style for the object; use any Border Style property string included in a chart Object Inspector.
  994.  
  995. Parameters
  996.  
  997.  FillColor    New fill color of the selected object(s)
  998.  
  999.  BkgColor    New background color of the selected object(s)
  1000.  
  1001.  FillStyle    New fill style of the selected object(s)
  1002.  
  1003.  BorderColor    New border color of the selected object(s)
  1004.  
  1005.  BoxType    New border style of the selected object(s)
  1006.  
  1007. {SETLCID}
  1008.  
  1009. Syntax
  1010.  
  1011.  {SETLCID <LocalID>}
  1012.  
  1013. PerfectScript Syntax
  1014.  
  1015.  SetLCID ([LocalID:Numeric])
  1016.  
  1017. Description
  1018.  
  1019.  {SETLCID} sets the locale ID to the default locale ID or to one specified by LocalID. The local ID is a fixed number which specifies language, separator character, and a variety of other international settings; use {SETLCID} to ensure that the automation controller is using the default ID or the ID of a specific target object.
  1020.  
  1021. Parameters
  1022.  
  1023.  LocalID    The value of the local ID
  1024.  
  1025.  
  1026.  
  1027. {SETMENUBAR}
  1028.  
  1029. Syntax
  1030.  
  1031.  {SETMENUBAR <SystemDefinition>}
  1032.  
  1033. PerfectScript Syntax
  1034.  
  1035.  SetMenuBar ([SystemDefinition:String])
  1036.  
  1037. Description
  1038.  
  1039.  {SETMENUBAR} lets you specify which menu system displays on the menu bar. SystemDefinition refers to cells containing the new menu system definition.
  1040.  
  1041.  You can use {SETMENUBAR} without an argument to restore the default Quattro Pro menu system.
  1042.  
  1043. Example
  1044.  
  1045.  {SETMENUBAR "A3..C324"} makes the system defined in A3..C324 the active menu system.
  1046.  
  1047. Parameters
  1048.  
  1049.  SystemDefinition    Cells containing a menu system definition
  1050.  
  1051. Note
  1052.  
  1053.   This command is obsolete
  1054.   
  1055. {SETOBJECTPROPERTY}
  1056.  
  1057. Syntax
  1058.  
  1059.  {SETOBJECTPROPERTY Object.Property,Value}
  1060.  
  1061. PerfectScript Syntax
  1062.  
  1063.  SetObjectProperty (ObjectProperty:String; Value:String)
  1064.  
  1065. Description
  1066.  
  1067.  {SETOBJECTPROPERTY} can change the property settings of many Quattro Pro objects. Selectable objects such as blocks and annotations can also be changed using {SETPROPERTY}. {SETOBJECTPROPERTY} can affect:
  1068.  
  1069.  ¿    Dialog controls. Use this syntax to specify a control to manipulate in a dialog window: [Notebook]DialogName:ObjectID.Property. [Notebook] is optional. For example, the following macro sets the Fill Color property of the control Rectangle1 in the dialog ColorPick to red:
  1070.  
  1071.  {SETOBJECTPROPERTY "ColorPick:Rectangle1.Fill_Color", "255,0,0"}
  1072.  
  1073.  ¿    Chart objects. Use the same syntax as for dialog controls, but substitute the name of the chart in place of DialogName. For example, the following macro changes the size of a rectangle named ColorPick in the chart 1QTR92:
  1074.  
  1075.  {SETOBJECTPROPERTY "1QTR92:ColorPick.Dimension", "0,0,25,25"}
  1076.  
  1077.  ¿    Menu items. Use the syntax MenuPath.Property. See the description of {ADDMENU} for the syntax of MenuPath.. For example, the following macro disables Save in the active menu system:
  1078.  
  1079.  {SETOBJECTPROPERTY "/File/Save.Disabled", "Yes"}
  1080.  
  1081. Parameters
  1082.  
  1083.  Value is the new setting for the property. You can also substitute another instance of Object.Property for this argument to copy property settings between objects. For example, this macro copies the text color of the active cells to the text color of A23:
  1084.  
  1085.  {SETOBJECTPROPERTY "A23.Text_Color","Active_Block.Text_Color"}
  1086.  
  1087. Parameters
  1088.  
  1089.  Object    Object to alter property of
  1090.  
  1091.  Property        Property to alter
  1092.  
  1093.  Value    New property setting (or another instance of Object.Property to copy the new setting from)
  1094.  
  1095. {SETPOS}
  1096.  
  1097. Syntax
  1098.  
  1099.  {SETPOS FilePosition}
  1100.  
  1101. Description
  1102.  
  1103.  {SETPOS} moves the file pointer of a file previously opened using {OPEN} to the value FilePosition. (See {GETPOS} for a discussion of the file pointer.) FilePosition refers to the offset, in number of bytes, where you want to position the file pointer. Therefore, the first position in the file is numbered 0, not 1.
  1104.  
  1105.  If no file is open when {SETPOS} is encountered (or some other problem occurs), macro execution begins with the next command in the same cell as {SETPOS}. If {SETPOS} succeeds, the rest of that cell's commands are ignored, and execution continues in the next row of the macro.
  1106.  
  1107.  For an example using {SETPOS}, see {READ}.
  1108.  
  1109. Parameters
  1110.  
  1111.  FilePosition    the number of bytes into a file to set the file pointer to
  1112.  
  1113. {SETPROPERTY}
  1114.  
  1115. Syntax
  1116.  
  1117.  {SETPROPERTY Property,Value}
  1118.  
  1119. PerfectScript Syntax
  1120.  
  1121.  SetProperty (Property:String; Value:String)
  1122.  
  1123. Description
  1124.  
  1125.  {SETPROPERTY} alters the properties of the active object (use {SELECTBLOCK}, {SELECTFLOAT}, or {SELECTOBJECT} to select objects).
  1126.  
  1127.  To find Property, view the object and use the name of the control that sets the property. If the control name is more than one word, connect the words with underscores (_).
  1128.  
  1129. Example
  1130.  
  1131.  {SETPROPERTY "Text_Color", "3"}
  1132.  
  1133.  Result: Sets the selected cells' Text Color property to the fourth color on the notebook palette (the first color is 0).
  1134.  
  1135. Parameters
  1136.  
  1137.  Property    String representing the property to change
  1138.  
  1139.  Value    String representing the setting to apply to the property
  1140.  
  1141. {SHIFT}
  1142.  
  1143. Syntax
  1144.  
  1145.  Shift()
  1146.  
  1147.  Description
  1148.  
  1149.  This is equivalent to using the shift key.
  1150.  
  1151. {ShowErrorMessage}
  1152.  
  1153. Syntax
  1154.  
  1155.  {ShowErrorMessage}
  1156.  
  1157. PerfectScript Syntax
  1158.  
  1159.  ShowErrorMessage ()
  1160.  
  1161. Description
  1162.  
  1163.  Reinstates the ability for Quattro Pro to show an error message, if one is warranted.
  1164.  
  1165. {Slide}
  1166.  
  1167. Syntax
  1168.  
  1169.  {Slide.Option}
  1170.  
  1171. PerfectScript Syntax
  1172.  
  1173.  Slide_Effect (Effect:String)
  1174.  
  1175.  Slide_Goto (SlideName:String)
  1176.  
  1177.  Slide_Next ()
  1178.  
  1179.  Slide_Previous ()
  1180.  
  1181.  Slide_Run (SlideShowName:String)
  1182.  
  1183.  Slide_Speed (Speed:Numeric)
  1184.  
  1185.  Slide_Time (Time:Numeric)
  1186.  
  1187. Description
  1188.  
  1189.  {Slide} lets you build, edit, and present graphics slide show sequences. Effect, Speed, and Time are the same options offered in the Slide Effect property in the Light Table window. {Slide.Effect}, {Slide.Speed}, {Slide.Time}, {Slide.Goto}, {Slide.Next}, and {Slide.Previous} can be in the spreadsheet macro which started the slide show, in a spreadsheet macro run from a chart button, or attached directly to a QuickButton or custom dialog box button.
  1190.  
  1191. Options
  1192.  
  1193.  {Slide.Eff ect Effect}    Specifies the transition effect to use when displaying the next slide in a slide show.
  1194.  
  1195.  {Slide.Goto SlideName}    Takes the active slide show directly to the slide SlideName.
  1196.  
  1197.  {Slide.Next}    Advances the active slide show to the next slide.
  1198.  
  1199.  {Slide.Previous}    Returns the active slide show to the previous slide.
  1200.  
  1201.  {Slide.Run SlideShowName}    Plays the slide show.
  1202.  
  1203.  {Slide.Speed 0-15}    Specifies the transition speed to use when displaying the next slide in a slide show.
  1204.  
  1205.  {Slide.Time Time}    Specifies the time in seconds to display the next slide in a slide show.
  1206.  
  1207. {SlideShowExpert}
  1208.  
  1209. Description
  1210.  
  1211.  {SlideShowExpert} displays the first Slide Show Expert dialog box. The macro has no arguments.
  1212.  
  1213. {SolveFor}
  1214.  
  1215. Syntax
  1216.  
  1217.  {SolveFor.Option}
  1218.  
  1219. PerfectScript Syntax
  1220.  
  1221.  SolveFor_Accuracy (Value:Numeric)
  1222.  
  1223.  SolveFor_Formula_Cell (Cell:String)
  1224.  
  1225.  SolveFor_Go ()
  1226.  
  1227.  SolveFor_Max_Iters (Iters:Numeric)
  1228.  
  1229.  SolveFor_Reset ()
  1230.  
  1231.  SolveFor_Target_Value (Value:Numeric)
  1232.  
  1233.  SolveFor_Variable_Cell (Cell:String)
  1234.  
  1235. Description
  1236.  
  1237.  {SolveFor} solves goal-seeking problems with one variable.
  1238.  
  1239.  {SolveFor.Formula_Cell} indicates the location of the formula to evaluate. {SolveFor.Target_Value} is the goal to reach, either a number or a cell containing a number. {SolveFor.Variable_Cell} indicates the formula variable (a referenced cell) that can change to reach the target value.
  1240.  
  1241.  {SolveFor.Max_Iters} and {SolveFor.Accuracy} control how many calculation passes to make and how closely the solution must match the target value. Use {SolveFor.Go} after the other commands. {SolveFor.Reset} clears previous settings.
  1242.  
  1243.  You can use {SolveFor?} or {SolveFor!} to display the Solve For dialog box. {SolveFor?} lets you manipulate the dialog box, whereas {SolveFor!} relies on the macro to manipulate it.
  1244.  
  1245. Options
  1246.  
  1247.  {SolveFor.Accuracy Value}    Specifies how close Solve For must get to the Target Value.
  1248.  
  1249.  {SolveFor.Variable_Cell Cell}    Indicates which cell Quattro Pro can change to solve for a desired value.
  1250.  
  1251.  {SolveFor.Formula_Cell Cell}    Specifies the cell containing the formula you want to solve.
  1252.  
  1253.  {SolveFor.Go}    Solves for the Target Value.
  1254.  
  1255.  {SolveFor.Max_Iters Value}    Determines how many passes Solve For makes to solve the formula.
  1256.  
  1257.  {SolveFor.Reset}    Clears all Solve For settings.
  1258.  
  1259.  {SolveFor.Target_Value Value}    Specifies the result you want from the Formula Cell.
  1260.  
  1261. {Sort}
  1262.  
  1263. Syntax
  1264.  
  1265.  {Sort.Option}
  1266.  
  1267. PerfectScript Syntax
  1268.  
  1269.  Sort_BlankCellsFirst (BlankFirst?:Enumeration {Yes!; No!})
  1270.  
  1271.  Sort_Block (Block:String)
  1272.  
  1273.  Sort_Data (Order:String)
  1274.  
  1275.  Sort_Go ()
  1276.  
  1277.  Sort_Heading (Heading?:Enumeration {Yes!; No!})
  1278.  
  1279.  Sort_Key_1 (Cell:String)
  1280.  
  1281.  Sort_Key_2 (Cell:String)
  1282.  
  1283.  Sort_Key_3 (Cell:String)
  1284.  
  1285.  Sort_Key_4 (Cell:String)
  1286.  
  1287.  Sort_Key_5 (Cell:String)
  1288.  
  1289.  Sort_Labels (Use:String)
  1290.  
  1291.  Sort_Order_1 (Order:String)
  1292.  
  1293.  Sort_Order_2 (Order:String)
  1294.  
  1295.  Sort_Order_3 (Order:String)
  1296.  
  1297.  Sort_Order_4 (Order:String)
  1298.  
  1299.  Sort_Order_5 (Order:String)
  1300.  
  1301.  Sort_PreviousSorts (PreviousSorts?:Numeric)
  1302.  
  1303.  Sort_Reset ()
  1304.  
  1305.  Sort_Type (Type?:String)
  1306.  
  1307. Description
  1308.  
  1309.  {Sort} sorts the entries in cells. To perform the sort, use {Sort.Go} after the other sort command equivalents.
  1310.  
  1311.  You can use {Sort?} or {Sort!} to display the Data Sort dialog box. {Sort?} lets you manipulate the dialog box, whereas {Sort!} relies on the macro to manipulate it.
  1312.  
  1313.  {Sort.Reset} allows Quattro Pro to automatically determine the sort block, the first sort key, and whether there is a heading row, based on the block surrounding the selected cell, or the selected range.
  1314.  
  1315. Example
  1316.  
  1317.  The following macro sorts the cells A3..C40 using two sort keys (columns A and C). The sort is in ascending order, and values in a column are placed in a group before labels in the column. The labels are sorted in dictionary order.
  1318.  
  1319.  {Sort.Reset}
  1320.  
  1321.  {Sort.Block "A:A3..C40"}
  1322.  
  1323.  {Sort.Type Top to bottom}
  1324.  
  1325.  {Sort.Heading 0}
  1326.  
  1327.  {Sort.Key_1 a25}
  1328.  
  1329.  {Sort.Key_2 c23}
  1330.  
  1331.  {Sort.Order_1 Ascending}
  1332.  
  1333.  {Sort.Order_2 Ascending}
  1334.  
  1335.  {Sort.BlankCellsFirst No}
  1336.  
  1337.  {Sort.Data Numbers First}
  1338.  
  1339.  {Sort.PreviousSorts -1}
  1340.  
  1341.  {Sort.Labels Dictionary}
  1342.  
  1343.  {Sort.Go}
  1344.  
  1345. Options
  1346.  
  1347.  {Sort.BlankCellsFirst 0|1}    Determines whether to filter blank cells to the top during a sort.
  1348.  
  1349.  {Sort.Block Block}    Specifies cells to be sorted, including row labels but excluding column headings.
  1350.  
  1351.  {Sort.Data "Labels First"|"Numbers First"}    Determines whether to sort Labels or Numbers first.
  1352.  
  1353.  {Sort.Go}    Performs the sort you specified.
  1354.  
  1355.  {Sort.Heading 0|1}    Determines whether the first row (or column, depending on sorting based on rows or columns) is used as column headings, or is part of the sort block.
  1356.  
  1357.  {Sort.Key_1-5 Block}    Specifies up to 5 sort keys, in the order they are to be sorted.
  1358.  
  1359.  {Sort.Labels "Character Code"|"Dictionary"}    Specifies whether text sorts in Dictionary order (ordinary alphabetizing rules) or Character Code order (according to character number-for example, uppercase letters before lowercase). Retained for use with previous Quattro Pro version macros.
  1360.  
  1361.  {Sort.Order_1-5 Ascending|Descending}    Specifies ascending or descending sort order
  1362.  
  1363.  {Sort.PreviousSorts N}    Stores up to the last five sorts performed in current file.
  1364.  
  1365.  {Sort.Reset}    Clears all entries and restores defaults.
  1366.  
  1367.  {Sort.Type "Left to Right" | "Top to Bottom"    Determines to sort by rows or columns.
  1368.  
  1369. {SPEEDFILL}
  1370.  
  1371. Description
  1372.  
  1373.  {SPEEDFILL} is equivalent to the QuickFill button  on the Toolbar. It fills the selected cells with sequential data, based on entries in the upper-left portion of the cells.
  1374.  
  1375.  To create or modify a series used with QuickFill, use {SeriesManager.Option}.
  1376.  
  1377. {SpeedFormat}
  1378.  
  1379. Syntax
  1380.  
  1381.  {SpeedFormat FmtName, NumFmt?(0|1), Font?(0|1), Shading?(0|1), TextColor?(0|1), Align?(0|1), LineDraw?(0|1), AutoWidth?(0|1), ColHead?(0|1), ColTotal?(0|1), RowHead?(0|1), RowTotal?(0|1), <SubTotals?(0|1)>}
  1382.  
  1383. PerfectScript Syntax
  1384.  
  1385.  SpeedFormat (FmtName:String; NumFmt?:Enumeration {Yes!; No!}; Font?:Enumeration {Yes!; No!}; Shading?:Enumeration {Yes!; No!}; TextColor?:Enumeration {Yes!; No!}; Align?:Enumeration {Yes!; No!}; LineDraw?:Enumeration {Yes!; No!}; AutoWidth?:Enumeration {Yes!; No!}; ColHead?:Enumeration {Yes!; No!}; ColTotal?:Enumeration {Yes!; No!}; RowHead?:Enumeration {Yes!; No!}; RowTotal?:Enumeration {Yes!; No!}; [SubTotals?:Enumeration {Yes!; No!}])
  1386.  
  1387. Description
  1388.  
  1389.  {SpeedFormat} applies the format FmtName to the selected cells. The arguments NumFmt? through SubTotals? each specify a part of the format to apply; use 1 to apply the part or 0 to omit the part.
  1390.  
  1391.  You can use {SpeedFormat?} or {SpeedFormat!} to display the SpeedFormat dialog box. {SpeedFormat?} lets you manipulate the dialog box, whereas {SpeedFormat!} relies on the macro to manipulate it.
  1392.  
  1393.  To add or remove formats, use {SpeedFormat.Option}.
  1394.  
  1395. Parameters
  1396.  
  1397.  FmtName    Name of the format to apply
  1398.  
  1399.  NumFmt?    1 to apply the numeric format; 0 otherwise
  1400.  
  1401.  Font?    1 to apply the font; 0 otherwise
  1402.  
  1403.  Shading?    1 to apply the shading; 0 otherwise
  1404.  
  1405.  TextColor?    1 to apply the text color; 0 otherwise
  1406.  
  1407.  Align?    1 to apply the alignment; 0 otherwise
  1408.  
  1409.  LineDraw?    1 to apply the line drawing; 0 otherwise
  1410.  
  1411.  AutoWidth?    1 to automatically size the columns; 0 otherwise
  1412.  
  1413.  ColHead    1 to apply the column heading format; 0 otherwise
  1414.  
  1415.  ColTotal?    1 to apply the column total format; 0 otherwise
  1416.  
  1417.  RowHead?    1 to apply the row heading format; 0 otherwise
  1418.  
  1419.  RowTotal?    1 to apply the row total format; 0 otherwise
  1420.  
  1421.  SubTotals?    1 to apply the subtotal format; 0 otherwise
  1422.  
  1423. {SpeedFormat}
  1424.  
  1425. Syntax
  1426.  
  1427.  {SpeedFormat.Option}
  1428.  
  1429. PerfectScript Syntax
  1430.  
  1431.  SpeedFormat_Add (Name:String; ExampleBlock:String)
  1432.  
  1433.  SpeedFormat_Remove (Name:String)
  1434.  
  1435. Description
  1436.  
  1437.  {SpeedFormat} adds formats to the SpeedFormat dialog box, or removes them. {SPEEDFORMAT.Add} lets you specify a name for the new format and the example cells that define the format. {SpeedFormat.Remove} deletes a specified format.
  1438.  
  1439. Example
  1440.  
  1441.  The following macro adds a format named "Strauss" to the SpeedFormat dialog box. The format is based on the example cells A:C10..H25.
  1442.  
  1443.  {SpeedFormat.Add "Strauss",A:C10..H25}
  1444.  
  1445. Options
  1446.  
  1447.  {SpeedFormat.Add Name, ExampleBlock}    Creates a new custom format.
  1448.  
  1449.  {SpeedFormat.Remove Name}    Deletes the active SpeedFormat.
  1450.  
  1451. {SPEEDSUM}
  1452.  
  1453. Syntax
  1454.  
  1455.  {SPEEDSUM Block}
  1456.  
  1457. PerfectScript Syntax
  1458.  
  1459.  SpeedSum ([Block:String])
  1460.  
  1461. Description
  1462.  
  1463.  {SPEEDSUM} is equivalent to selecting cells and choosing the QuickSum button  from the Toolbar. Block includes rows and/or columns to sum, plus adjacent empty cells to hold the results; the default Block is the current selection.
  1464.  
  1465. Parameters
  1466.  
  1467.  Block    Coordinates of the cells to sum, including blank cells for results
  1468.  
  1469. {STEP}
  1470.  
  1471. Description
  1472.  
  1473.  {STEP} is equivalent to the Debug key, Shift+F2.
  1474.  
  1475. {STEPOFF}
  1476.  
  1477. Description
  1478.  
  1479.  {STEPOFF} exits Debug mode, which runs the macro in slow-motion for debugging. The macro then runs at normal speed.
  1480.  
  1481.  See {STEPON} for more information.
  1482.  
  1483. Note
  1484.  
  1485.   This command is obsolete
  1486.   
  1487. {STEPON}
  1488.  
  1489. Description
  1490.  
  1491.  {STEPON} activates Debug mode, which runs macros one step at a time for debugging. When Quattro Pro encounters a {STEPON} command, it pauses and waits for you to press any key or click the mouse before it runs the next macro command and pauses again. Debug mode continues until {STEPOFF} is encountered or the macro ends.
  1492.  
  1493.  {STEPON} is like using the Debug key (Shift+F2) to enter Debug mode, but you can embed it within a macro. The Debug key must be used before a macro begins executing.
  1494.  
  1495. Example
  1496.  
  1497.  This example uses {STEPON} and {STEPOFF} to debug the last routine of a macro. Notice that the empty pairs of braces, placed at the beginning and end of the routine, make it easy to add {STEPON} and {STEPOFF} commands when there is a problem, because you can delete them when you want to debug, and insert them when you do not.
  1498.  
  1499.  _clean_up    {; Save notebook to disk and say goodbye}
  1500.  
  1501.      { }{STEPON}
  1502.  
  1503.      {FileSave}
  1504.  
  1505.      {BRANCH _quit_msg}
  1506.  
  1507.      
  1508.  
  1509.  _quit_msg    { }{STEPOFF}
  1510.  
  1511.      {QUIT}
  1512.  
  1513. Note
  1514.  
  1515.   This command is obsolete
  1516.   
  1517. {Subroutine}
  1518.  
  1519. Syntax
  1520.  
  1521.  {Subroutine <ArgumentList>}
  1522.  
  1523. Description
  1524.  
  1525.  {Subroutine} calls the subroutine of the specified name, passing along any arguments given in ArgumentList. (Those arguments are then defined within the subroutine using the {DEFINE} command.)
  1526.  
  1527.  Any macro can be a subroutine. The macro commands in the subroutine run until {RETURN}, a blank cell, or a value is encountered. Then Quattro Pro returns control to the calling routine, continuing execution with the macro command in the next cell. If the subroutine ends with {QUIT}, both the subroutine and the calling macro(s) end.
  1528.  
  1529. Example
  1530.  
  1531.  The following example invokes a subroutine that forces you to verify printing twice before it begins.
  1532.  
  1533.  _print    {GETLABEL "Do you want to print this (Y/N)?",ans_cell}
  1534.  
  1535.      {IF @UPPER(ans_cell)="Y"}{_chk_twice}
  1536.  
  1537.      {HOME}
  1538.  
  1539.      
  1540.  
  1541.  _chk_twice    {; Double-check the print request}
  1542.  
  1543.      {GETLABEL "Are you certain (Y/N)?",ans_cell}
  1544.  
  1545.      {IF @UPPER(ans_cell)="N"} {RETURN}
  1546.  
  1547.      {GETLABEL "Ready to print now (Y/N)?",ans_cell}
  1548.  
  1549.      {IF @UPPER(ans_cell)="Y"}{Print.DoPrint}
  1550.  
  1551.      {RETURN}
  1552.  
  1553.      
  1554.  
  1555.  ans_cell    Y
  1556.  
  1557. Parameters
  1558.  
  1559.  Subroutine    Name of the subroutine being called (which can be a cell name or a cell address)
  1560.  
  1561.  ArgumentList    List of one or more arguments to be passed to the specified subroutine (optional)
  1562.  
  1563. {SuppressErrorValue}
  1564.  
  1565. Syntax
  1566.  
  1567.  {SuppressErrorValue}
  1568.  
  1569. PerfectScript Syntax
  1570.  
  1571.  SuppressErrorValue ()
  1572.  
  1573. Description
  1574.  
  1575.  Suppresses the ability for Quattro Pro to return a specific error value, if one is warranted.
  1576.  
  1577. Note
  1578.  
  1579.   This command is obsolete
  1580.   
  1581.  
  1582.  
  1583.  
  1584.  
  1585.  
  1586.