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

  1. {LEFT} and {L}
  2.  
  3. Syntax
  4.  
  5. {LEFT <Number>} or {L <Number>}
  6.  
  7. Description
  8.  
  9. {LEFT} and {L} are equivalent to the Left-arrow key. The optional argument Number moves the selector the corresponding number of columns to the left. You can use cell references or cell names as arguments.
  10.  
  11. Example
  12.  
  13. {L}{L}{L} moves the selector left three columns.
  14.  
  15. {LEFT 6} moves the selector six columns to the left.
  16.  
  17. {LEFT D9} moves to the left the number of columns specified in cell D9.
  18.  
  19. {LEFT count} moves to the left the number of columns specified in the first cell of the cells named count.
  20.  
  21. Parameters
  22.  
  23. Number    Any positive integer (optional)
  24.  
  25. {LET}
  26.  
  27. Syntax
  28.  
  29. {LET Location,Value<:Type>}
  30.  
  31. PerfectScript Syntax
  32.  
  33. Let (Cell:String; Value:Any)
  34.  
  35. Description
  36.  
  37. With {LET}, you can enter a value into Location without moving to it. {LET} enters the value or string you specify with Value in Location.
  38.  
  39. You can use the optional Type argument to specify whether to store Value as an actual number or as a string. If you specify a formula as a string, the formula is written into Location as a string, not the resulting value. For example, {LET A1,B3*23:string} stores the formula B3*23 as a label in cell A1. If you omit Type, Quattro Pro tries to store the value as a numeric value; if unsuccessful, it stores the value as a string.
  40.  
  41. Location must be a cell address or cell name; you can use functions such as @CELLPOINTER as a Location in {LET} commands only if they return a cell address or cell name.
  42.  
  43. Value cannot be an @ARRAY formula. {LET} does not not enter array values. Use {PUTCELL} or {PUTCELL2} to enter array values.
  44.  
  45. You can use {LET} to invoke add-in @functions or macros contained in DLLs. Specify the add-in as Value, using this syntax for functions:
  46.  
  47.     @dllname.functionname(functionargument1, functionargument2, ...)
  48.  
  49.  
  50.  
  51. For example, this statement calls the @function MEDIAN, included in DLL Stats, with a five-item list as an argument and stores the result in Location G6:
  52.  
  53.     {LET G6,@Stats.MEDIAN(2,4,6,8,10)}
  54.  
  55.  
  56.  
  57. The macro syntax is identical:
  58.  
  59.     @dllname.macroname(macroargument1, macroargument2, ...)
  60.  
  61.  
  62.  
  63. Example
  64.  
  65. {LET(@CELLPOINTER("address")),99} makes the value of the active cell 99.
  66.  
  67. The examples below assume A1 contains the label 'Dear, A2 contains the label 'Sir, and A3 contains the value 25. The result is shown to the right of each {LET}.
  68.  
  69. \M    {LET F1,25}    25
  70.  
  71.     {LET F2,A3}    25
  72.  
  73.     {LET F3,+A1&""&A2}    Dear Sir
  74.  
  75.     {LET F4,+A1&""&A2:value}    Dear Sir
  76.  
  77.     {LET F5,+A1&""&A2:string}    +A1&""&A2
  78.  
  79.     {LET F6,+A1&A3}    ERR (because A3 is a value)
  80.  
  81. Parameters
  82.  
  83. Location    Cell in which to store the specified value
  84.  
  85. Value    Numeric or string value to be stored in Location
  86.  
  87. Type    String or value; string (or s) stores the value or formula as a label, and value (or v) stores the actual value or value resulting from a formula (optional)
  88.  
  89. {Link}
  90.  
  91. Syntax
  92.  
  93. {Link "string"}
  94.  
  95. Description
  96.  
  97. {Link} applies a link to the currently selected object, such as a pushbutton in a dialog or toolbar.
  98.  
  99. Example
  100.  
  101. {Link "ON Clicked DOMACRO {filesave}"}
  102.  
  103. {Links}
  104.  
  105. Syntax
  106.  
  107. {Links.Option}
  108.  
  109. PerfectScript Syntax
  110.  
  111. Links_Change (OldName:String; NewName:String)
  112.  
  113. Links_Delete (LinkName:String)
  114.  
  115. Links_Open (LinkName:String)
  116.  
  117. Links_Refresh (LinkName:String)
  118.  
  119. Description
  120.  
  121. {Links.Option} refreshes, changes, or deletes links in the active notebook.
  122.  
  123. LinkName is the name of the file being linked to. You can set LinkName to * to affect all links in the active notebook. If LinkName is omitted, the dialog box that normally performs the operation appears (and is under macro control; use {PAUSEMACRO} to pass control to the user).
  124.  
  125. Example
  126.  
  127. {Links.Refresh *} refreshes all links in the active notebook.
  128.  
  129. The following macro displays the Open Links dialog box and lets you select the name of a linked notebook to open.
  130.  
  131. {Links.Open}
  132.  
  133. {PAUSEMACRO}
  134.  
  135. Options
  136.  
  137. {Links.Change OldName, NewName}    Switches links from one file to another
  138.  
  139. {Links.Delete LinkName|*} (* = all links)    Deletes notebook links
  140.  
  141. {Links.Open LinkName|*} (* = all links)    Opens files linked to the active notebook
  142.  
  143. {Links.Refresh LinkName|*} (* = all links)    Refreshes links to unopened files
  144.  
  145. {LOOK}
  146.  
  147. Syntax
  148.  
  149. {LOOK Location}
  150.  
  151. Description
  152.  
  153. When Quattro Pro runs a macro, it does not respond to keystrokes you enter (except Ctrl+Break). If you press keys during macro execution, those keystrokes are stored in the computer's type-ahead buffer and are responded to when the macro pauses for input, or ends.
  154.  
  155. {LOOK} checks this type-ahead buffer for stored keystrokes. If any are found, it places the first keystroke the user typed in Location as a macro command.
  156.  
  157. {LOOK} can be used while processing long macros to check for a keystroke that might signal the user wants to quit (see the next example).
  158.  
  159. {LOOK} does not remove the keystroke from the buffer. If a macro does nothing other than {LOOK}, the key still passes to Quattro Pro when the macro ends. To remove pending keystrokes from the buffer, use {GET}.
  160.  
  161. Example
  162.  
  163. In the following example, the macro gives you 15 seconds to choose the next menu choice. If you do not, you must reenter the password. Important: Type the line to the right of _check_it with no hard returns until after {BRANCH _password}, then press Enter to insert it into one cell (the macro commands from {LOOK keystroke} to {BRANCH -password} are shown here on separate lines for readability).
  164.  
  165. \M    {QGOTO}msg_area~
  166.  
  167.     A. Add name{DOWN}
  168.  
  169.     B. Edit name{DOWN}
  170.  
  171.     C. Delete name{DOWN}
  172.  
  173.     Enter choice: {RIGHT}
  174.  
  175.     { }
  176.  
  177.     {LET start_time,@NOW}
  178.  
  179. _check_it    {LOOK keystroke}
  180.  
  181.     {IF keystroke=""}
  182.  
  183.     {IF @NOW>start_time + @TIME(0,0,15)}
  184.  
  185.     {BRANCH _password}
  186.  
  187.     {IF keystroke<>""}{BRANCH _take_action}
  188.  
  189.     {BEEP 4}
  190.  
  191.     {BRANCH _check_it}
  192.  
  193.     
  194.  
  195. _password    {; get password from user}
  196.  
  197.     {GETLABEL "Enter password : ",pass}
  198.  
  199.     
  200.  
  201. _take_action    { }
  202.  
  203.     {BEEP 3}
  204.  
  205. start_time    
  206.  
  207. keystroke    
  208.  
  209. pass    
  210.  
  211. msg_area    
  212.  
  213. Parameters
  214.  
  215. Location    A cell in which to store a typed character
  216.  
  217.  
  218.  
  219.  
  220.  
  221.  
  222.