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

  1. numeric := AbsVal
  2.  
  3. Syntax
  4.  
  5. (Value: numeric)
  6.  
  7. Description
  8.  
  9. Get the absolute value of a value.
  10.  
  11. The absolute value is the distance a value is from zero, and is always positive. If the value is negative, the absolute value is the positive equivalent of the same value. The absolute value of a positive value is the same value.
  12.  
  13. Return Value
  14.  
  15. Absolute value of a value.
  16.  
  17. Parameter
  18.  
  19. Value: numeric    Get the absolute value of this value.
  20.  
  21. numeric := Amortize
  22.  
  23. Syntax
  24.  
  25. ([Principle: numeric]; [InterestRate: numeric]: [Duration: numeric]: [Payment: numeric])
  26.  
  27. Description
  28.  
  29. This command accepts the four standard parts of a loan. If three of the four are specified, this command will compute and return the fourth value (which is left blank).
  30.  
  31. Return Value
  32.  
  33. The value of the missing item is returned. If more than one of the parameters is missing, a value of 0.0 is returned.
  34.  
  35. Parameter
  36.  
  37. Principle: numeric    The amount of the loan principle. This is the borrowed amount.
  38.  
  39. InterestRate:
  40.  
  41. numeric    The interest rate that will be charged. This is the interest rate per period. If the loan is payed once per month, this is the monthy interest rate.
  42.  
  43. Duration:
  44.  
  45. numeric    The duration of the loan in periods. If the loan is payed in months, this returns the number of months of the loan.
  46.  
  47. Payment: numeric    This is the payment per period. If the loan is payed in months, this is the monthly payment.
  48.  
  49. numeric := acos
  50.  
  51. Syntax
  52.  
  53. (Value: numeric)
  54.  
  55. Description
  56.  
  57. Get an angle in radians for a specified cosine. This is called the arc, or inverse cosine.
  58.  
  59. Return Value
  60.  
  61. Angle in radians.
  62.  
  63. Parameters
  64.  
  65. Value: numeric    Cosine.
  66.  
  67. numeric := acosh
  68.  
  69. Syntax
  70.  
  71. (Value: numeric)
  72.  
  73. Description
  74.  
  75. Get an angle in radians whose hyperbolic cosine is specified. This is called the arc, or inverse hyperbolic cosine.
  76.  
  77. Return Value
  78.  
  79. Angle in radians.
  80.  
  81. Parameters
  82.  
  83. Value: numeric    Hyperbolic cosine.
  84.  
  85. variable := Address
  86.  
  87. Syntax
  88.  
  89. (<VariableName> variable)
  90.  
  91. Description
  92.  
  93. Pass a variable address (DLL call in-line parameter and OLE type casting function). See DLLCall and OLE Automation.
  94.  
  95. Parameters
  96.  
  97. <VariableName> variable
  98.  
  99. boolean := boolean AND boolean
  100.  
  101. Description
  102.  
  103. Operator. Precedence level 8. Combine two relationship expressions.
  104.  
  105. Return Value
  106.  
  107. True if both expressions are true, False if not.
  108.  
  109. Animate
  110.  
  111. Syntax
  112.  
  113. (Type: enumeration; Specification: string)
  114.  
  115. Description
  116.  
  117. Lets you specify mouse actions or keystrokes to execute without user intervention. You can use the Animate command to demonstrate how to perform a function.
  118.  
  119. Parameters
  120.  
  121. Type: enumeration    Lets you specify whether or not the Animate command animates the mouse pointer or activates a key on the keyboard.
  122.  
  123. Mouse! Activate the mouse pointer.
  124.  
  125. Keyboard! Activate a key on the keyboard.
  126.  
  127. Specification: string    Lets you specify actions to animate. Specification contains a keystring or a mouse string depending on the value of Type.
  128.  
  129. string := AnsiString
  130.  
  131. Syntax
  132.  
  133. (<Value> string)
  134.  
  135. Description
  136.  
  137. Pass a variable address (DLL call in-line parameter and OLE type casting function). See DLLCall and OLE Automation.
  138.  
  139. Parameter
  140.  
  141. <Value> string
  142.  
  143. numeric := AppActivate
  144.  
  145. Example
  146.  
  147. Syntax
  148.  
  149. (Window: numeric or string; [State: enumeration])
  150.  
  151. Description
  152.  
  153. Activate and display a window, using the window title or the window handle. AppActivate returns the window handle, or use AppLocate to get the window handle.
  154.  
  155. Example
  156.  
  157. hWnd = AppLocate("Calculator")
  158.  
  159. If(hWnd) // if hWnd not equal to 0
  160.  
  161. AppActivate(Window:hWnd)
  162.  
  163. Else
  164.  
  165. Quit
  166.  
  167. EndIf
  168.  
  169. Return Value
  170.  
  171. Window handle.
  172.  
  173. Parameters
  174.  
  175. Window: numeric or string    A window handle or title. Titles must match a window title exactly unless you use an asterisk as a wildcard character. Titles are case sensitive. Use AppLocate to get the window handle.
  176.  
  177. State: enumeration (optional)    Set the Window to this state. If missing, no new state is set, and, if minimized, the window is restored. See AppExecute for a description of possible enumerations.
  178.  
  179. boolean := AppClose
  180.  
  181. Example
  182.  
  183. Syntax
  184.  
  185. (Window: numeric or string)
  186.  
  187. Description
  188.  
  189. Close an application by its title or window handle.
  190.  
  191. Return Value
  192.  
  193. True if successful, False if not.
  194.  
  195. Parameters
  196.  
  197. Window: numeric or string    A title or window handle. Titles must match window titles exactly unless you use an asterisk as a wildcard character. Titles are case sensitive. Use AppLocate to get the window handle.
  198.  
  199. enumeration := AppExecute
  200.  
  201. Example
  202.  
  203. Syntax
  204.  
  205. (CommandLine: filename; [State: enumeration])
  206.  
  207. Description
  208.  
  209. Start an application and specify how its window is displayed. This command now accepts application command lines containing spaces in the program filename.
  210.  
  211. Return Value
  212.  
  213. Application handle (unique number) if the application is successfully started, The return value is now an enumeration. If treated as a numeric value, all return values less than 33 are considered errors. Success! has been defined with a value of 33, so any value less than Success! is an error. The following enumerations have been defined for the most common return values. As a matter of clarification, if the return value is >=33, the function was successful. 
  214.  
  215. Success! this is the lowest of all successful return values. 
  216.  
  217. AccessDenied! The operating system denied access to the file.
  218.  
  219. BadFileFormat! The .exe file is invalid.
  220.  
  221. DDEBusy! The DDE transaction could not be completed because other DDE transactions were being processed.
  222.  
  223. DDETFailed! DDE transaction failed.
  224.  
  225. DDETimeout! DDE transaction could not be completed because the request timed out
  226.  
  227. FileNotFound! 
  228.  
  229. InvalidFileAssocation! File name association is incomplete or invalid.
  230.  
  231. NoFileAssociation! There is no application associated with the given file name extension.
  232.  
  233. OutOfMemory!
  234.  
  235. OutOfResources!
  236.  
  237. PathNotFound!
  238.  
  239. SharingError!
  240.  
  241. Check error values with code similar to the following:
  242.  
  243. vError := AppExecute (String; Enumeration)
  244.  
  245. Switch(vError)
  246.  
  247. CaseOF 0: ...statement block...
  248.  
  249. CaseOF 2: ...statement block...
  250.  
  251. EndSwitch
  252.  
  253. Parameters
  254.  
  255. CommandLine: filename    Path and filename of an application. If parameters are also being passed to the application in the command line inserter, then the filename of the application must be enclosed in double quote marks so that the beginning and end of the filename can be determined. If no parameters are being passed, no quote marks are required.
  256.  
  257. State: enumeration (optional)    Specifies how an application's window is displayed. If missing, CurrentState! is used.
  258.  
  259. Hide! Hide the window. AppLocate and DDEInitiate return the window handle of a hidden window. DDEExecute sends a command string to a hidden window. AppActivate activates a hidden window. Accelerator keys choose a hidden window's menu options.
  260.  
  261. Normal! Show the window at normal size.
  262.  
  263. Maximize! Maximize the window to full screen size and activate it.
  264.  
  265. Minimize! Minimize the window to an icon and activate it.
  266.  
  267. MinimizeNoActivate! Minimize the window to an icon. The active window remains active.
  268.  
  269. MinimizeActivateTopLevel! Minimize the window and activate the next window.
  270.  
  271. CurrentState! Activate and show the window in its current size and position.
  272.  
  273. CurrentStateNoActivate! Display the window in its current state. The active window remains active.
  274.  
  275. RecentStateNoActivate! Display the window in its most recent size and position. The active window remains active.
  276.  
  277. Restore! Activate and display the window, restoring the original size.
  278.  
  279. Default! The default state specified by the application.
  280.  
  281. Application
  282.  
  283. Example
  284.  
  285. Syntax
  286.  
  287. (<ProductPrefix> identifier; <ApplicationName> string; <Default> enumeration; <Language> string)
  288.  
  289. Description
  290.  
  291. Identify, for the compiler, an application to use in a macro.
  292.  
  293. Application is a non-executable statement that can occur anywhere in a macro, but it must precede product commands to the application it identifies.
  294.  
  295. Applications used in the macro automatically start unless they are already active. The user cannot terminate an application used in a macro until the macro ends.
  296.  
  297. Parameters
  298.  
  299. <ProductPrefix> identifier    A word identifier that begins with a letter. Characters after the first can be letters or numbers. ProductPrefix directs product commands to non-default applications. It is also used in NewDefault and EndApp statements. Use a period to attach ProductPrefix to a product command. If WordPerfect is the application and WP is the product prefix, WP.AboutDlg is a valid command statement. A recorded macro specifies the product name as the product prefix.
  300.  
  301. <ApplicationName> string    The name of an application. For example: "WordPerfect" for WordPerfect, "QuattroPro" for Quattro Pro, and "Presentations" for Corel Presentations
  302.  
  303. <Default> enumeration (optional)    An enumeration that identifies the default application. If not specified, ApplicationName is not the default.
  304.  
  305. Product commands to the default application do not require a product prefix. Default! Specifies ApplicationName as the default.
  306.  
  307. <Language> string (optional)    The application's language code. For example, "EN" is the language code for all English forms. If not specified, the command uses the language of the current macro system.
  308.  
  309. numeric := AppLocate
  310.  
  311. Example
  312.  
  313. Syntax
  314.  
  315. (WindowTitle: string)
  316.  
  317. Description
  318.  
  319. Return a window handle.
  320.  
  321. AppLocate compares a name to the title bar text of all open windows. If a match is found, the window handle of the matching window is returned. If the search criteria matches more than one window, the window handle of the most recently opened window is returned. If no match is found, zero is returned.
  322.  
  323. You can use an asterisk (*) as a wildcard character at any position in the AppLocate parameter. If the parameter contains only an asterisk, AppLocate returns the window handle of the window in the foreground.
  324.  
  325. Return Value
  326.  
  327. The window handle of the window found in the search, or 0 if no window is found.
  328.  
  329. Parameters
  330.  
  331. WindowTitle: string    A window title. This parameter must match the window title exactly unless you use an asterisk as a wildcard character. Titles are case sensitive.
  332.  
  333. numeric := AppShow
  334.  
  335. Example
  336.  
  337. Syntax
  338.  
  339. (Window: numeric or string; [State: enumeration])
  340.  
  341. Description
  342.  
  343. Specify an application's display state. Identify the application by title or window handle.
  344.  
  345. Return Value
  346.  
  347. Window handle.
  348.  
  349. Parameters
  350.  
  351. Window: numeric or string    A title or window handle. Titles must match window titles exactly unless you use an asterisk as a wildcard character. Titles are case sensitive. Use AppLocate to get the window handle.
  352.  
  353. State: enumeration (optional)    Display states. If missing, CurrentState! is used.
  354.  
  355. Hide! Hide the window. AppLocate and DDEInitiate return the window handle of a hidden window. DDEExecute sends a command string to a hidden window. AppActivate activates a hidden window. Accelerator keys choose a hidden window's menu options.
  356.  
  357. Normal! Show the window at normal size.
  358.  
  359. Maximize! Maximize the window to full screen size and activate it.
  360.  
  361. Minimize! Minimize the window to an icon and activate it.
  362.  
  363. MinimizeNoActivate! Minimize the window to an icon. The active window remains active.
  364.  
  365. MinimizeActivateTopLevel! Minimize the window and activate the next window.
  366.  
  367. CurrentState! Activate and show the window in its current size and position.
  368.  
  369. CurrentStateNoActivate! Display the window in its current state. The active window remains active.
  370.  
  371. RecentStateNoActivate! Display the window in its most recent size and position. The active window remains active.
  372.  
  373. Restore! Activate and display the window, restoring the original size.
  374.  
  375. Default! The default state specified by the application.
  376.  
  377.  
  378.  
  379. any := array
  380.  
  381. Syntax
  382.  
  383. [{<index> numeric}]
  384.  
  385. Description
  386.  
  387. Operator.
  388.  
  389. Return Value
  390.  
  391. Return the specified element of an array.
  392.  
  393. numeric := array
  394.  
  395. Syntax
  396.  
  397. [0]
  398.  
  399. Description
  400.  
  401. Operator. Specify zero as the index regardless of the number of dimensions.
  402.  
  403. The same value is returned by the command vElements := Dimensions (array[ ]; 0). See Dimensions.
  404.  
  405. Example
  406.  
  407. Declare Array[3; 5; 6]
  408.  
  409. vElements := Array[0]
  410.  
  411. Result: vElements = 90
  412.  
  413. Return Value
  414.  
  415. The number of elements in an array variable.
  416.  
  417. numeric := asin
  418.  
  419. Syntax
  420.  
  421. (Value: numeric)
  422.  
  423. Description
  424.  
  425. Get an angle in radians for a specified sine. This is called the arc, or inverse sine.
  426.  
  427. Return Value
  428.  
  429. Angle in radians.
  430.  
  431. Parameters
  432.  
  433. Value: numeric    Sine.
  434.  
  435. numeric := asinh
  436.  
  437. Syntax
  438.  
  439. (Value: numeric)
  440.  
  441. Description
  442.  
  443. Get an angle in radians for a specified hyperbolic sine. This is called the arc, or inverse hyperbolic sine.
  444.  
  445. Return Value
  446.  
  447. Angle in radians.
  448.  
  449. Parameters
  450.  
  451. Value: numeric    Hyperbolic sine.
  452.  
  453. Assert
  454.  
  455. Example
  456.  
  457. Syntax
  458.  
  459. (Condition: enumeration or numeric)
  460.  
  461. Description
  462.  
  463. Create a Cancel, Error, or Not Found condition, or user-defined condition. See OnCondition.
  464.  
  465. A Cancel, Error, Not Found, or user condition stops a macro unless preceded by OnCancel, OnError, OnNotFound, or OnCondition, which direct macro execution to a specified Label. Assert has no effect when preceded by Cancel(Off!), Error(Off!), NotFound(Off!), or OnCondition(<Condition>; Off!).
  466.  
  467. An error value is assigned to variable ErrorNumber when one of the conditions occur. The values are:
  468.  
  469. ErrorNumber.CancelConditionAsserted!
  470.  
  471. ErrorNumber.ErrorConditionAsserted!
  472.  
  473. ErrorNumber.NotFoundConditionAsserted!
  474.  
  475. ErrorNumber.UserDefinedCondition!
  476.  
  477. You cannot assign a value to ErrorNumber.
  478.  
  479. Use code similar to the following to check all conditions with one subroutine.
  480.  
  481. OnError(Condition)
  482.  
  483. OnCancel(Condition)
  484.  
  485. OnNotFound(Condition)
  486.  
  487. ...other statements...
  488.  
  489. Label(Condition)
  490.  
  491. Switch(ErrorNumber)
  492.  
  493. CaseOF ErrorNumber.ErrorConditionAsserted!: ...statement block...
  494.  
  495. CaseOF ErrorNumber.CancelConditionAsserted!: ...statement block...
  496.  
  497. CaseOF ErrorNumber.NotFoundConditionAsserted!: ...statement block...
  498.  
  499. EndSwitch
  500.  
  501. Parameters
  502.  
  503. Condition: enumeration or numeric    A condition to assert.
  504.  
  505. CancelCondition! Stop a macro unless preceded by OnCancel.
  506.  
  507. ErrorCondition! Stop a macro unless preceded by OnError.
  508.  
  509. ExitCondition! Stop a macro as if a Quit command was encountered.
  510.  
  511. NotFoundCondition! Stop a macro unless preceded by OnNotFound.
  512.  
  513. UserDefinedCondition! Stop a macro on a user-defined condition, unless preceded by OnCondition. For example, if you define condition 101, Assert(101) or Assert(UserDefinedCondition! + 1) directs macro execution to the Label identified by OnCondition.
  514.  
  515. VarErrChkCondition! Stop a macro unless preceded by OnVarErrChk.
  516.  
  517. See OnCondition for a description of how to specify a user-defined condition number.
  518.  
  519. numeric := atan
  520.  
  521. Syntax
  522.  
  523. (Value: numeric)
  524.  
  525. Description
  526.  
  527. Get the angle in radians for a specified tangent. This is called the arc, or inverse tangent.
  528.  
  529. Return Value
  530.  
  531. Angle in radians.
  532.  
  533. Parameters
  534.  
  535. Value: numeric    Tangent.
  536.  
  537. numeric := atan2
  538.  
  539. Syntax
  540.  
  541. (Value: numeric; Value2: numeric)
  542.  
  543. Description
  544.  
  545. Get the angle in radians for a specified tangent that is Value / Value2. This is called the arc, or inverse tangent.
  546.  
  547. Return Value
  548.  
  549. Angle in radians.
  550.  
  551. Parameters
  552.  
  553. Value: numeric    Numerator of a tangent.
  554.  
  555. Value2: numeric    Denominator of a tangent.
  556.  
  557. numeric := atanh
  558.  
  559. Syntax
  560.  
  561. (Value: numeric)
  562.  
  563. Description
  564.  
  565. Get an angle in radians for a specified hyperbolic tangent. This is called the arc, or inverse hyperbolic tangent.
  566.  
  567. Return Value
  568.  
  569. Angle in radians.
  570.  
  571. Parameters
  572.  
  573. Value: numeric    Hyperbolic tangent.
  574.  
  575. numeric := Average
  576.  
  577. Syntax
  578.  
  579. ({Value: numeric})
  580.  
  581. Description
  582.  
  583. Get the average of a list of values.
  584.  
  585. Example
  586.  
  587. vAvg := Average (2; 4; 6; 8)
  588.  
  589. Result: vAvg = 5.0
  590.  
  591. Return Value
  592.  
  593. Average of a list of values.
  594.  
  595. Parameters
  596.  
  597. Value: numeric    Use a semicolon to separate values.
  598.  
  599.  
  600.  
  601.  
  602.  
  603.  
  604.