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

  1. Beep
  2.  
  3. Example
  4.  
  5. Syntax
  6.  
  7. ([BeepType: enumeration])
  8.  
  9. Description
  10.  
  11. Cause a computer speaker or installed sound board to beep.
  12.  
  13. Beep is commonly used with warning messages, or to signal when a macro pauses or finishes a task.
  14.  
  15. Parameters
  16.  
  17. BeepType: enumeration (optional)    Type of beep to produce. Supported beep types correspond to the types listed in the Windows Sounds Control Panel. If missing, Default! is used.
  18.  
  19. Default! System default sound ("Default" in Control Panel).
  20.  
  21. Question! System question sound ("Question" in Control Panel).
  22.  
  23. Asterisk! System asterisk sound ("Asterisk" in Control Panel).
  24.  
  25. Exclamation! System exclamation sound ("Exclamation" in Control Panel).
  26.  
  27. CriticalStop! System stop sound ("CriticalStop" in Control Panel).
  28.  
  29. Standard! Uses computer's built in speaker sound.
  30.  
  31. raw binary data := BinaryPack
  32.  
  33. Example
  34.  
  35. Syntax
  36.  
  37. (Value: any; [TotalSize: enumeration or numeric]; {[Offset: enumeration or numeric]; [Type: enumeration]; [Size: enumeration or numeric]})
  38.  
  39. Description
  40.  
  41. Pack data into a raw binary data form.
  42.  
  43. Return Value
  44.  
  45. Raw binary data returned from BinaryPack.
  46.  
  47. Parameters
  48.  
  49. The Offset, Type, and Size parameters form an optional repeating group. Currently, only one group is permitted. If one parameter is used, all must be used. Parameters specify the attributes of the value to be packed into the raw binary data value. Multiple groups may be specified, each describing one value to be packed.
  50.  
  51. If the Type parameter is Word!, DWord!, or Real!, the Size parameter must be Auto!, or it must agree with the default size for that type (shown in [ ] above).
  52.  
  53. If Type is Integer! or Boolean!, Size must be Auto!, or it must be 1, 2, or 4.
  54.  
  55. If Type is WPString! or AnsiString!, Auto! uses the full length of the string plus 1. If Size is larger than the length, the excess data is zero filled. If Size is smaller, only Size (number of) characters is used.
  56.  
  57. If Type is HexString!, each two-character pair is made into a byte. If Size is shorter, only Size (number of) bytes are produced. If Size is longer, the excess data is zero filled. If Type is Auto!, the full length of the string is used.
  58.  
  59. Value: any    The value to be packed.
  60.  
  61. TotalSize: enumeration or numeric (optional)    The total size of the raw binary data value to produce. This parameter may be specified as a numeric value, or as the enumeration value Auto!
  62.  
  63. If missing or Auto!, the raw binary data will be the size of all its parts combined.
  64.  
  65. Offset: enumeration or numeric (optional)    The beginning offset (starting at 0) within the raw binary data value to pack Value into. This is the offset of the first byte of the data value. This parameter may be specified as a numeric value, or as the enumeration Auto!. If missing, or specified as Auto!, the next available offset (starting at 0) is used. Any gaps in the final raw binary data value may contain undefined data.
  66.  
  67. Type: enumeration (optional)    The type that Value is packed into. The default size for the Size parameter is shown in [ ]. If missing, Auto! is used.
  68.  
  69. Auto! Actual data type of Value is used.
  70.  
  71. Detect! Actual data type of Value is used.
  72.  
  73. Byte! Pack Value into bytes (1..n bytes [1]).
  74.  
  75. Word! Pack Value into a word (2 bytes [2]).
  76.  
  77. DWord! Pack Value into a double word (4 bytes [4]).
  78.  
  79. Real! Pack Value into a 'C' double (8 bytes [8]).
  80.  
  81. Integer! Pack Value into a 'C' long (1, 2, 4 bytes [4]).
  82.  
  83. Boolean! Pack Value into a Windows BOOL (1, 2, 4 bytes [4]).
  84.  
  85. WPString! Pack Value into a WordPerfect string (2-byte characters [length+1]).
  86.  
  87. AnsiString! Pack Value into an ANSI string (1-byte characters [length+1]).
  88.  
  89. HexString! Pack Value into direct binary data from a string of hex characters (1 byte characters [length]).
  90.  
  91. Size: enumeration or numeric (optional)    The size, in bytes, of the raw binary data of Value. This parameter may be specified as a numeric value, or as the enumeration value Auto!. If missing, or specified as Auto!, the default size of Type is used (shown above in [ ]).
  92.  
  93. Note
  94.  
  95.   In previous versions of PerfectScript, when there was no data to be returned, a single element array with either a numeric value of 0 or a string value of "" was returned. Now, when there is no data to be returned, an empty array will be returned.
  96.   
  97. any := BinaryUnPack
  98.  
  99. Example
  100.  
  101. Syntax
  102.  
  103. (Value: raw binary data; {Offset: enumeration or numeric; Type: enumeration; Size: enumeration or numeric})
  104.  
  105. Description
  106.  
  107. Unpack data from a raw binary data form.
  108.  
  109. Return Value
  110.  
  111. Unpacked data returned by BinaryUnPack.
  112.  
  113. Parameters
  114.  
  115. The Offset, Type, and Size parameters form a repeating group. At least one group must be specified (only one group is permitted currently). If one parameter is used, all must be used. Parameters specify the attributes of the values to be unpacked from the raw binary data value. Multiple groups may be specified, each describing one value to be unpacked.
  116.  
  117. If the Type parameter is Word!, DWord!, or Real!, the Size parameter must be Auto!, or it must agree with the default size for that type (shown in [ ] above).
  118.  
  119. If Type is Integer! or Boolean!, Size must be Auto!, or it must be 1, 2, or 4.
  120.  
  121. If Type is WPString! or AnsiString!, Auto! uses the full length of the string plus 1. If Size is larger than the length, the excess data is zero filled. If Size is smaller, only Size (number of) characters are used.
  122.  
  123. If Type is HexString!, each two-character pair is made into a byte. If size is shorter, only Size (number of) bytes are produced. If Size is longer, the excess data is zero filled. If Type is Auto!, the full length of the string is used.
  124.  
  125. Value: raw binary data    The raw binary value to unpack.
  126.  
  127. Offset: enumeration or numeric    The beginning offset (starting at 0) of the value within the raw binary data to unpack. This is the offset of the first byte of the data value. If specified as Auto!, the next available offset (starting at 0) is used.
  128.  
  129. Type: enumeration    Type of value to unpack from the raw binary data. The default size for Size parameter is shown in [ ].
  130.  
  131. Byte! Unpack the value from a byte (1 byte [1]).
  132.  
  133. Word! Unpack the value from a word (2 bytes [2]).
  134.  
  135. DWord! Unpack the value from a double word (4 bytes [4]).
  136.  
  137. Real! Unpack the value from a 'C' double (8 bytes [8]).
  138.  
  139. Integer! Unpack the value from a 'C' long (4 bytes [1, 2, 4]).
  140.  
  141. Boolean! Unpack the value from a Windows BOOL (1, 2, 4 bytes [4]).
  142.  
  143. WPString! Unpack the value from a WordPerfect string (2-byte characters [to first NULL character]).
  144.  
  145. AnsiString! Unpack the value from an ANSI string (1-byte characters [to first NULL character]).
  146.  
  147. HexString! Unpack the value forming a string of hex characters (1 byte [to length specified]).
  148.  
  149. Size: enumeration or numeric    The size, in bytes, that Value is unpacked from. If specified as Auto!, the default size of the Type is used (shown above in [ ]).
  150.  
  151. boolean := Boolean
  152.  
  153. Syntax
  154.  
  155. (<Value>: boolean)
  156.  
  157. Description
  158.  
  159. Lets you determine whether a condition is true or false. Use only in OLE Automation call in-line parameter function; pass value as BOOL.
  160.  
  161. Parameter
  162.  
  163. <Value>: boolean    0 The condition is false
  164.  
  165. 1 The condition is true
  166.  
  167. Break
  168.  
  169. Example
  170.  
  171. Description
  172.  
  173. End a loop, and direct macro execution to the first statement after the ending loop.
  174.  
  175. In a Switch statement, Break directs macro execution to the first statement after EndSwitch. Break bypasses the normal test expression of a loop or conditional statement. Statements after Break are ignored.
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.