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

  1. {IF}
  2.  
  3. Syntax
  4.  
  5. {IF Condition}
  6.  
  7. Description
  8.  
  9. {IF} operates like @IF. {IF} evaluates Condition; if it is numeric and nonzero, it is considered to be TRUE and macro execution continues in the same cell; if Condition is anything else, it is considered FALSE, and macro execution continues in the cell directly below the {IF} command. Unlike @IF, {IF} commands cannot be nested within each other.
  10.  
  11. Example
  12.  
  13. The following example says, in English, "If the value stored in gpa is greater than 0.59, run the macro _pass_student; otherwise, run the macro _fail_student."
  14.  
  15. \F    {IF gpa>.59}{BRANCH _pass_student}
  16.  
  17.         {BRANCH _fail_student}
  18.  
  19. If you do not want both the true and false clauses executing, be sure to include {BRANCH} or {QUIT} in the same cell as {IF}, as shown in both examples. The following example uses a string of {IF} commands to award a grade based on a test result:
  20.  
  21. \G    {IF result>=.90}{BRANCH _give_a}
  22.  
  23.         {IF result>=.80}{BRANCH _give_b}
  24.  
  25.         {IF result>=.70}{BRANCH _give_c}
  26.  
  27.         {IF result>=.56}{BRANCH _give_d}
  28.  
  29.         {BRANCH _give_f}
  30.  
  31. Parameters
  32.  
  33. Condition    A logical expression (or the address of a cell containing a label, value, or expression)
  34.  
  35. {IFAUTOOBJ}
  36.  
  37. Syntax
  38.  
  39. {IFAUTOOBJ ObjectExpression}
  40.  
  41. Description
  42.  
  43. {IFAUTOOBJ} is like {IF}, but instead evaulating a logical condition it expects the object expression resulting from an OLE automation object. If ObjectExpression is true, {IFAUTOOBJ} runs the macro in the same cell; otherwise, it skips to the next cell.
  44.  
  45. Example
  46.  
  47. {ASSIGN OLE2App, GetObject("DispCalc.Application")}
  48.  
  49. {IFAUTOOBJ OLE2App}{BRANCH A10}
  50.  
  51. {ASSIGN OLE2App, CreateObject("DispCalc.Application")}
  52.  
  53. Parameters
  54.  
  55. ObjectExpression    Object expression resulting from an OLE automation object
  56.  
  57. {IFKEY}
  58.  
  59. Syntax
  60.  
  61. {IFKEY String}
  62.  
  63. Description
  64.  
  65. {IFKEY} is like {IF}, but runs the next macro command in the current cell if String is the name of a key macro command (such as {ESC} or {HOME}). Do not enclose the name stored in String in braces. For example, {IFKEY "HOME"} evaluates as true because HOME is the name of a macro command; {IFKEY "A"} evaluates as false because it is not the name of a macro command. String can be a string or a text formula.
  66.  
  67. Parameters
  68.  
  69. String    Any macro name for a key (such as PGUP, END, GRAPH, and so on) without braces, or a string that returns a key macro name without braces
  70.  
  71. {IMFORMAT}
  72.  
  73. Syntax
  74.  
  75. {IMFORMAT Format}
  76.  
  77. PerfectScript Syntax
  78.  
  79. IMFORMAT (Format:Numeric)
  80.  
  81. Description
  82.  
  83. {IMFORMAT} specifies how complex numbers display in the active notebook, and returns a label showing the selected format.
  84.  
  85. Example
  86.  
  87. {IMFORMAT 1} returns "x+iy"
  88.  
  89. {IMFORMAT 2} returns "x+jy"
  90.  
  91. Parameters
  92.  
  93. Format    Flag indicating what suffix and format to use for imaginary coefficient of complex number; the default is 1; 1 = x + yi, 2 = x + yj, 3 = x + iy, 4 = x + jy
  94.  
  95. {ImportGraphic}
  96.  
  97. Syntax
  98.  
  99. {ImportGraphic Filename}
  100.  
  101. PerfectScript Syntax
  102.  
  103. ImportGraphic (Filename:String)
  104.  
  105. Description
  106.  
  107. {ImportGraphic} imports graphics files into a chart window.
  108.  
  109. You can use {ImportGraphic?} or {ImportGraphic!} to display the Insert Image dialog box. {ImportGraphic?} lets you manipulate the dialog box, whereas {ImportImage!} relies on the macro to manipulate it.
  110.  
  111. Parameters
  112.  
  113. Filename    Name of the bitmap or other graphics file to import
  114.  
  115. {ImportGraphic.Clipart}
  116.  
  117. Syntax
  118.  
  119. {ImportGraphic.Clipart}
  120.  
  121. PerfectScript Syntax
  122.  
  123. ImportGraphic Clipart()
  124.  
  125. Description
  126.  
  127. Equivalent to Insert  Graphics  Clipart
  128.  
  129. {INDICATE}
  130.  
  131. Syntax
  132.  
  133. {INDICATE String}
  134.  
  135. PerfectScript Syntax
  136.  
  137. Indicate ([String:String])
  138.  
  139. Description
  140.  
  141. {INDICATE} sets the mode indicator in the lower-right corner of the screen to read whatever is given as String. If String is longer than seven characters, only the first seven are used. To restore the mode indicator to its normal setting, use {INDICATE} with no arguments. To hide the mode indicator, use {INDICATE ""}.
  142.  
  143. Example
  144.  
  145. {INDICATE "Save!"} changes the indicator to read Save!.
  146.  
  147. {INDICATE " Go! "} changes the indicator to read Go! with a space preceding and following it.
  148.  
  149. {INDICATE E14} changes the indicator to E14 because cell references are ignored.
  150.  
  151. {INDICATE} restores the normal mode indicator.
  152.  
  153. Parameters
  154.  
  155. String    Any seven-character string
  156.  
  157. {InitApp}
  158.  
  159. Syntax
  160.  
  161. {InitApp}
  162.  
  163. PerfectScript Syntax
  164.  
  165. InitApp ()
  166.  
  167. Description
  168.  
  169. Starts Quattro Pro.
  170.  
  171. {INITIATE}
  172.  
  173. Syntax
  174.  
  175. {INITIATE AppName,Topic,ChannelLoc}
  176.  
  177. Description
  178.  
  179. {INITIATE} requests a channel of communication with the application AppName. This application must support Dynamic Data Exchange (DDE). If the request succeeds, the identification number of the conversation (DDE communication) is stored in the cell ChannelLoc. Topic can be a Corel WordPerfect document, an Excel spreadsheet, an ObjectVision form, or other DDE server-application file. If there is no specific file to communicate with in the other application, you can set Topic to System.
  180.  
  181. AppName, Topic, or both can be an empty string (""). The empty string works as a wildcard to display a list of possible conversations to choose from.
  182.  
  183. You can use {INITIATE} multiple times with the same application; if you do this, use a different ChannelLoc for each conversation. Once a channel opens, you can use {REQUEST}, {EXECUTE}, or {POKE} to communicate with the application.
  184.  
  185. When the DDE conversation is complete, use {TERMINATE} to end it. See {EXECUTE} for an example of {INITIATE}.
  186.  
  187. Parameters
  188.  
  189. AppName    Name of the Windows application to communicate with
  190.  
  191. Topic    Name of the file within the Windows application to communicate with
  192.  
  193. ChannelLoc    Cell to contain the Channel ID number of the conversation if communication succeeds
  194.  
  195. {INS}, {INSERT}, {INSOFF}, and {INSON}
  196.  
  197. Description
  198.  
  199. {INS} and {INSERT} toggle the Ins key on or off. {INSOFF} is equivalent to Ins off, and {INSON} to Ins on.
  200.  
  201. {InsertBreak}
  202.  
  203. Syntax
  204.  
  205. {InsertBreak}
  206.  
  207. PerfectScript Syntax
  208.  
  209. InsertBreak ()
  210.  
  211. Description
  212.  
  213. Inserts a new line and a hard page break into notebook print blocks at the current selector location.
  214.  
  215. {InsertObject}
  216.  
  217. Syntax 1: Embedding/Linking from a File
  218.  
  219. {InsertObject Filename, <DisplayAsIcon?(0|1)>, <Linked?(0|1)>}
  220.  
  221. Syntax 2: Embedding a New Object
  222.  
  223. {InsertObject ObjectType, <DisplayAsIcon?(0|1)>}
  224.  
  225. PerfectScript Syntax
  226.  
  227. InsertObject (ObjectTypeOrFilename:String; [DisplayAsIcon?:Enumeration {Yes!; No!}]; [Linked?:Enumeration {Yes!; No!}])
  228.  
  229. Description
  230.  
  231. {InsertObject} inserts an OLE object into the active notebook without using the Clipboard.
  232.  
  233. You can use {InsertObject?} or {InsertObject!} to display the Insert Object dialog box. {InsertObject?} lets you manipulate the dialog box, whereas {InsertObject!} relies on the macro to manipulate it.
  234.  
  235. Example
  236.  
  237. This macro inserts a picture created in Paintbrush into the active notebook.
  238.  
  239.     {InsertObject "Paintbrush Picture"}
  240.  
  241. Parameters 1
  242.  
  243. Filename    File that you want to link/embed as an object
  244.  
  245. DisplayAsIcon    Whether to display the object as an icon; 0 to show the object as it looks in the server application; 1 to display the object as an icon
  246.  
  247. Linked?    Whether to link to the file; 0 to not link; 1 to link; the default is 0
  248.  
  249. Parameters 2
  250.  
  251. ObjectType    Type of object to insert (the name of an OLE server)
  252.  
  253. DisplayAsIcon    Whether to display the object as an icon; 0 to show the object as it looks in the server application; 1 to display the object as an icon
  254.  
  255. {InsertObject.DrawPicture}
  256.  
  257. Syntax
  258.  
  259. {InsertObject.DrawPicture}
  260.  
  261. PerfectScript Syntax
  262.  
  263. InsertObject_DrawPicture ()
  264.  
  265. {InsertObject.TextArt}
  266.  
  267. Syntax
  268.  
  269. {InsertObject.TextArt}
  270.  
  271. PerfectScript Syntax
  272.  
  273. InsertObject_TextArt ()
  274.  
  275. Description
  276.  
  277. Allows you to insert TextArt.
  278.  
  279. {InsertPageBreak}
  280.  
  281. Syntax
  282.  
  283. {InsertPageBreak.Option}
  284.  
  285. PerfectScript Syntax
  286.  
  287. InsertPageBreak_Create (Row:Numeric; Column:Numeric)
  288.  
  289. InsertPageBreak_Delete (Row:Numeric; Column:Numeric)
  290.  
  291. Description
  292.  
  293. {InsertPageBreak.Create} inserts a page break above Row# and to left of Column#.
  294.  
  295. {InsertPageBreak.Delete} deletes the current PageBreak above Row# and to left of Column#.
  296.  
  297. Options
  298.  
  299. {InsertPageBreak.Create Row#, Column#}    Creates a hard page break to start a new page
  300.  
  301. {InsertPageBreak.Delete Row#, Column#}    Deletes a hard page break
  302.  
  303. {INSPECT}
  304.  
  305. Description
  306.  
  307. {INSPECT} is equivalent to the Inspect key, F12. It displays an Object Inspector for the current object.
  308.  
  309. {Invert}
  310.  
  311. Syntax
  312.  
  313. {Invert.Option}
  314.  
  315. PerfectScript Syntax
  316.  
  317. Invert_Destination (Block:String)
  318.  
  319. Invert_Go ()
  320.  
  321. Invert_Source (Block:String)
  322.  
  323. Description
  324.  
  325. {Invert} inverts a square matrix (indicated by {Invert.Source Block}) and stores the invert matrix in other cells (indicated by {Invert.Destination Block}). Use {Invert.Go} after the other two matrix-inversion command equivalents to complete the operation.
  326.  
  327. You can use this command equivalent with {Multiply.Option} to solve sets of linear equations.
  328.  
  329. You can use {Invert?} or {Invert!} to display the Matrix Invert dialog box. {Invert?} lets you manipulate the dialog box, whereas {Invert!} relies on the macro to manipulate it.
  330.  
  331. Options
  332.  
  333. {Invert.Destination Block}    Specifies the upper-left cell of the area where you want to write the inverted matrix
  334.  
  335. {Invert.Go}    Inverts the selected matrix
  336.  
  337. {Invert.Source Block}    Specifies the matrix you want to invert
  338.  
  339. {IsAutoObj}
  340.  
  341. Syntax
  342.  
  343. {IsAutoObj ObjectI}
  344.  
  345. PerfectScript Syntax
  346.  
  347. IsAutoObj (Object: String)
  348.  
  349. Description
  350.  
  351. Parameter
  352.  
  353. Object    
  354.  
  355.  
  356.  
  357.  
  358.  
  359.  
  360.