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

  1. {GetCellFormula}
  2.  
  3. Syntax
  4.  
  5. GetCellFormula(Cell As String) As String
  6.  
  7. PerfectScript Syntax
  8.  
  9. GetCellFormula (Cell: String)
  10.  
  11. Description
  12.  
  13. Returns the unparsed form of a referenced formula. If the cell is a number, it will return the numeric text. If the cell is a label, it will be prefixed by the prefix char (', ", or ^). If the cell is a formula, it will return the formula itself.
  14.  
  15. Parameter
  16.  
  17. Cell    The cell
  18.  
  19. {GetCellValue}
  20.  
  21. Syntax
  22.  
  23. GetCellValue(Cell As String) As String
  24.  
  25. PerfectScript Syntax
  26.  
  27. GetCellValue (Cell: String)
  28.  
  29. Description
  30.  
  31. Retrieves the cell contents as it is displayed, not as its value. If the cell contains a formula, it returns the result of the formula, including its numeric format.
  32.  
  33. Parameter
  34.  
  35. Cell    The cell
  36.  
  37. {GETDIRECTORYCONTENTS}
  38.  
  39. Syntax
  40.  
  41. GetDirectoryContents(Block As String, [Path As String])
  42.  
  43. PerfectScript Syntax
  44.  
  45. GetDirectoryContents (Block:String; [Path:String])
  46.  
  47. Description
  48.  
  49. {GETDIRECTORYCONTENTS} enters an alphabetized list of file names (determined by the path and DOS wildcard specified by Path) into Block; if Path is not included, {GETDIRECTORYCONTENTS} lists all the files in the current directory. Path must contain a DOS wildcard like *.BAT or *.*.
  50.  
  51. Example
  52.  
  53. {GETDIRECTORYCONTENTS A2,"C:\*.*"} fills column A (starting at row 2) with a list of the files in the root directory of drive C.
  54.  
  55. {GETDIRECTORYCONTENTS A2..C7,"C:\COREL\SUITE8\*.*"} fills the cells A2..C7 with a list of the files in the Quattro Pro directory on drive C. The first filename is stored in A2, the second in B2, and so on. If more than 18 files are found, the cells are only filled with the first 18.
  56.  
  57. {GETDIRECTORYCONTENTS C7,"C:\COREL\SUITE8\SAMPLES\*.W??"} fills column C (starting at row 7) with a list of the files in the COREL\SUITE8\SAMPLES directory on drive C that have file extensions beginning with W.
  58.  
  59. Parameters
  60.  
  61. Block    Cells to enter list of files into
  62.  
  63. Path    Path and wildcard specifying the list (optional)
  64.  
  65. Note
  66.  
  67. ¿    If Block is one cell, {GETDIRECTORYCONTENTS} overwrites any information beneath the cell (if it finds more than one file). To restrict the file names to specific cells, set Block to more than one cell.
  68.  
  69. {GetObjectPageContents}
  70.  
  71. Syntax
  72.  
  73. GetObjectPageContents(Block_ As String, [Object_ As String])
  74.  
  75. PerfectScript Syntax
  76.  
  77. GetObjectPageContents(Block?: Range, Objects?: ObjectType)
  78.  
  79. Description
  80.  
  81. {GetObjectPageContents} stores a list of the objects contained on the Object Page on the Quattro Pro desktop in Block. Objects are charts, dialogs, maps, and slideshows.
  82.  
  83. Parameters
  84.  
  85. Block    Cells in which to store object names
  86.  
  87. ObjectType    All (default), Dialog, Chart, Map, and SlideShow.
  88.  
  89. Tip
  90.  
  91. ¿ If Block is one cell, {GetObjectPageContents} overwrites any information beneath the cell if it finds more than one open window. To restrict the window names to specific cells, set Block to more than one cell.
  92. ¿ 
  93. {GETOBJECTPROPERTY}
  94.  
  95. Syntax
  96.  
  97. GetObjectProperty(Cell As String, ObjectProperty As String)
  98.  
  99. PerfectScript Syntax
  100.  
  101. GetObjectProperty (Cell:String; ObjectProperty:String)
  102.  
  103. Description
  104.  
  105. {GETOBJECTPROPERTY} lets you view objects in Quattro Pro without using the mouse, including objects normally not selectable (like the application title bar). You can also study selectable objects, such as blocks and annotations, with {GETPROPERTY}. See {SETOBJECTPROPERTY} for the syntax of Object.Property.
  106.  
  107. Example
  108.  
  109. {GETOBJECTPROPERTY A23,"Active_Notebook.Zoom_Factor"} stores the Zoom Factor property's current setting in cell A23.
  110.  
  111. {GETOBJECTPROPERTY B42,"/File/Exit.Enabled"} stores whether Exit is operational or not in the cell B42.
  112.  
  113. Parameters
  114.  
  115. Cell    Cell in which to store the property setting
  116.  
  117. Object    Name of the object to study
  118.  
  119. Property    Property of the object to study
  120.  
  121. {GETPROPERTY}
  122.  
  123. Syntax
  124.  
  125. GetProperty(Cell As String, PropertyName As String)
  126.  
  127. PerfectScript Syntax
  128.  
  129. GetProperty (Cell:String; PropertyName:String)
  130.  
  131. Description
  132.  
  133. {GETPROPERTY} lets you study the property settings of whatever object is selected. Property is the property to view (see Property Reference for a list of properties); its setting is stored in Cell.
  134.  
  135. Example
  136.  
  137. {GETPROPERTY A23,"Text_Color"} stores the Text Color setting of the selected object in the cell A23.
  138.  
  139. {GETPROPERTY B42,"Box_Type"} stores the border style of the selected object in cell B42.
  140.  
  141. Parameters
  142.  
  143. Cell    Cell in which to store the property setting
  144.  
  145. Property    Property of the selected object to study
  146.  
  147. {GETWINDOWLIST}
  148.  
  149. Syntax
  150.  
  151.  GetWindowList(Block As String)
  152.  
  153. PerfectScript Syntax
  154.  
  155. GetWindowList (Block:String)
  156.  
  157. Description
  158.  
  159. {GETWINDOWLIST} stores a list of the windows open on the Quattro Pro desktop in Block, including dialog windows and chart windows. Windows currently hidden are not included.
  160.  
  161. If Block is one cell, {GETWINDOWLIST} overwrites any information beneath the cell (if it finds more than one window open). To restrict the window names to specific cells, set Block to more than one cell.
  162.  
  163. Example
  164.  
  165. {GETWINDOWLIST A2..C5} stores a list of open windows in the cells A2..C5. The first window name is stored in A2, the second in B2, and so on. If more than twelve windows are open, only the first twelve are stored in the cells.
  166.  
  167. Parameters
  168.  
  169. Block    Cells to store window names in
  170.  
  171. {GraphCopy}
  172.  
  173. Syntax
  174.  
  175.  GraphCopy(FromGraph As String, DestGraph As String, [Style_ As _GraphCopy_Style__enum], [Data_ As _GraphCopy_Data__enum], [Annotations_ As _GraphCopy_Annotations__enum])
  176.  
  177. PerfectScript Syntax
  178.  
  179. GraphCopy (FromGraph:String; DestGraph:String; [Style?:Enumeration {Yes!; No!}]; [Data?:Enumeration {Yes!; No!}]; [Annotations?:Enumeration {Yes!; No!}])
  180.  
  181. Description
  182.  
  183. {GraphCopy} copies the style, data, and/or annotation objects from one chart to another (within a notebook or between notebooks).
  184.  
  185. You can use {GraphCopy?} or {GraphCopy!} to display the Paste Special Chart dialog box. {GraphCopy?} lets you manipulate the dialog box, whereas {GraphCopy!} relies on the macro to manipulate it.
  186.  
  187. Parameters
  188.  
  189. FromChart    Chart containing the style, data, or annotation objects to copy
  190.  
  191. DestChart    New chart (the copy)
  192.  
  193. Style?    Whether to copy properties that affect the appearance of the chart: yes (1), no (0)
  194.  
  195. Data?    Whether to copy chart data: yes (1), no (0)
  196.  
  197. Annotations?    Whether to copy annotation objects: yes (1), no (0)
  198.  
  199. {GraphDeactivate}
  200.  
  201. Syntax
  202.  
  203. GraphDeactivate()
  204.  
  205. Description
  206.  
  207. {GraphDeactivate} deactivates a floating chart that has been activated for editing.
  208.  
  209. Example
  210.  
  211. The following macro activates a floating chart for editing, creates a rectangle in the chart, makes a copy of the rectangle, then deactivates editing.
  212.  
  213. {GraphEdit Chart1, 1}
  214.  
  215. {CreateObject Rect,147,176,416,427}
  216.  
  217. {Duplicate 269,338}
  218.  
  219. {GraphDeactivate}
  220.  
  221. {GraphDelete}
  222.  
  223. Syntax
  224.  
  225. GraphDelete(Name As String)
  226.  
  227. PerfectScript Syntax
  228.  
  229. GraphDelete (Name:String)
  230.  
  231. Description
  232.  
  233. {GraphDelete} deletes the specified chart from the active notebook.
  234.  
  235. You can use {GraphDelete?} or {GraphDelete!} to display the Delete Chart dialog box. {GraphDelete?} lets you manipulate the dialog box, whereas {GraphDelete!} relies on the macro to manipulate it.
  236.  
  237. Parameters
  238.  
  239. Name    Name of the chart to delete
  240.  
  241. {GraphEdit}
  242.  
  243. Syntax
  244.  
  245. GraphEdit(Name As String, [InPlace_ As _GraphEdit_InPlace__enum])
  246.  
  247. PerfectScript Syntax
  248.  
  249. GraphEdit (Name:String; [InPlace?:Enumeration {Yes!; No!}])
  250.  
  251. Description
  252.  
  253. {GraphEdit} displays the specified chart in a chart window for editing. Use the InPlace? argument to edit a floating chart on the notebook sheet.
  254.  
  255. You can use {GraphEdit?} or {GraphEdit!} to display the Edit Chart dialog box. {GraphEdit?} lets you manipulate the dialog box, whereas {GraphEdit!} relies on the macro to manipulate it.
  256.  
  257. Example
  258.  
  259. The following macro selects the floating chart named Inserted1 and then activates its source chart (Chart1) for editing on the notebook sheet.
  260.  
  261. {SelectFloat Inserted1}
  262.  
  263. {GraphEdit Chart1,1}
  264.  
  265. Parameters
  266.  
  267. Name    Name of the chart to edit
  268.  
  269. InPlace?    Whether to edit the chart in place on a notebook sheet; 0 = no, 1 = yes; the default is 0
  270.  
  271. {GraphGallery}
  272.  
  273. Syntax
  274.  
  275. GraphGallery(GraphStyle As String, ColorScheme As String)
  276.  
  277. PerfectScript Syntax
  278.  
  279. GraphGallery (GraphStyle:String; ColorScheme:String)
  280.  
  281. Description
  282.  
  283. {GraphGallery} applies a chart style and color scheme to selected charts.
  284.  
  285. Available choices for ColorScheme are:
  286.  
  287. ¿    No change    Pastels
  288.  
  289. ¿    Default    Fire and Ice
  290.  
  291. ¿    Grayscale    Bright and Bold
  292.  
  293. ¿    Icy Blues    Color Washes
  294.  
  295. ¿    Deep Reds    Black and White Patterns
  296.  
  297. ¿    Autumn Leaves    Color Patterns
  298.  
  299. ¿    Tangerine    Tiled Men
  300.  
  301. You can use {GraphGallery?} or {GraphGallery!} to display the Chart Gallery dialog box. {GraphGallery?} lets you manipulate the dialog box, whereas {GraphGallery!} relies on the macro to manipulate it.
  302.  
  303. Example
  304.  
  305. The following macro selects a 3-D Bar chart style and a "Tangerine" color scheme:
  306.  
  307. {GraphGallery "3dbar","Tangerine"}
  308.  
  309. Parameters
  310.  
  311. ChartStyle    The style of chart; see {GraphSettings.Type} for a list of chart types
  312.  
  313. ColorScheme    The color scheme used for the chart
  314.  
  315. {GraphNew}
  316.  
  317. Syntax
  318.  
  319. GraphNew(Name As String, [UseCurrentBlock_ As _GraphNew_UseCurrentBlock__enum])
  320.  
  321. PerfectScript Syntax
  322.  
  323. GraphNew (Name:String; [UseCurrentBlock?:Enumeration {Yes!; No!}])
  324.  
  325. Description
  326.  
  327. {GraphNew} creates a new chart and displays it in a chart window. If UseCurrentBlock? is 1, any selected data is shown in the chart; if it is 0, {GraphNew} creates a new chart without data.
  328.  
  329. You can use {GraphNew?} or {GraphNew!} to display the New Chart dialog box. {GraphNew?} lets you manipulate the dialog box, whereas {GraphNew!} relies on the macro to manipulate it.
  330.  
  331. Parameters
  332.  
  333. Name    Name of the new chart
  334.  
  335. UseCurrentBlock?    Whether to chart the current selected cells; 0 = no, 1 = yes; the default is 0name of the new chart
  336.  
  337. {GraphSettings_Check}
  338.  
  339. Syntax
  340.  
  341.  GraphSettings_Check()
  342.  
  343. PerfectScript Syntax
  344.  
  345. GraphSettings_Check ()
  346.  
  347. Description
  348.  
  349. Example
  350.  
  351. {GraphSettings_Reset}
  352.  
  353. Syntax
  354.  
  355.  GraphSettings_Reset()
  356.  
  357. PerfectScript Syntax
  358.  
  359. GraphSettings_Reset ()
  360.  
  361. Description
  362.  
  363. Example
  364.  
  365. {GraphSettings.Titles}
  366.  
  367. Syntax
  368.  
  369. GraphSettings_Titles(Main As String, Sub As String, XAxis As String, YAxis As String, Y2Axis As String)
  370.  
  371. PerfectScript Syntax
  372.  
  373. GraphSettings_Titles (Main:String; Sub:String; XAxis:String; YAxis:String; Y2Axis:String)
  374.  
  375. Description
  376.  
  377. {GraphSettings.Titles} sets the titles of the active chart (or selected floating chart or chart icon). Each argument is a string; to reset a title, use an empty string ("").
  378.  
  379. Example
  380.  
  381. The following macro command displays the chart Profit99 in a chart window and sets its main title and subtitles. The empty strings ("") indicate that there are no axis titles.
  382.  
  383. {GraphEdit Profit99}
  384.  
  385. {GraphSettings.Titles "Projected Profits","1999","","",""}
  386.  
  387. Parameters
  388.  
  389. Main    Main title of the chart
  390.  
  391. Sub    Title appearing below the main title of the chart
  392.  
  393. X-Axis    Title of the chart's x axis
  394.  
  395. Y-Axis    Title of the chart's y axis
  396.  
  397. Y2-Axis    Title of the chart's secondary y axis
  398.  
  399. {GraphSettings_Type}
  400.  
  401. Syntax
  402.  
  403. GraphSettings_Type(type As String)
  404.  
  405. PerfectScript Syntax
  406.  
  407. GraphSettings_Type (Type:String)
  408.  
  409. Description
  410.  
  411. {GraphSettings.Type} lets you specify how the data in a chart is displayed. It affects the active chart (or chart icon or floating chart). Class specifies the class of chart type being used. Class can be one of six settings: Area/Line, Bar, Stacked Bar, Pie, Specialty, and Text.
  412.  
  413. These are the chart types you can choose:
  414.  
  415. {GraphSettings.Type "3D Area,Area/Line"}
  416.  
  417. {GraphSettings.Type "3D Marker,Area/Line"}
  418.  
  419. {GraphSettings.Type "3D Ribbon,Area/Line"}
  420.  
  421. {GraphSettings.Type "3D Unstacked area,Area/Line"}
  422.  
  423. {GraphSettings.Type "Area,Area/Line"}
  424.  
  425. {GraphSettings.Type "Line,Area/Line"}
  426.  
  427. {GraphSettings.Type "Rotated area,Area/Line"}
  428.  
  429. {GraphSettings.Type "Rotated line,Area/Line"}
  430.  
  431. {GraphSettings.Type "2DHalf bar,Bar"}
  432.  
  433. {GraphSettings.Type "3D Bar,Bar"}
  434.  
  435. {GraphSettings.Type "3D Step,Bar"}
  436.  
  437. {GraphSettings.Type "Area_bar,Bar"}
  438.  
  439. {GraphSettings.Type "Bar,Bar"}
  440.  
  441. {GraphSettings.Type "Hilo_bar,Bar"}
  442.  
  443. {GraphSettings.Type "Line_bar,Bar"}
  444.  
  445. {GraphSettings.Type "Multiple bar,Bar"}
  446.  
  447. {GraphSettings.Type "R2D bar,Bar"}
  448.  
  449. {GraphSettings.Type "R2DHalf bar,Bar"}
  450.  
  451. {GraphSettings.Type "R3D bar,Bar"}
  452.  
  453. {GraphSettings.Type "Variance,Bar"}
  454.  
  455. {GraphSettings.Type "3D Column,Pie"}
  456.  
  457. {GraphSettings.Type "3D Doughnut,Pie"}
  458.  
  459. {GraphSettings.Type "3D Pie,Pie"}
  460.  
  461. {GraphSettings.Type "Column,Pie"}
  462.  
  463. {GraphSettings.Type "Doughnut,Pie"}
  464.  
  465. {GraphSettings.Type "Multiple 3D columns,Pie"}
  466.  
  467. {GraphSettings.Type "Multiple 3D pies,Pie"}
  468.  
  469. {GraphSettings.Type "Multiple columns,Pie"}
  470.  
  471. {GraphSettings.Type "Multiple pies,Pie"}
  472.  
  473. {GraphSettings.Type "Pie,Pie"}
  474.  
  475. {GraphSettings.Type "3D Contour,Specialty"}
  476.  
  477. {GraphSettings.Type "3D ShadedSurface,Specialty"}
  478.  
  479. {GraphSettings.Type "3D Surface,Specialty"}
  480.  
  481. {GraphSettings.Type "HiLo,Specialty"}
  482.  
  483. {GraphSettings.Type "Polar radar,Specialty"}
  484.  
  485. {GraphSettings.Type "XY,Specialty"}
  486.  
  487. {GraphSettings.Type "100 stacked bar,Stacked Bar"}
  488.  
  489. {GraphSettings.Type "100 stacked line,Stacked Bar"}
  490.  
  491. {GraphSettings.Type "3D100 stacked bar,Stacked Bar"}
  492.  
  493. {GraphSettings.Type "3D Stacked bar,Stacked Bar"}
  494.  
  495. {GraphSettings.Type "R2D100 stacked bar,Stacked Bar"}
  496.  
  497. {GraphSettings.Type "R2D100 stacked line,Stacked Bar"}
  498.  
  499. {GraphSettings.Type "R2D stacked bar,Stacked Bar"}
  500.  
  501. {GraphSettings.Type "R2D stacked line,Stacked Bar"}
  502.  
  503. {GraphSettings.Type "R3D100 stacked bar,Stacked Bar"}
  504.  
  505. {GraphSettings.Type "R3D stacked bar,Stacked Bar"}
  506.  
  507. {GraphSettings.Type "Stacked bar,Stacked Bar"}
  508.  
  509. {GraphSettings.Type "Stacked line,Stacked Bar"}
  510.  
  511. {GraphSettings.Type "Blank,Text"}
  512.  
  513. {GraphSettings.Type "Bullet,Text"}
  514.  
  515. Example
  516.  
  517. {GraphSettings.Type "3-D Pie,Pie"} make the active chart a 3-D pie chart.
  518.  
  519. {GraphView}
  520.  
  521. Syntax
  522.  
  523. GraphView(GraphName As String, [MoreGraphName])
  524.  
  525. PerfectScript Syntax
  526.  
  527. GraphView (GraphName:String; {[MoreGraphName:String]})
  528.  
  529. Description
  530.  
  531. {GraphView} displays a full-screen chart (or series of charts). {GraphView} without an argument displays the active chart (or chart icon or floating chart).
  532.  
  533. You can use {GraphView?} or {GraphView!} to display the View Chart dialog box. {GraphView?} lets you manipulate the dialog box, whereas {GraphView!} relies on the macro to manipulate it.
  534.  
  535. Example
  536.  
  537. The following macro displays the named charts Profit90 through Profit94.
  538.  
  539.     {GraphView Profit90,Profit91,Profit92,Profit93,Profit94}
  540.  
  541. Parameters
  542.  
  543. ChartName1    Name of the first chart to display (optional)
  544.  
  545. ChartName2    Name of the second chart to display (optional)
  546.  
  547. {GraphWindow}
  548.  
  549. Syntax
  550.  
  551. {GraphWindow.Property}
  552.  
  553. PerfectScript Syntax
  554.  
  555. GraphWindow_Aspect_Ratio (Mode:String)
  556.  
  557. GraphWindow_Grid (Settings:String)
  558.  
  559. Description
  560.  
  561. {GraphWindow} is equivalent to right-clicking the title bar of a chart window to set its Aspect Ratio or Grid properties.
  562.  
  563. {GraphWindow.Aspect_Ratio Option} sets the aspect ratio of the active chart. Option can be one of the following settings: "35mm Slide," "Floating Chart," "Full Extent," "Printer Preview," or "Screen Slide."
  564.  
  565. {GraphWindow.Grid GridSize,DisplayGrid,SnapToGrid} sets the grid size of the active chart window. Use GridSize to specify the percent of chart window between grid points; DisplayGrid specifies whether the grid is visible; SnapToGrid specifies whether the grid is active.
  566.  
  567. Example
  568.  
  569. This macro sets up a 10 by 10 grid, displays the grid, and enables it.
  570.  
  571.     {GraphWindow.Grid "10,Yes,Yes"}
  572.  
  573. {Group}
  574.  
  575. Syntax
  576.  
  577. {Group.Option}
  578.  
  579. PerfectScript Syntax
  580.  
  581. Group_Define (GroupName:String; StartPage:String; EndPage:String)
  582.  
  583. Group_Delete (GroupName:String)
  584.  
  585. Group_ResetNames ()
  586.  
  587. Description
  588.  
  589. {Group} creates and deletes sheet groups.
  590.  
  591. Once you have defined a sheet group, you can use {Notebook.Group_Mode "On"} to activate Group mode. Use "Off" to cancel Group mode.
  592.  
  593. You can use {Group?} or {Group!} to display the Define/Modify Group dialog box. {Group?} lets you manipulate the dialog box, whereas {Group!} relies on the macro to manipulate it.
  594.  
  595. Options
  596.  
  597. {Group.Define GroupName, StartPage, EndPage}    Creates sheet groups
  598.  
  599. {Group.Delete GroupName}    Deletes the currently selected sheet group
  600.  
  601. {Group.ResetNames}    Clears all group names in the notebook
  602.  
  603. {GroupObjects}
  604.  
  605. Syntax
  606.  
  607. GroupObjects()
  608.  
  609. Description
  610.  
  611. {GroupObjects} groups selected objects in a chart window so they can be treated as one object in subsequent operations. Use {UngroupObjects} to treat them independently again.
  612.  
  613.  
  614.  
  615.  
  616.  
  617.  
  618.