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

  1. {EDIT}
  2.  
  3. Description
  4.  
  5. {EDIT} is equivalent to the Edit key, F2. Its main use is in Edit mode, where it lets you edit the contents of the active cell. You can also use it to search for items in a long list.
  6.  
  7. {EditClear}
  8.  
  9. Description
  10.  
  11. {EditClear} erases the contents and properties of the current cells, deletes selected objects from dialog and chart windows, and deletes selected floating objects. To erase cells while leaving their properties intact, use {ClearContents}.
  12.  
  13. {EditCopy}
  14.  
  15. Description
  16.  
  17. {EditCopy} copies the selected object to the Clipboard.
  18.  
  19. {EditCut}
  20.  
  21. Description
  22.  
  23. {EditCut} removes the selected object from the spreadsheet and moves it to the Clipboard.
  24.  
  25. {EditGoto}
  26.  
  27. Syntax
  28.  
  29. {EditGoto Block,<Extend?(0|1)>}
  30.  
  31. PerfectScript Syntax
  32.  
  33. EditGoto (Block:String; [Extend?:Enumeration {Yes!; No!}])
  34.  
  35. Description
  36.  
  37. {EditGoto} selects and displays Block within spreadsheet sheets, but not the Objects sheet.
  38.  
  39. You can use {EditGoto?} or {EditGoto!} to display the Go To dialog box. {EditGoto?} lets the user manipulate the dialog box, whereas {EditGoto!} relies on the macro to manipulate it.
  40.  
  41. Parameters
  42.  
  43. Block    Cells to display and select
  44.  
  45. Extend?    Whether to extend the selection from the current selection to the specified cells; 0 = no, 1 = yes; the default is 0
  46.  
  47. {EditPaste}
  48.  
  49. Description
  50.  
  51. {EditPaste} copies data and its properties from the Clipboard into the notebook.
  52.  
  53. To paste only values or properties, use {PasteSpecial}. {PasteLink} creates a live DDE link, and {PasteFormat} adds many types of data from other applications (including embedded OLE objects).
  54.  
  55. {END}
  56.  
  57. Description
  58.  
  59. {END} is equivalent to the End key.
  60.  
  61. {ESC} and {ESCAPE}
  62.  
  63. Description
  64.  
  65. {ESC} and {ESCAPE} are equivalent to the Esc key, which is useful for clearing menus or dialog boxes from the screen, one at a time. To clear all prompts and return Quattro Pro to Ready Mode, use {BREAK}.
  66.  
  67. {Eval}
  68.  
  69. Syntax
  70.  
  71. {Eval Formula}
  72.  
  73. PerfectScript Syntax
  74.  
  75. Eval (Formula: String)
  76.  
  77. Description
  78.  
  79. Evaluates a string as an expression, and returns the result as a string value.
  80.  
  81. Example
  82.  
  83. "5 + 5"
  84.  
  85. Result: "10"
  86.  
  87. Parameter
  88.  
  89. Formula    The string to evaluate
  90.  
  91. {EXEC}
  92.  
  93. Syntax
  94.  
  95. {EXEC AppName, WindowMode, <ResultLoc>}
  96.  
  97. Description
  98.  
  99. {EXEC} lets you run other Windows applications or DOS commands. AppName can be any valid command string you could type in the Windows Run dialog box. AppName can contain the path of the application. If no path is given, then the application must be in the system path so Windows can find it.
  100.  
  101. ResultLoc is useful in some cases where the started application supports DDE along with an instance number. For example, Excel and Quattro Pro respond to their names and also respond to their names concatenated with an instance number.
  102.  
  103. Example
  104.  
  105. {EXEC "C:\COREL\SUITE8\PROGRAMS\WPWIN8.EXE",2} runs Corel WordPerfect for Windows as a minimized application
  106.  
  107. {EXEC "NOTEPAD.EXE",1} runs the Windows Notepad and displays it just as if it were run from the Start button on the taskbar.
  108.  
  109. {EXEC "C:\COMMAND.COM /C DIR>TEST.TXT",1} stores the current directory listing in the file TEST.TXT for Windows, except for Windows NT 4.0.
  110.  
  111. {EXEC "C:\CMD.EXE /C DIR>TEST.TXT",1} stores the current directory listing in the file TEST.TXT in Windows NT 4.0.
  112.  
  113. Parameters
  114.  
  115. AppName    Name (in quotes) of the application to run (up to 100 characters)
  116.  
  117. WindowMode    Size state of the application's window: 1 or 101 for normal size, 2 or 102 for minimized, 3 or 103 for maximized; use 101, 102, 103 to suspend macro execution until the application terminates
  118.  
  119. ResultLoc    Cell containing the coded explanation of the operation's success
  120.  
  121. {EXECAUTO}
  122.  
  123. Syntax
  124.  
  125. {EXECAUTO AutoExpr1<,AutoExpr2>}
  126.  
  127. PerfectScript Syntax
  128.  
  129. ExecAuto (AutoExpr1:String; {[AutoExpr:String]})
  130.  
  131. Description
  132.  
  133. {EXECAUTO} executes one or more methods in another application, but drops any return values.
  134.  
  135. Example
  136.  
  137. {EXECAUTO calc.Display()} asks DispCalc to display its current input value.
  138.  
  139. {EXECAUTO calc.Button(A1), calc.Display()} passes the value in A1 as an input to DispCalc and asks DispCalc to display it.
  140.  
  141. Parameters
  142.  
  143. AutoExpr1,2...    One or more automation expressions
  144.  
  145. {ExecMacro}
  146.  
  147. Syntax
  148.  
  149. {ExecMacro <Filename;> Macro}
  150.  
  151. PerfectScript Syntax
  152.  
  153. ExecMacro ([Filename: String;] Macro: String)
  154.  
  155. Description
  156.  
  157. Starts Quattro Pro, opens the file, runs the macro, and exits Quattro Pro.
  158.  
  159. Parameters
  160.  
  161. Filename [optional]    The name of the file that contains the macro you want to run.
  162.  
  163. Macro    The name of the macro you want to run.
  164.  
  165. {EXECUTE}
  166.  
  167. Syntax
  168.  
  169. {EXECUTE DDEChannel,Macro,<ResultLoc>}
  170.  
  171. Description
  172.  
  173. With {EXECUTE} you can make other applications that support DDE run their macros. The macro to run is stored in the string Macro. It must be in the syntax the application normally uses (refer to the documentation for each application). You must open a channel of conversation with the other application using {INITIATE} (which determines the value of DDEChannel) before using {EXECUTE}.
  174.  
  175. The contents of ResultLoc depend on the application you are contacting. Most often, if a macro succeeds, ResultLoc contains 1. If a macro fails, {EXECUTE} results in an error.
  176.  
  177. See {REQUEST} and {POKE} for more information on receiving data from and sending data to other applications using DDE.
  178.  
  179. Example
  180.  
  181. The following example initiates a DDE conversation with Corel WordPerfect's macro server and opens REPORT.DOC in Corel WordPerfect.
  182.  
  183. channel    1
  184.  
  185.     {INITIATE "WPWin7_Macros","COMMANDS",channel}
  186.  
  187.     {EXECUTE channel,"FileOpen(""report.doc"")"}
  188.  
  189.     {TERMINATE channel}
  190.  
  191. Parameters
  192.  
  193. DDEChannel    Channel ID number of the application to run a macro in
  194.  
  195. Macro    String containing the macro command(s) to run
  196.  
  197. ResultLoc    A cell indicating the result of the operation
  198.  
  199. {EXPON}
  200.  
  201. Syntax
  202.  
  203. {EXPON InBlock,OutBlock,<Damping>,<StdErrs>}
  204.  
  205. PerfectScript Syntax
  206.  
  207. EXPON (InBlock:String; OutBlock:String; [Damping:Numeric]; [StdErrs?:Enumeration {Yes!; No!}])
  208.  
  209. Description
  210.  
  211. {EXPON} performs exponential smoothing on a series of values. {EXPON} is equivalent to the Exponential Smoothing analysis tool.
  212.  
  213. Parameters
  214.  
  215. InBlock    Input cells containing a single column or row with at least four numeric values; the cells must not contain labels
  216.  
  217. OutBlock    Upper-left cell of the output cells
  218.  
  219. Damping    Damping factor used as the exponential smoothing constant; indicates the percentage for error to adjust each prior forecast value; must be │ 0; the default is 0.3
  220.  
  221. StdErrs    Flag indicating whether standard errors are included in the output table: yes (1) or no (0); the default is 0
  222.  
  223. {ExportGraphic}
  224.  
  225. Syntax
  226.  
  227. {ExportGraphic Filename,<GrayScale?(0|1)>,<Compression?(0|1)>}
  228.  
  229. PerfectScript Syntax
  230.  
  231. ExportGraphic (Filename:String; [GrayScale?:Enumeration {Yes!; No!}]; [Compression?:Enumeration {Yes!; No!}])
  232.  
  233. Description
  234.  
  235. {ExportGraphic} saves selected graphic objects to one of several file types with optional gray-scaling and compression.
  236.  
  237. You can use {ExportGraphic?} or {ExportGraphic!} to display the Export Graphics File dialog box. {ExportGraphic?} lets the user manipulate the dialog box, whereas {ExportGraphic!} relies on the macro to manipulate it.
  238.  
  239. Parameters
  240.  
  241. Filename    Name of the graphic file to export
  242.  
  243. GrayScale?    Whether to gray-scale: no (0), yes (1); the default is 0
  244.  
  245. Compression?    Type of .TIF file compression to use: none (0) or PackBits (1); the default is 0
  246.  
  247.  
  248.  
  249.  
  250.  
  251.  
  252.