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

  1. {WebQuery_Create}
  2.  
  3. Syntax
  4.  
  5.  WebQuery_Create(FileData_ As String)
  6.  
  7. PerfectScript Syntax
  8.  
  9. WebQuery_Create (Filedata?: String)
  10.  
  11. Description
  12.  
  13. Lets you create a new Web query file.
  14.  
  15. Parameter
  16.  
  17. Filedata    The name of the new query file
  18.  
  19. {WebQuery.Destination}
  20.  
  21. Syntax
  22.  
  23. WebQuery_Destination(DestRange_ As String)
  24.  
  25. PerfectScript Syntax
  26.  
  27. WebQuery_Destination (DestRange?: String)
  28.  
  29. Description
  30.  
  31. Lets you specify the output location. If empty, a new sheet will be used.
  32.  
  33. Parameter
  34.  
  35. DestRange    The range of cells
  36.  
  37. {WebQuery_LinkRange}
  38.  
  39. Syntax
  40.  
  41. WebQuery_LinkRange(LinkRange_ As String)
  42.  
  43. PerfectScript Syntax
  44.  
  45. WebQuery_LinkRange (LinkRange?: String)
  46.  
  47. Description
  48.  
  49. Lets you specify the range of cells to be associated with Web link.
  50.  
  51. Parameter
  52.  
  53. LinkRange    The range of cells
  54.  
  55. {WebQuery_LinkRefreshDuration}
  56.  
  57. Syntax
  58.  
  59. WebQuery_LinkRefreshDuration(Value_ As String)
  60.  
  61. PerfectScript Syntax
  62.  
  63. WebQuery_LinkRefreshDuration (Value?: String)
  64.  
  65. Description
  66.  
  67. Lets you specify the refresh duration in seconds
  68.  
  69. Parameter
  70.  
  71. Value    Must be in the format "hh:mm:ss"
  72.  
  73. {WebQuery.LinkRefreshTime}
  74.  
  75. Syntax
  76.  
  77.  WebQuery_LinkRefreshTime(Time_ As String)
  78.  
  79. PerfectScript Syntax
  80.  
  81. WebQuery_LinkRefreshTime (Time?: String)
  82.  
  83. Description
  84.  
  85. Lets you specify the value of start time, end time, start day, and end day.
  86.  
  87. Parameter
  88.  
  89. Time    Must be in the format "hh:mm:ss"
  90.  
  91. {WebQuery.LinkRefreshType}
  92.  
  93. Syntax
  94.  
  95. WebQuery_LinkRefreshType(LinkRefreshOptions_ As String)
  96.  
  97. PerfectScript Syntax
  98.  
  99. WebQuery_LinkRefreshType (LinkRefreshOptions?: String)
  100.  
  101. Description
  102.  
  103. Lets you specify the refresh options. LinkRefreshOptions consists of two variables delimited by a semicolon.
  104.  
  105. Example
  106.  
  107. {WebQuery.LinkRefreshType 2; 0}
  108.  
  109. Parameters
  110.  
  111. LinkRefreshOptions [semicolon delimited]    Refresh Type
  112.  
  113. 0 Duration
  114.  
  115. 1 Start time
  116.  
  117. 2 End time
  118.  
  119. 3 Start day
  120.  
  121. 4 End day
  122.  
  123.  
  124.  
  125. Boolean
  126.  
  127. 0 False
  128.  
  129. 1 True
  130.  
  131. {WebQuery_LinkWrapOption}
  132.  
  133. Syntax
  134.  
  135. WebQuery_LinkWrapOption(LinkWrapOptions_ As String)
  136.  
  137. PerfectScript Syntax
  138.  
  139. WebQuery_LinkWrapOption (LinkWrapOptions?: String)
  140.  
  141. Description
  142.  
  143. Lets you specify the wrap options. LinkWrapOptions consists of two variables delimited by a semicolon.
  144.  
  145. Example
  146.  
  147. {WebQuery.LinkWrapOption 0; 1}
  148.  
  149. Parameters
  150.  
  151. LinkWrapOptions [semicolon delimited]    Wrap Type
  152.  
  153. 0 Wrap at the beginning of range
  154.  
  155. 1 Insert data at the end of range
  156.  
  157. 2 Insert data at the beginning of range
  158.  
  159.  
  160.  
  161. Boolean (Can be TRUE/FALSE only when WrapType is 0).
  162.  
  163. 0 False
  164.  
  165. 1 True
  166.  
  167. {WebQuery.QueryFileName}
  168.  
  169. Syntax
  170.  
  171. {WebQuery.QueryFileName FileName}
  172.  
  173. PerfectScript Syntax
  174.  
  175. WebQuery_QueryFileName (FileName?: String)
  176.  
  177. Description
  178.  
  179. Lets you specify the query file to be used.
  180.  
  181. Parameter
  182.  
  183. FileName    The name of the query file.
  184.  
  185. {WebQuery.Run}
  186.  
  187. Syntax
  188.  
  189. WebQuery_Run()
  190.  
  191. PerfectScript Syntax
  192.  
  193. WebQuery_Run ()
  194.  
  195. Description
  196.  
  197. Lets you run the current query.
  198.  
  199. {WebQuery.SetQueryOptions}
  200.  
  201. Syntax
  202.  
  203.  WebQuery_SetQueryOptions(QueryOpts_ As String)
  204.  
  205. PerfectScript Syntax
  206.  
  207. WebQuery_SetQueryOptions (QueryOpts?: String)
  208.  
  209. Description
  210.  
  211. Lets you specify the values of the query options. QueryOpts consists of two variables delimited by a semicolon.
  212.  
  213. Example
  214.  
  215. {WebQuery.SetQueryOptions 1; 1}
  216.  
  217. Parameters
  218.  
  219. QueryOpts [semicolon delimited]    Type
  220.  
  221. 0 Save as Web Link
  222.  
  223. 1 Import only tables
  224.  
  225. 2 Auto-size
  226.  
  227. 3 Retain HTML format
  228.  
  229. 4 Refresh on open
  230.  
  231.  
  232.  
  233. Boolean
  234.  
  235. 0 False
  236.  
  237. 1 True
  238.  
  239. {WebQuery.SetQueryParameters}
  240.  
  241. Syntax
  242.  
  243. WebQuery_SetQueryParameters(QueryParams_ As String)
  244.  
  245. PerfectScript Syntax
  246.  
  247. WebQuery_SetQueryParameters (QueryParams?: String)
  248.  
  249. Description
  250.  
  251. Lets you specify the parameter value options.
  252.  
  253. Parameters
  254.  
  255. QueryParams [semicolon delimited]    Parameter
  256.  
  257.  
  258.  
  259. Parameter type
  260.  
  261.  
  262.  
  263. Parameter value
  264.  
  265. {WebQuery.Source}
  266.  
  267. Syntax
  268.  
  269.  WebQuery_Source(SourceRange_ As String)
  270.  
  271. PerfectScript Syntax
  272.  
  273. WebQuery_Source (SourceRange?: String)
  274.  
  275. Description
  276.  
  277. Lets you specify the range of cells to be updated from the query output.
  278.  
  279. Parameter
  280.  
  281. Range    The range of cells
  282.  
  283. {WhatIf}
  284.  
  285. Syntax
  286.  
  287. {WhatIf.Option}
  288.  
  289. PerfectScript Syntax
  290.  
  291. WhatIf_Block (Block:String)
  292.  
  293. WhatIf_Input_Cell_1 (Cell:String)
  294.  
  295. WhatIf_Input_Cell_2 (Cell:String)
  296.  
  297. WhatIf_One_Way ()
  298.  
  299. WhatIf_Reset ()
  300.  
  301. WhatIf_Two_Way ()
  302.  
  303. Description
  304.  
  305. {WhatIf} builds one- or two-variable "what-if" tables that display a range of results for different conditions.
  306.  
  307. If you are creating a one-variable table, use these command equivalents: {WhatIf.Input_Cell_1}, {WhatIf.Block}, {WhatIf.One_Way}. For two-variable tables, use {WhatIf.Input_Cell_2} after indicating the first input cell; use {WhatIf.Two_Way} instead of {WhatIf.One_Way}.
  308.  
  309. You can use {WhatIf?} or {WhatIf!} to display the What-If dialog box. {WhatIf?} lets you manipulate the dialog box, whereas {WhatIf!} relies on the macro to manipulate it.
  310.  
  311. Example
  312.  
  313. The following macro defines A4..H18 as the "what-if" cells, B1 as Input Cell 1, B2 as Input Cell 2, and builds a two-variable table.
  314.  
  315. {Whatif.Block A:A4..A:H18}
  316.  
  317. {Whatif.Input_cell_1 A:B1}
  318.  
  319. {Whatif.Input_cell_2 A:B2}
  320.  
  321. {Whatif.Two_Way}
  322.  
  323. Options
  324.  
  325. {WhatIf.Block Block}    Specifies the cells where you want to write the data table.
  326.  
  327. {WhatIf.Input_Cell_1 Cell}    Specifies the first (or only) cell referenced by the what-if formula.
  328.  
  329. {WhatIf.Input_Cell_2 Cell}    Specifies the second cell referenced by a two-variable what-if formula.
  330.  
  331. {WhatIf.One_Way}    Builds the table.
  332.  
  333. {WhatIf.Reset}    Clears all settings.
  334.  
  335. {WhatIf.Two_Way}    Builds the table.
  336.  
  337. {WhatIfExpert}
  338.  
  339. Description
  340.  
  341. {WhatIfExpert} displays the first What-If Expert dialog box. The macro has no arguments
  342.  
  343. {WindowArrIcon}
  344.  
  345. Syntax
  346.  
  347. WindowArrIcon()
  348.  
  349. Description
  350.  
  351. {WindowArrIcon} lines up minimized windows on the Quattro Pro desktop or icons on the Objects sheet.
  352.  
  353. {WindowCascade}
  354.  
  355. Syntax
  356.  
  357. WindowCascade()
  358.  
  359. Description
  360.  
  361. {WindowCascade} rearranges all open windows on the Quattro Pro desktop.
  362.  
  363. {WindowClose}
  364.  
  365. Syntax
  366.  
  367. WindowClose()
  368.  
  369. Description
  370.  
  371. {WindowClose} is equivalent to Close in a Control menu, which closes the active window (if the active window is not saved, a prompt appears to confirm the operation).
  372.  
  373. {WindowHide}
  374.  
  375. Syntax
  376.  
  377. WindowHide()
  378.  
  379. Description
  380.  
  381. {WindowHide} conceals the active notebook window.
  382.  
  383. {WindowMaximize}
  384.  
  385. Syntax
  386.  
  387. WindowMaximize
  388.  
  389. Description
  390.  
  391. {WindowMaximize} is equivalent to Maximize in a Control menu, which enlarges the active window so it fills the screen.
  392.  
  393. {WindowMinimize}
  394.  
  395. Syntax
  396.  
  397. WindowMinimize()
  398.  
  399. Description
  400.  
  401. {WindowMinimize} is equivalent to Minimize in a Control menu, which shrinks the active window to an icon on the Quattro Pro desktop.
  402.  
  403. {WindowMove}
  404.  
  405. Syntax
  406.  
  407. WindowMove()
  408.  
  409. Syntax
  410.  
  411. {WindowMove UpperLeftX, UpperLeftY}
  412.  
  413. PerfectScript Syntax
  414.  
  415. WindowMove (UpperLeftX:Numeric; UpperLeftY:Numeric)
  416.  
  417. Description
  418.  
  419. {WindowMove} is equivalent to Move in a Control menu, which lets you move the active window. UpperLeftX and UpperLeftY are the new coordinates of the upper-left corner of the window.
  420.  
  421. Parameters
  422.  
  423. UpperLeftX    Distance between the left side of the Quattro Pro window and the left side of the active window, in pixels
  424.  
  425. UpperLeftY    Distance between the bottom of the input line and the top of the active window, in pixels
  426.  
  427. {WindowNewView}
  428.  
  429. Syntax
  430.  
  431. WindowNewView()
  432.  
  433. Description
  434.  
  435. {WindowNewView} displays a duplicate copy of the active notebook in a new window.
  436.  
  437. {WindowNext}
  438.  
  439. Syntax
  440.  
  441. WindowNext()
  442.  
  443. Description
  444.  
  445. {WindowNext} is equivalent to choosing Next in a Control menu. It makes the next window active.
  446.  
  447. {WindowPanes}
  448.  
  449. Syntax
  450.  
  451. WindowPanes(Mode As _WindowPanes_Mode_enum, Synch_ As _WindowPanes_Synch__enum, [Width As Double], [Height As Double])
  452.  
  453. PerfectScript Syntax
  454.  
  455. WindowPanes (Mode:Enumeration {Clear!; Horizontal!; Vertical!}; Synch?:Enumeration {Yes!; No!}; [Width:Numeric]; [Height:Numeric])
  456.  
  457. Description
  458.  
  459. {WindowPanes} splits a notebook window into two horizontal or vertical panes; use Clear to restore a single pane.
  460.  
  461. Width and Height indicate the ratio relationship between the panes.
  462.  
  463. You can use {WindowPanes?} or {WindowPanes!} to display the Split Window dialog box. {WindowPanes?} lets you manipulate the dialog box, whereas {WindowPanes!} relies on the macro to manipulate it.
  464.  
  465. Example
  466.  
  467. {WindowPanes Vertical,0,2,1} splits the notebook window into two vertical panes, not synchronized. The first pane is twice as wide as the second.
  468.  
  469. Parameters
  470.  
  471. Synch?    Whether the panes are synchronized: yes (1) or no (0)
  472.  
  473. Width    Width of the left pane or height of the upper pane (optional)
  474.  
  475. Height    Width of the right pane or height of the lower pane (optional)
  476.  
  477. {WindowQPW}
  478.  
  479. Syntax
  480.  
  481. {WindowQPW.Option}
  482.  
  483. PerfectScript Syntax
  484.  
  485. WindowQPW_Maximize ()
  486.  
  487. WindowQPW_Minimize ()
  488.  
  489. WindowQPW_Restore ()
  490.  
  491. Description
  492.  
  493. {WindowQPW} is the command equivalent for the Maximize, Minimize, and Restore commands on the Quattro Pro Control menu.
  494.  
  495. ¿    {WindowQPW.Maximize} enlarges the Quattro Pro window so it fills the screen.
  496.  
  497. ¿    {WindowQPW.Minimize} shrinks the Quattro Pro window to an icon.
  498.  
  499. ¿    {WindowQPW.Restore} restores the Quattro Pro window to its original size.
  500.  
  501. Options
  502.  
  503. {WindowQPW.Maximize}    Maximizes the Quattro Pro application window.
  504.  
  505. {WindowQPW.Minimize}    Minimizes the Quattro Pro application window.
  506.  
  507. {WindowQPW.Restore}    Restores the Quattro Pro application window to its previous size.
  508.  
  509. {WindowRestore}
  510.  
  511. Syntax
  512.  
  513. WIndowRestore()
  514.  
  515. Description
  516.  
  517. {WindowRestore} is equivalent to Restore on the Control menu. It restores minimized windows to their original size.
  518.  
  519. {WindowShow}
  520.  
  521. Syntax
  522.  
  523. WindowShow(Name As String)
  524.  
  525. PerfectScript Syntax
  526.  
  527. WindowShow (Name:String)
  528.  
  529. Description
  530.  
  531. {WindowShow} shows hidden window Name and makes it active.
  532.  
  533. You can use {WindowShow?} or {WindowShow!} to display the Show Window dialog box. {WindowShow?} lets you manipulate the dialog box, whereas {WindowShow!} relies on the macro to manipulate it.
  534.  
  535. Parameters
  536.  
  537. Name    Name of the hidden window to show
  538.  
  539. {WindowSize}
  540.  
  541. Syntax
  542.  
  543. WindowSize(x As Double, y As Double)
  544.  
  545. PerfectScript Syntax
  546.  
  547. WindowSize (X:Numeric; Y:Numeric)
  548.  
  549. Description
  550.  
  551. {WindowSize} is equivalent to Size in the Control menu. It sizes the active window to the specified width and height.
  552.  
  553. Parameters
  554.  
  555. X    New window width, in pixels
  556.  
  557. Y    New window height, in pixels
  558.  
  559. {WINDOWSOFF}
  560.  
  561. Syntax
  562.  
  563. WindowsOff()
  564.  
  565. Description
  566.  
  567. {WINDOWSOFF} disables normal screen updating during macro execution when Quattro Pro's Macro Suppress-Redraw property is set to None. It can significantly speed up execution for most macros because it saves Quattro Pro the time normally needed to redraw the screen each time a cell changes. Quattro Pro cancels it once the macro stops executing, so you are not "locked out" of the screen. To cancel its effect within the same macro, use {WINDOWSON}.
  568.  
  569. Use {WINDOWSOFF} with {PANELOFF} to completely disable normal screen updating.
  570.  
  571. After a {WINDOWSOFF} command, avoid pointing to cells in response to an Edit command. The selector may be in a different cell than the "frozen" display indicates. If you must point to cells, precede it with a {WINDOWSON} command.
  572.  
  573. Example
  574.  
  575. The following macro uses {WINDOWSOFF} and {WINDOWSON} to turn off screen updating while Quattro Pro sorts a list of vendors with the cell name vendor_name, thereby speeding up the sort operation.
  576.  
  577. sort_blk    vendor_name
  578.  
  579. key_nm    vendor_name
  580.  
  581.  
  582.  
  583. \W    {QGOTO}sort_message~
  584.  
  585.         {WINDOWSOFF}
  586.  
  587.         {_sort vendor_name}
  588.  
  589.         {WINDOWSON}
  590.  
  591.  
  592.  
  593. _sort    {DEFINE sort_blk}
  594.  
  595.         {Sort.Block @@(sort_blk)}
  596.  
  597.         {BlockCopy sort_blk,key_nm}
  598.  
  599.         {Sort.Key_1 @@(key_nm)}
  600.  
  601.         {Sort.Order_1 "Ascending"}
  602.  
  603.         {Sort.Go}
  604.  
  605.  
  606.  
  607. sort_message    SORT IS IN PROGRESS
  608.  
  609.  
  610.  
  611. vendor_name    General Cement Co.
  612.  
  613.         Alveoli Mfg., Inc.
  614.  
  615.         Sandab Development
  616.  
  617.         Consolidated Dust
  618.  
  619. {WINDOWSON}
  620.  
  621. Syntax
  622.  
  623. WindowsOn()
  624.  
  625. Description
  626.  
  627. {WINDOWSON} reenables normal screen updating during macro execution, canceling the effects of a previous {WINDOWSOFF}. However, the screen will not be updated until {CALC} is encountered or the macro ends. If {WINDOWSON} is called when screen updating is already in effect, the command is ignored.
  628.  
  629. See {WINDOWSOFF}for an example using {WINDOWSON}.
  630.  
  631. {WindowTile}
  632.  
  633. Syntax
  634.  
  635. WindowsTile()
  636.  
  637. Description
  638.  
  639. {WindowTile} displays all open windows without overlapping them.
  640.  
  641. {WindowTile.TileTopToBottom}
  642.  
  643. Syntax
  644.  
  645. WindowTile_TopToBottom()
  646.  
  647. Description
  648.  
  649. {WindowTile.TileTopToBottom} tiles multiple files horizontally.
  650.  
  651. {WindowTitles}
  652.  
  653. Syntax
  654.  
  655. {WindowTitles Horizontal | Vertical | Both | Clear}
  656.  
  657. PerfectScript Syntax
  658.  
  659. WindowTitles (Mode:Enumeration {Clear!; Horizontal!; Vertical!; Both!})
  660.  
  661. Description
  662.  
  663. {WindowTitles} locks specific rows and/or columns of a spreadsheet sheet as titles on screen. When you scroll, the titles remain fixed on screen while the rows below (or columns to the right) scroll as usual. "Horizontal" locks rows above the active cell, "Vertical" locks columns to the left of the active cell, and "Both" locks both rows and columns. Use "Clear" to unlock the titles.
  664.  
  665. You can use {WindowTitles?} or {WindowTitles!} to display the Locked Titles dialog box. {WindowTitles?} lets you manipulate the dialog box, whereas {WindowTitles!} relies on the macro to manipulate it.
  666.  
  667. You can use {WindowTitles.Title} with @COMMAND, @PROPERTY, and @CURVALUE.
  668.  
  669. Example
  670.  
  671. Use @COMMAND{"WindowTitles.Title"} to determine whether locked titles are in use and to display their type (Horizontal, Vertical, Both, or Clear). You can also use this command in macros to check for locked titles.
  672.  
  673. \A    {Calc} {If TitlesOn} {WindowTitles Clear} {Quit}
  674.  
  675.     {WindowTitles Both}
  676.  
  677.  
  678.  
  679. TitlesOn @COMMAND("WindowTitles.Title") = "Both"
  680.  
  681. {Workflow.RouteDocument}
  682.  
  683. Syntax
  684.  
  685. Workflow_RouteDocument([FileName As String])
  686.  
  687. PerfectScript Syntax
  688.  
  689. Workflow_RouteDocument (Filename: String)
  690.  
  691. Description
  692.  
  693. Parameter
  694.  
  695. Filename    The name of the document you want to route
  696.  
  697. {Workflow.WorkflowManager}
  698.  
  699. Syntax
  700.  
  701. Workflow_WorkflowManager()
  702.  
  703. PerfectScript Syntax
  704.  
  705. Workflow_WorkflowManager ()
  706.  
  707. Description
  708.  
  709. {WorkSpace}
  710.  
  711. Syntax
  712.  
  713. {WorkSpace.Option}
  714.  
  715. PerfectScript Syntax
  716.  
  717. Workspace_Restore (Filename:String)
  718.  
  719. Workspace_Save (Filename:String)
  720.  
  721. Description
  722.  
  723. {Workspace.Save} saves all open notebooks as a group with the specified Filename (Quattro Pro's default file extension for workspaces is .WBS). {Workspace.Restore} opens the specified file.
  724.  
  725. Options
  726.  
  727. {Workspace.Restore Filename}    Overlays any existing windows with the windows stored in the workspace file, then retrieves the appropriate file for each.
  728.  
  729. {Workspace.Save Filename}    Saves the position and size of all notebook windows and the names of the files contained in each window.
  730.  
  731.  
  732.  
  733.  
  734.  
  735.  
  736.