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

  1. {WAIT}
  2.  
  3. Syntax
  4.  
  5. {WAIT DateTimeNumber}
  6.  
  7. Description
  8.  
  9. {WAIT} pauses macro execution until the time corresponding to DateTimeNumber arrives. DateTimeNumber is a standard date/time serial number (both date and time portions must be included). If the current date is already later than the date specified in DateTimeNumber, macro execution continues immediately.
  10.  
  11. While execution is suspended, the macro is inactive, a WAIT indicator displays on the status line, and normal notebook operation can be restored only by pressing Ctrl+Break.
  12.  
  13. Example
  14.  
  15. The following macro beeps, displays a "Go home" message, and suspends all execution until 8:00 a.m. the next day:
  16.  
  17.     {BEEP 3}
  18.  
  19.     {PUTCELL "Time to go home!"}
  20.  
  21.     {DOWN}
  22.  
  23.     {WAIT @TODAY+1+@TIMEVALUE("8:00 AM")}
  24.  
  25. This macro waits for one day:
  26.  
  27.     {WAIT @NOW+1}
  28.  
  29. This macro uses {WAIT} to alert you by sounding five short beeps, spaced two seconds apart:
  30.  
  31. \H    {FOR counter,1,5,1,_loop_here}
  32.  
  33.  
  34.  
  35. _loop_here    {BEEP 3}
  36.  
  37.         {WAIT @NOW+@TIME(0,0,2)}
  38.  
  39. counter 6
  40.  
  41. Parameters
  42.  
  43. DateTimeNumber    The date and time at which macro execution can resume
  44.  
  45. Note
  46.  
  47.   This command is obsolete
  48.   
  49. {WaitCursorOn} and {WaitCursorOff}
  50.  
  51. Description
  52.  
  53.  {WaitCursorOn} and {WaitCursorOff} turn on or off the default Windows "busy" cursor.
  54.  
  55. Note
  56.  
  57.   This command is obsolete
  58.   
  59. {WebQuery.Create}
  60.  
  61. Syntax
  62.  
  63.  {WebQuery.Create Filedata}
  64.  
  65. PerfectScript Syntax
  66.  
  67.  WebQuery_Create (Filedata?: String)
  68.  
  69. Description
  70.  
  71.  Lets you create a new Web query file.
  72.  
  73. Parameter
  74.  
  75.  Filedata    The name of the new query file
  76.  
  77. {WebQuery.Destination}
  78.  
  79. Syntax
  80.  
  81.  {WebQuery.Destination DestRange}
  82.  
  83. PerfectScript Syntax
  84.  
  85.  WebQuery_Destination (DestRange?: String)
  86.  
  87. Description
  88.  
  89.  Lets you specify the output location. If empty, a new sheet will be used.
  90.  
  91. Parameter
  92.  
  93.  DestRange    The range of cells
  94.  
  95. {WebQuery.EditLink}
  96.  
  97. Syntax
  98.  
  99.  {WebQuery.EditLink}
  100.  
  101. PerfectScript Syntax
  102.  
  103.  WebQuery_EditLink ()
  104.  
  105. Description
  106.  
  107.  Lets you edit the web link that is stored in the selected cell.
  108.  
  109. Example
  110.  
  111.  WebQuery_InitLink
  112.  
  113.  WebQuery_LinkRefreshType "0;1"
  114.  
  115.  WebQuery_EditLink
  116.  
  117. Note
  118.  
  119.   This command should be preceded by a set of property commands.
  120.   
  121. {WebQuery.InitLink}
  122.  
  123. Syntax
  124.  
  125.  {WebQuery.InitLink}
  126.  
  127. PerfectScript Syntax
  128.  
  129.  WebQuery_InitLink ()
  130.  
  131. Description
  132.  
  133.  Lets you initialize the Web link.
  134.  
  135. Note
  136.  
  137.   This is mandatory command that does the necessary initialization for editing the link.
  138.   
  139. {WebQuery.LinkRange}
  140.  
  141. Syntax
  142.  
  143.  {WebQuery.LinkRange LinkRange}
  144.  
  145. PerfectScript Syntax
  146.  
  147.  WebQuery_LinkRange (LinkRange?: String)
  148.  
  149. Description
  150.  
  151.  Lets you specify the range of cells to be associated with Web link.
  152.  
  153. Parameter
  154.  
  155.  LinkRange    The range of cells
  156.  
  157. {WebQuery.LinkRefreshDuration}
  158.  
  159. Syntax
  160.  
  161.  {WebQuery.LinkRefreshDuration Value}
  162.  
  163. PerfectScript Syntax
  164.  
  165.  WebQuery_LinkRefreshDuration (Value?: String)
  166.  
  167. Description
  168.  
  169.  Lets you specify the refresh duration in seconds
  170.  
  171. Parameter
  172.  
  173.  Value    Must be in the format "hh:mm:ss"
  174.  
  175. {WebQuery.LinkRefreshTime}
  176.  
  177. Syntax
  178.  
  179.  {WebQuery.LinkRefreshTime Time}
  180.  
  181. PerfectScript Syntax
  182.  
  183.  WebQuery_LinkRefreshTime (Time?: String)
  184.  
  185. Description
  186.  
  187.  Lets you specify the value of start time, end time, start day, and end day.
  188.  
  189. Parameter
  190.  
  191.  Time    Must be in the format "hh:mm:ss"
  192.  
  193. {WebQuery.LinkRefreshType}
  194.  
  195. Syntax
  196.  
  197.  {WebQuery.LinkRefreshType LinkRefreshOptions}
  198.  
  199. PerfectScript Syntax
  200.  
  201.  WebQuery_LinkRefreshType (LinkRefreshOptions?: String)
  202.  
  203. Description
  204.  
  205.  Lets you specify the refresh options. LinkRefreshOptions consists of two variables delimited by a semicolon.
  206.  
  207. Example
  208.  
  209.  {WebQuery.LinkRefreshType 2; 0}
  210.  
  211. Parameters
  212.  
  213.  LinkRefreshOptions [semicolon delimited]    Refresh Type
  214.  
  215.  0 Duration
  216.  
  217.  1 Start time
  218.  
  219.  2 End time
  220.  
  221.  3 Start day
  222.  
  223.  4 End day
  224.  
  225.  
  226.  
  227.  Boolean
  228.  
  229.  0 False
  230.  
  231.  1 True
  232.  
  233. {WebQuery.LinkWrapOption}
  234.  
  235. Syntax
  236.  
  237.  {WebQuery.LinkWrapOption LinkWrapOptions}
  238.  
  239. PerfectScript Syntax
  240.  
  241.  WebQuery_LinkWrapOption (LinkWrapOptions?: String)
  242.  
  243. Description
  244.  
  245.  Lets you specify the wrap options. LinkWrapOptions consists of two variables delimited by a semicolon.
  246.  
  247. Example
  248.  
  249.  {WebQuery.LinkWrapOption 0; 1}
  250.  
  251. Parameters
  252.  
  253.  LinkWrapOptions [semicolon delimited]    Wrap Type
  254.  
  255.  0 Wrap at the beginning of range
  256.  
  257.  1 Insert data at the end of range
  258.  
  259.  2 Insert data at the beginning of range
  260.  
  261.  
  262.  
  263.  Boolean (Can be TRUE/FALSE only when WrapType is 0).
  264.  
  265.  0 False
  266.  
  267.  1 True
  268.  
  269. {WebQuery.QueryFileName}
  270.  
  271. Syntax
  272.  
  273.  {WebQuery.QueryFileName FileName}
  274.  
  275. PerfectScript Syntax
  276.  
  277.  WebQuery_QueryFileName (FileName?: String)
  278.  
  279. Description
  280.  
  281.  Lets you specify the query file to be used.
  282.  
  283. Parameter
  284.  
  285.  FileName    The name of the query file.
  286.  
  287. {WebQuery.RefreshWebLink}
  288.  
  289. Syntax
  290.  
  291.  {WebQuery.RefreshWebLink}
  292.  
  293. PerfectScript Syntax
  294.  
  295.  WebQuery_RefreshWebLink ()
  296.  
  297. Description
  298.  
  299.  Lets you refresh the current web link.
  300.  
  301. Note
  302.  
  303.   There is a specification issue regarding the RefreshWebLink functionality. There is no way to run the link and download the data unconditionally. The user has to change the start time/date etc. or the system time to force the immediate update. It will be very useful to the user if there is any "Update link now" command.
  304.   
  305. {WebQuery.Run}
  306.  
  307. Syntax
  308.  
  309.  {WebQuery.Run}
  310.  
  311. PerfectScript Syntax
  312.  
  313.  WebQuery_Run ()
  314.  
  315. Description
  316.  
  317.  Lets you run the current query.
  318.  
  319. {WebQuery.SetQueryOptions}
  320.  
  321. Syntax
  322.  
  323.  {WebQuery.SetQueryOptions QueryOpts}
  324.  
  325. PerfectScript Syntax
  326.  
  327.  WebQuery_SetQueryOptions (QueryOpts?: String)
  328.  
  329. Description
  330.  
  331.  Lets you specify the values of the query options. QueryOpts consists of two variables delimited by a semicolon.
  332.  
  333. Example
  334.  
  335.  {WebQuery.SetQueryOptions 1; 1}
  336.  
  337. Parameters
  338.  
  339.  QueryOpts [semicolon delimited]    Type
  340.  
  341.  0 Save as Web Link
  342.  
  343.  1 Import only tables
  344.  
  345.  2 Auto-size
  346.  
  347.  3 Retain HTML format
  348.  
  349.  4 Refresh on open
  350.  
  351.  
  352.  
  353.  Boolean
  354.  
  355.  0 False
  356.  
  357.  1 True
  358.  
  359. {WebQuery.SetQueryParameters}
  360.  
  361. Syntax
  362.  
  363.  {WebQuery.SetQueryParameters QueryParams}
  364.  
  365. PerfectScript Syntax
  366.  
  367.  WebQuery_SetQueryParameters (QueryParams?: String)
  368.  
  369. Description
  370.  
  371.  Lets you specify the parameter value options.
  372.  
  373. Parameters
  374.  
  375.  QueryParams [semicolon delimited]    Parameter
  376.  
  377.  
  378.  
  379.  Parameter type
  380.  
  381.  
  382.  
  383.  Parameter value
  384.  
  385. {WebQuery.Source}
  386.  
  387. Syntax
  388.  
  389.  {WebQuery.Source SourceRange}
  390.  
  391. PerfectScript Syntax
  392.  
  393.  WebQuery_Source (SourceRange?: String)
  394.  
  395. Description
  396.  
  397.  Lets you specify the range of cells to be updated from the query output.
  398.  
  399. Parameter
  400.  
  401.  Range    The range of cells
  402.  
  403. {WhatIf}
  404.  
  405. Syntax
  406.  
  407.  {WhatIf.Option}
  408.  
  409. PerfectScript Syntax
  410.  
  411.  WhatIf_Block (Block:String)
  412.  
  413.  WhatIf_Input_Cell_1 (Cell:String)
  414.  
  415.  WhatIf_Input_Cell_2 (Cell:String)
  416.  
  417.  WhatIf_One_Way ()
  418.  
  419.  WhatIf_Reset ()
  420.  
  421.  WhatIf_Two_Way ()
  422.  
  423. Description
  424.  
  425.  {WhatIf} builds one- or two-variable "what-if" tables that display a range of results for different conditions.
  426.  
  427.  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}.
  428.  
  429.  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.
  430.  
  431. Example
  432.  
  433.  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.
  434.  
  435.  {Whatif.Block A:A4..A:H18}
  436.  
  437.  {Whatif.Input_cell_1 A:B1}
  438.  
  439.  {Whatif.Input_cell_2 A:B2}
  440.  
  441.  {Whatif.Two_Way}
  442.  
  443. Options
  444.  
  445.  {WhatIf.Block Block}    Specifies the cells where you want to write the data table.
  446.  
  447.  {WhatIf.Input_Cell_1 Cell}    Specifies the first (or only) cell referenced by the what-if formula.
  448.  
  449.  {WhatIf.Input_Cell_2 Cell}    Specifies the second cell referenced by a two-variable what-if formula.
  450.  
  451.  {WhatIf.One_Way}    Builds the table.
  452.  
  453.  {WhatIf.Reset}    Clears all settings.
  454.  
  455.  {WhatIf.Two_Way}    Builds the table.
  456.  
  457. {WhatIfExpert}
  458.  
  459. Description
  460.  
  461.  {WhatIfExpert} displays the first What-If Expert dialog box. The macro has no arguments
  462.  
  463. {WINDOW}
  464.  
  465. Syntax
  466.  
  467.  {WINDOW<Number>}
  468.  
  469. Description
  470.  
  471.  {WINDOW} switches to the specified open notebook window (1-9). This command is for compatibility with Quattro Pro for DOS; use {ACTIVATE} to activate windows when developing macros for Quattro Pro for Windows.
  472.  
  473.  The argument Number is optional; {WINDOW} without an argument is equivalent to the Pane key, F6.
  474.  
  475. Parameters
  476.  
  477.  Number    Number of an open notebook window (1-9)
  478.  
  479. Note
  480.  
  481.   This command is obsolete
  482.   
  483. {WindowArrIcon}
  484.  
  485. Description
  486.  
  487.  {WindowArrIcon} lines up minimized windows on the Quattro Pro desktop or icons on the Objects sheet.
  488.  
  489. {WindowCascade}
  490.  
  491. Description
  492.  
  493.  {WindowCascade} rearranges all open windows on the Quattro Pro desktop.
  494.  
  495. {WindowClose}
  496.  
  497. Description
  498.  
  499.  {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).
  500.  
  501. {WindowHide}
  502.  
  503. Description
  504.  
  505.  {WindowHide} conceals the active notebook window.
  506.  
  507. {WindowMaximize}
  508.  
  509. Description
  510.  
  511.  {WindowMaximize} is equivalent to Maximize in a Control menu, which enlarges the active window so it fills the screen.
  512.  
  513. {WindowMinimize}
  514.  
  515. Description
  516.  
  517.  {WindowMinimize} is equivalent to Minimize in a Control menu, which shrinks the active window to an icon on the Quattro Pro desktop.
  518.  
  519. {WindowMove}
  520.  
  521. Syntax
  522.  
  523.  {WindowMove UpperLeftX, UpperLeftY}
  524.  
  525. PerfectScript Syntax
  526.  
  527.  WindowMove (UpperLeftX:Numeric; UpperLeftY:Numeric)
  528.  
  529. Description
  530.  
  531.  {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.
  532.  
  533. Parameters
  534.  
  535.  UpperLeftX    Distance between the left side of the Quattro Pro window and the left side of the active window, in pixels
  536.  
  537.  UpperLeftY    Distance between the bottom of the input line and the top of the active window, in pixels
  538.  
  539. {WindowNewView}
  540.  
  541. Description
  542.  
  543.  {WindowNewView} displays a duplicate copy of the active notebook in a new window.
  544.  
  545. {WindowNext}
  546.  
  547. Description
  548.  
  549.  {WindowNext} is equivalent to choosing Next in a Control menu or pressing Ctrl+F6. It makes the next window active.
  550.  
  551. {WindowPanes}
  552.  
  553. Syntax
  554.  
  555.  {WindowPanes Horizontal|Vertical|Clear, Synch?(0|1), <Width>, <Height>}
  556.  
  557. PerfectScript Syntax
  558.  
  559.  WindowPanes (Mode:Enumeration {Clear!; Horizontal!; Vertical!}; Synch?:Enumeration {Yes!; No!}; [Width:Numeric]; [Height:Numeric])
  560.  
  561. Description
  562.  
  563.  {WindowPanes} splits a notebook window into two horizontal or vertical panes; use Clear to restore a single pane.
  564.  
  565.  Width and Height indicate the ratio relationship between the panes.
  566.  
  567.  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.
  568.  
  569. Example
  570.  
  571.  {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.
  572.  
  573. Parameters
  574.  
  575.  Synch?    Whether the panes are synchronized: yes (1) or no (0)
  576.  
  577.  Width    Width of the left pane or height of the upper pane (optional)
  578.  
  579.  Height    Width of the right pane or height of the lower pane (optional)
  580.  
  581. {WindowQPW}
  582.  
  583. Syntax
  584.  
  585.  {WindowQPW.Option}
  586.  
  587. PerfectScript Syntax
  588.  
  589.  WindowQPW_Maximize ()
  590.  
  591.  WindowQPW_Minimize ()
  592.  
  593.  WindowQPW_Restore ()
  594.  
  595. Description
  596.  
  597.  {WindowQPW} is the command equivalent for the Maximize, Minimize, and Restore commands on the Quattro Pro Control menu.
  598.  
  599.  ¿    {WindowQPW.Maximize} enlarges the Quattro Pro window so it fills the screen.
  600.  
  601.  ¿    {WindowQPW.Minimize} shrinks the Quattro Pro window to an icon.
  602.  
  603.  ¿    {WindowQPW.Restore} restores the Quattro Pro window to its original size.
  604.  
  605. Options
  606.  
  607.  {WindowQPW.Maximize}    Maximizes the Quattro Pro application window.
  608.  
  609.  {WindowQPW.Minimize}    Minimizes the Quattro Pro application window.
  610.  
  611.  {WindowQPW.Restore}    Restores the Quattro Pro application window to its previous size.
  612.  
  613. {WindowRestore}
  614.  
  615. Description
  616.  
  617.  {WindowRestore} is equivalent to Restore on the Control menu. It restores minimized windows to their original size.
  618.  
  619. {WindowShow}
  620.  
  621. Syntax
  622.  
  623.  {WindowShow Name}
  624.  
  625. PerfectScript Syntax
  626.  
  627.  WindowShow (Name:String)
  628.  
  629. Description
  630.  
  631.  {WindowShow} shows hidden window Name and makes it active.
  632.  
  633.  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.
  634.  
  635. Parameters
  636.  
  637.  Name    Name of the hidden window to show
  638.  
  639. {WindowSize}
  640.  
  641. Syntax
  642.  
  643.  {WindowSize X,Y}
  644.  
  645. PerfectScript Syntax
  646.  
  647.  WindowSize (X:Numeric; Y:Numeric)
  648.  
  649. Description
  650.  
  651.  {WindowSize} is equivalent to Size in the Control menu. It sizes the active window to the specified width and height.
  652.  
  653. Parameters
  654.  
  655.  X    New window width, in pixels
  656.  
  657.  Y    New window height, in pixels
  658.  
  659. {WINDOWSOFF}
  660.  
  661. Description
  662.  
  663.  {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}.
  664.  
  665.  Use {WINDOWSOFF} with {PANELOFF} to completely disable normal screen updating.
  666.  
  667.  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.
  668.  
  669. Example
  670.  
  671.  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.
  672.  
  673.  sort_blk    vendor_name
  674.  
  675.  key_nm    vendor_name
  676.  
  677.  
  678.  
  679.  \W    {QGOTO}sort_message~
  680.  
  681.          {WINDOWSOFF}
  682.  
  683.          {_sort vendor_name}
  684.  
  685.          {WINDOWSON}
  686.  
  687.  
  688.  
  689.  _sort    {DEFINE sort_blk}
  690.  
  691.          {Sort.Block @@(sort_blk)}
  692.  
  693.          {BlockCopy sort_blk,key_nm}
  694.  
  695.          {Sort.Key_1 @@(key_nm)}
  696.  
  697.          {Sort.Order_1 "Ascending"}
  698.  
  699.          {Sort.Go}
  700.  
  701.  
  702.  
  703.  sort_message    SORT IS IN PROGRESS
  704.  
  705.  
  706.  
  707.  vendor_name    General Cement Co.
  708.  
  709.          Alveoli Mfg., Inc.
  710.  
  711.          Sandab Development
  712.  
  713.          Consolidated Dust
  714.  
  715. {WINDOWSON}
  716.  
  717. Description
  718.  
  719.  {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.
  720.  
  721.  See {WINDOWSOFF}for an example using {WINDOWSON}.
  722.  
  723. {WindowTile}
  724.  
  725. Description
  726.  
  727.  {WindowTile} displays all open windows without overlapping them.
  728.  
  729. {WindowTile.TileTopToBottom}
  730.  
  731. Description
  732.  
  733.  {WindowTile.TileTopToBottom} tiles multiple files horizontally.
  734.  
  735. {WindowTitles}
  736.  
  737. Syntax
  738.  
  739.  {WindowTitles Horizontal | Vertical | Both | Clear}
  740.  
  741. PerfectScript Syntax
  742.  
  743.  WindowTitles (Mode:Enumeration {Clear!; Horizontal!; Vertical!; Both!})
  744.  
  745. Description
  746.  
  747.  {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.
  748.  
  749.  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.
  750.  
  751.  You can use {WindowTitles.Title} with @COMMAND, @PROPERTY, and @CURVALUE.
  752.  
  753. Example
  754.  
  755.  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.
  756.  
  757.  \A    {Calc} {If TitlesOn} {WindowTitles Clear} {Quit}
  758.  
  759.      {WindowTitles Both}
  760.  
  761.  
  762.  
  763.  TitlesOn @COMMAND("WindowTitles.Title") = "Both"
  764.  
  765. {Workflow.RouteDocument}
  766.  
  767. Syntax
  768.  
  769.  {Workflow.RouteDocument Filename}
  770.  
  771. PerfectScript Syntax
  772.  
  773.  Workflow_RouteDocument (Filename: String)
  774.  
  775. Description
  776.  
  777. Parameter
  778.  
  779.  Filename    The name of the document you want to route
  780.  
  781. {Workflow.WorkflowManager}
  782.  
  783. Syntax
  784.  
  785.  {Workflow.WorkflowManager}
  786.  
  787. PerfectScript Syntax
  788.  
  789.  Workflow_WorkflowManager ()
  790.  
  791. {WorkSpace}
  792.  
  793. Syntax
  794.  
  795.  {WorkSpace.Option}
  796.  
  797. PerfectScript Syntax
  798.  
  799.  Workspace_Restore (Filename:String)
  800.  
  801.  Workspace_Save (Filename:String)
  802.  
  803. Description
  804.  
  805.  {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.
  806.  
  807. Options
  808.  
  809.  {Workspace.Restore Filename}    Overlays any existing windows with the windows stored in the workspace file, then retrieves the appropriate file for each.
  810.  
  811.  {Workspace.Save Filename}    Saves the position and size of all notebook windows and the names of the files contained in each window.
  812.  
  813. {WRITE}
  814.  
  815. Syntax
  816.  
  817.  {WRITE String<,String2,String3,...>}
  818.  
  819. Description
  820.  
  821.  {WRITE} copies String to a file opened with the {OPEN} command, starting at the location of the file pointer. The file pointer is advanced to the position following the last character written, and the file's size increases if necessary. See {GETPOS} for a discussion of the file pointer.
  822.  
  823.  {WRITE} does not place the carriage return and linefeed characters at the ends of lines. To include these characters, use {WRITELN}.
  824.  
  825.  String can be a quoted string or text formula. If using more than one String, separate them with commas. For example, to write the label Dear Ms. followed by the contents of B6 into the file, use the following:
  826.  
  827.  {WRITE "Dear Ms. ",+B6}
  828.  
  829.  You can use an unlimited number of String arguments with {WRITE}.
  830.  
  831.  If no file is open, or if there is insufficient room on the disk to increase the file's size, {WRITE} fails. Macro execution then continues with the first command after {WRITE} (in the same cell). If {WRITE} is successful, the rest of that cell's commands are ignored, and execution continues on the next row below.
  832.  
  833.  If you try to reference a cell that does not contain a label, an error message displays.
  834.  
  835. Example
  836.  
  837.  The following example creates a text file with fixed-length fields that will serve as a phone list database. After the macro runs, the file will look like this:
  838.  
  839.      Golden, David 415-555-7774;Hack, Edmund 201-555-3511;Hall, Sue Ann 617-555-5678
  840.  
  841.  
  842.  
  843.  See the description of {READ} to see how to read a file like this.
  844.  
  845.  \K    {OPEN "A:PHONEDIR.PRN",W}
  846.  
  847.          {WRITE "Golden, David "}
  848.  
  849.          {WRITE "415-555-7774;"}
  850.  
  851.          {WRITE "Hack, Edmund "}
  852.  
  853.          {WRITE "201-555-3511;"}
  854.  
  855.          {WRITE "Hall, Sue Ann "}
  856.  
  857.          {WRITE "617-555-5678"}
  858.  
  859.          {CLOSE}
  860.  
  861. Parameters
  862.  
  863.  String    String of characters to be written into the open file
  864.  
  865. Note
  866.  
  867.  ¿    After you finish accessing a file with {WRITE}, it must be closed with {CLOSE}. Otherwise, the file could become corrupted if the computer is turned off or otherwise interrupted.
  868.  
  869.   This command is obsolete
  870.   
  871. {WRITELN}
  872.  
  873. Syntax
  874.  
  875.  {WRITELN String<,String2,String3,...>}
  876.  
  877. Description
  878.  
  879.  {WRITELN} copies String(s) to a file opened with {OPEN}, starting at the location of the file pointer, and ends the string(s) with the carriage-return and linefeed characters. The file pointer advances to the position following the last character written, and the file's size increases if necessary. (See {GETPOS} for a discussion of the file pointer.)
  880.  
  881.  To enter a blank line in the file, use {WRITELN ""}. To enter characters without carriage-return/linefeed characters, use {WRITE}.
  882.  
  883.  String can be a quoted string or a text formula. If using more than one String, separate them with commas. For example, to write the label Dear Ms. followed by the contents of B6 into the file, you would use
  884.  
  885.      {WRITELN "Dear Ms. ",+B6}
  886.  
  887.  A carriage return and linefeed character are placed at the end of all strings combined, not after each. You can use an unlimited number of String arguments with {WRITELN}.
  888.  
  889.  If no file is open, or if there is insufficient room on the disk to increase a file's size, {WRITELN} fails. Macro execution then continues with the first command after {WRITELN} in the same cell. If {WRITELN} succeeds, the rest of that cell's commands are ignored, and execution continues on the next row below.
  890.  
  891. Example
  892.  
  893.  The following example shows how {WRITELN} is used to write a line of text to the file TEST.TXT. This line is terminated by the CR (carriage-return) and LF (linefeed) characters.
  894.  
  895.  \Z    {OPEN "A:TEST.TXT",W}
  896.  
  897.          {WRITELN "This is a short line."}
  898.  
  899.          {CLOSE}
  900.  
  901. Parameters
  902.  
  903.  String    String of characters to be written into the open file as a single line
  904.  
  905. Notes
  906.  
  907.  ¿    After you finish accessing a file with {WRITELN}, you must close the file with {CLOSE}. Otherwise, the file could become corrupted if the computer is turned off or otherwise interrupted.
  908.  
  909.   This command is obsolete
  910.   
  911.  
  912.  
  913.  
  914.  
  915.  
  916.