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

  1. Label
  2.  
  3. Example
  4.  
  5. Syntax
  6.  
  7. (<Label> label)
  8.  
  9. Description
  10.  
  11. Identify a macro subroutine, which generally includes a statement block followed by Return or Quit.
  12.  
  13. Label is used by Call, Case, Case Call, Go, OnCancel, OnCancel Call, OnError, OnError Call, OnNotFound, OnNotFound Call, and OnDDEAdvise Call.
  14.  
  15. Parameters
  16.  
  17. <Label> label    The name of a label. It begins with a letter and consists of one or more letters or numbers.
  18.  
  19. numeric := lcm
  20.  
  21. Syntax
  22.  
  23. ({Value: numeric})
  24.  
  25. Description
  26.  
  27. Get the least common multiple of a list of values.
  28.  
  29. The least common multiple is the smallest number that all specified values are multiples of. If the values have no common multiple, 1 is returned.
  30.  
  31. Example
  32.  
  33. x = lcm (2;6;9)
  34.  
  35. MessageBox (Caption:"Example"; Message:" lcm (2;6;9) = "+ x; Style:OK!)
  36.  
  37. Return Value
  38.  
  39. Least common multiple of a list of values.
  40.  
  41. Parameters
  42.  
  43. Value: numeric    The list of values. Multiple values are separated by a semicolon.
  44.  
  45. numeric := lg
  46.  
  47. Syntax
  48.  
  49. (Value: numeric)
  50.  
  51. Description
  52.  
  53. Get the base 2 binary logarithm of a value.
  54.  
  55. Example
  56.  
  57. x = lg (4)
  58.  
  59. MessageBox (Caption:"Example"; Message:" lg (4) = "+ x; Style:OK!)
  60.  
  61. Return Value
  62.  
  63. Base 2 binary logarithm of a value.
  64.  
  65. Parameters
  66.  
  67. Value: numeric    Return the binary logarithm of this value.
  68.  
  69. boolean := any LIKE any
  70.  
  71. Syntax
  72.  
  73. Operator. Precedence level 6. Performs an equality comparison.
  74.  
  75. Example
  76.  
  77. bool = 2+3 LIKE 3+2
  78.  
  79. MessageBox (Caption:"Example"; Message:" 2+3 LIKE 3+2 = "+ bool; Style:OK!)
  80.  
  81. Return Value
  82.  
  83. True if both operands are the same, False if not. Strings are not case sensitive.
  84.  
  85. numeric := ln
  86.  
  87. Syntax
  88.  
  89. (Value: numeric)
  90.  
  91. Description
  92.  
  93. Get the base 'e' (natural or napierian) logarithm of a value.
  94.  
  95. Return Value
  96.  
  97. Base 'e' logarithm of a value.
  98.  
  99. Parameters
  100.  
  101. Value: numeric    Return the natural logarithm of this value.
  102.  
  103. Local
  104.  
  105. Example
  106.  
  107. Syntax
  108.  
  109. ({<VariableName> variable := <Value> any})
  110.  
  111. Description
  112.  
  113. Declare local variables and arrays, and assign them to the local variable table.
  114.  
  115. Variables are Local by default. The Local variable table is removed from memory when the current routine in the macro ends.
  116.  
  117. Parameters
  118.  
  119. <VariableName> variable    One or more user-defined variables separated by a semicolon. Variables must begin with a letter and can include any other combination of letters or numbers. Separate multiple variables with a semicolon. Parentheses are optional. For example,
  120.  
  121. Local VariableName; VariableName
  122.  
  123. Local(VariableName; VariableName)
  124.  
  125. are both valid statements. The next example declares local arrays with 10 elements and 20 elements:
  126.  
  127. Local FirstArray[10]; NextArray[20]
  128.  
  129. The last example simultaneously declares a variable and assigns a value:
  130.  
  131. Local x := 2
  132.  
  133. or...
  134.  
  135. Local x
  136.  
  137. x := 2
  138.  
  139. If you create two variables with the same name (for example, Global x and Local x), the following statement
  140.  
  141. Local x := 5
  142.  
  143. specifies which variable x is assigned the value 5.
  144.  
  145. <Value> any (optional)    The value assigned to <Variable> at time of declaration. For example, Local vTest = 20. vTest equals 20 at run time. If missing, the value of <Variable> is undefined.
  146.  
  147. numeric := log
  148.  
  149. Syntax
  150.  
  151. (Value: numeric)
  152.  
  153. Description
  154.  
  155. Get the base 10 (common) logarithm of a value.
  156.  
  157. Return Value
  158.  
  159. Base 10 logarithm of a value.
  160.  
  161. Parameters
  162.  
  163. Value: numeric    Return the common logarithm of this value.
  164.  
  165. numeric := logn
  166.  
  167. Syntax
  168.  
  169. (Value: numeric; Base: numeric)
  170.  
  171. Description
  172.  
  173. Get the base n logarithm of a value.
  174.  
  175. Return Value
  176.  
  177. Base n logarithm of a value.
  178.  
  179. Parameters
  180.  
  181. Value: numeric    Return the logarithm of this value.
  182.  
  183. Base: numeric    The base of the logarithm to return.
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.