home *** CD-ROM | disk | FTP | other *** search
/ PC World 2000 August / PCWorld_2000-08_cd.bin / Software / TemaCD / xbasic / xbpro.exe / xb / language.hlp < prev    next >
Text File  |  2000-01-15  |  15KB  |  261 lines

  1. '
  2. ' ######################  Max Reason
  3. ' #####  language  #####  copyright 1988-2000
  4. ' ######################  XBasic language reference helpfile
  5. '
  6. ' for Windows XBasic
  7. ' for Linux XBasic
  8. '
  9. '
  10. ' keyword         catagory     description
  11. ' =================================================================================
  12. ' ABS()           intrinsic    Absolute Value
  13. ' ACOS()          intrinsic    arc-cosine
  14. ' ACOSH()         intrinsic    arc-hyperbolic-cosine
  15. ' ATAN()          intrinsic    arc-tangent
  16. ' ATANH()         intrinsic    arc-hyperbolic-tangent
  17. ' ACSC()          intrinsic    arc-cosecant
  18. ' ACSCH()         intrinsic    arc-hyperbolic-cosecant
  19. ' ALL             auxiliary    In SELECT CASE, execute all matching cases
  20. ' AND             operator     Bitwise AND (integer only)
  21. ' ASC()           intrinsic    Numeric value of ASCII character in string
  22. ' ASEC()          intrinsic    arc-secant
  23. ' ASECH()         intrinsic    arc-hyperbolic-secant
  24. ' ASIN()          intrinsic    arc-sine
  25. ' ASINH()         intrinsic    arc-hyperbolic-sine
  26. ' ATAN()          intrinsic    arc-tangent
  27. ' ATANH()         intrinsic    arc-hyperbolic-tangent
  28. ' ATTACH          statement    Attach one array/subarray to another
  29. ' AUTO            statement    Declare variable to be AUTO scope
  30. ' AUTOS           auxiliary    CLEAR AUTOS initializes AUTO and AUTOX variables
  31. ' AUTOX           statement    Declare variable to be AUTOX scope
  32. ' BIN$()          intrinsic    Binary format string of integer  (010010111...)
  33. ' BINB$()         intrinsic    Binary format string of integer  (0b010010111...)
  34. ' BITFIELD()      intrinsic    Define bitfield constant or variable
  35. ' CASE            statement    In SELECT CASE; test cases, execute block on match
  36. ' CFUNCTION       statement    Declare/Define C function or C callable function
  37. ' CHR$()          intrinsic    Convert ASCII numeric value to 1 byte string
  38. ' CJUST$()        intrinsic    Center justify string in field of spaces
  39. ' CLEAR           statement    CLEAR AUTOS initializes AUTO and AUTOX variables
  40. ' CLOSE()         intrinsic    Close disk, console, or communications file
  41. ' CLR()           intrinsic    Clear bit field in integer
  42. ' COS()           intrinsic    cosine
  43. ' COSH()          intrinsic    hyperbolic-cosine
  44. ' COT()           intrinsic    cotangent
  45. ' COTH()          intrinsic    hyperbolic-cotangent
  46. ' CSC()           intrinsic    cosecant
  47. ' CSCH()          intrinsic    hyperbolic-cosecant
  48. ' CSIZE()         intrinsic    Count number of bytes before 1st zero byte
  49. ' CSIZE$()        intrinsic    Clip string off at 1st null character
  50. ' CSTRING$()      intrinsic    Convert C string into native string
  51. ' DCOMPLEX        statement    Declare variables to be type DCOMPLEX
  52. ' DEC             statement    Decrement numeric variable
  53. ' DECLARE         statement    Declare function prototype
  54. ' DHIGH()         intrinsic    Extract high 32-bits from DOUBLE
  55. ' DIM             statement    Dimension an array and zero contents
  56. ' DLOW()          intrinsic    Extract low 32-bits from DOUBLE
  57. ' DMAKE()         intrinsic    Make DOUBLE from two 32-bit integers
  58. ' DO              statement    Initiate a DO...LOOP loop block
  59. ' DOUBLE          statement    Declare variables to be type DOUBLE
  60. ' DOUBLE()        intrinsic    Convert numeric or string to type DOUBLE
  61. ' DOUBLEAT()      intrinsic    Write DOUBLE value into specified memory address
  62. ' DOUBLEAT()      intrinsic    Read DOUBLE value from specified memory address
  63. ' ELSE            statement    Optional in IF...THEN...ELSE...ENDIF blocks
  64. ' END             statement    END program, function, or block structure
  65. ' ENDIF           statement    End of IF...THEN...ELSE...ENDIF block
  66. ' EOF()           intrinsic    Is file pointer beyond end of file
  67. ' ERROR()         intrinsic    Return ##XERROR - optionally set a new value
  68. ' ERROR$()        intrinsic    Convert error number into an error string
  69. ' EXIT            statement    EXIT function or block structure
  70. ' EXP()           intrinsic    exponential - e to the x power
  71. ' EXP10()         intrinsic    exponential - 10 to the x power
  72. ' EXTERNAL        statement    Declare variables to be EXTERNAL scope
  73. ' EXTS()          intrinsic    Extract signed bit field
  74. ' EXTU()          intrinsic    Extract unsigned bit field
  75. ' FALSE           auxiliary    Optional in SELECT CASE statements
  76. ' FIX()           intrinsic    Integerize with round towards zero
  77. ' FOR             statement    Initiate a FOR...NEXT loop block
  78. ' FORMAT$()       intrinsic    Create formatted string
  79. ' FUNCADDR        statement    Declare variable to be FUNCADDR type
  80. ' FUNCADDR()      intrinsic    Convert to type FUNCADDR
  81. ' FUNCADDRESS()   intrinsic    Get address of function
  82. ' FUNCTION        statement    Declare/Define a function
  83. '  
  84. ' GHIGH()         intrinsic    Extract high 32-bits from GIANT
  85. ' GIANT           statement    Declare variable to be type GIANT
  86. ' GIANT()         intrinsic    Convert to type GIANT
  87. ' GIANTAT()       intrinsic    Write GIANT value into specified memory address
  88. ' GIANTAT()       intrinsic    Read GIANT value from specified memory address
  89. ' GLOW()          intrinsic    Extract low 32-bits from GIANT
  90. ' GMAKE()         intrinsic    Create GIANT from two 32-bit integers
  91. ' GOADDR          statement    Declare variable to be type GOADDR
  92. ' GOADDR()        intrinsic    Convert to type GOADDR
  93. ' GOADDRESS()     intrinsic    Get address of GOTO label
  94. ' GOSUB           statement    Call a local subroutine
  95. ' GOTO            statement    Jump to a local label
  96. ' HEX$()          intrinsic    Create hexadecimal string form of integer
  97. ' HEXX$()         intrinsic    HEX$ with "0x" prefix
  98. ' HIGH0()         intrinsic    Find bit number of most significant 0 bit
  99. ' HIGH1()         intrinsic    Find bit number of most significant 1 bit
  100. ' IF              statement    IF TRUE test in IF...ENDIF block
  101. ' IFF             statement    IF FALSE test in IF...ENDIF block
  102. ' IFT             statement    IF TRUE test in IF...ENDIF block
  103. ' IFZ             statement    IF ZERO test in IF...ENDIF block
  104. ' IMPORT          statement    Read and process a .DEC delaration file
  105. ' INC             statement    Increment a variable
  106. ' INCHR()         intrinsic    Find first search-set character in string
  107. ' INCHRI()        intrinsic    Case insensitive INCHR()
  108. ' INFILE$()       intrinsic    Input string from file
  109. ' INLINE$()       intrinsic    Input string from main console
  110. ' INSTR()         intrinsic    Find first substring in string
  111. ' INSTRI()        intrinsic    Case insensitive INSTR()
  112. ' INT()           intrinsic    Integer part of number
  113. ' INTERNAL        statement    Declare function to have INTERNAL scope
  114. ' LCASE$()        intrinsic    Convert constents of string to lower case
  115. ' LCLIP$()        intrinsic    Clip n bytes from left end of string
  116. ' LEFT$()         intrinsic    Leftmost n characters of string
  117. ' LEN()           intrinsic    # of elements in string
  118. ' LIBRARY         statement    Compile this file as a function library
  119. ' LIBRARY()       intrinsic    Is program compiled as a function library
  120. ' LJUST$()        intrinsic    Left justify string in field of spaces
  121. ' LOF()           intrinsic    Length of file in bytes
  122. ' LOG()           intrinsic    logarithm - base e
  123. ' LOG10()         intrinsic    logarithm - base 10
  124. ' LOOP            statement    End DO...LOOP block
  125. ' LTRIM$()        intrinsic    Trim spaces and tabs from left of string
  126. ' MAKE()          intrinsic    Make a bit-field
  127. ' MAX()           intrinsic    Return maximum of two arguments  (larger)
  128. ' MID$()          intrinsic    Extract arbitrary part of string
  129. ' MIN()           intrinsic    Return minimum of two arguments  (smaller)
  130. ' MOD             operator     Arithmetic MODULUS operator
  131. ' NEXT            statement    End FOR...NEXT loop
  132. ' NOT             operator     Bitwise NOT operator (invert all bits)
  133. ' NULL$()         intrinsic    Create string of n null characters
  134. ' OCT$()          intrinsic    Octal string from integer (1234567012...)
  135. ' OCTO$()         intrinsic    Octal string from integer (0o1234567012...)
  136. ' OPEN()          intrinsic    Open a disk, console, or communications file
  137. ' OR              operator     Bitwise OR operator
  138. ' POF()           intrinsic    Position of file pointer
  139. ' POWER()         intrinsic    Raise x to y power - same as x ** y
  140. ' PRINT           statement    Print to console, disk, or communications file
  141. ' PROGRAM         auxiliary    END PROGRAM is optional after last function
  142. ' PROGRAM         statement    Give the program a name
  143. ' PROGRAM$()      intrinsic    Get the program name given by PROGRAM statement
  144. ' QUIT()          intrinsic    Quit executing the program (terminate program)
  145. ' RCLIP$()        intrinsic    Clip n bytes from right end of string
  146. ' READ            statement    Read from file into variables
  147. ' REDIM           statement    Redimension an array, preserve contents
  148. ' RETURN          statement    Return from function  (not from GOSUB)
  149. ' RIGHT$()        intrinsic    Extract rightmost n characters of string
  150. ' RINCHR()        intrinsic    Same as INCHR except reverse search direction
  151. ' RINCHRI()       intrinsic    Same as RINCHR() except case insensitive
  152. ' RINSTR()        intrinsic    Same as INSTR() except reverse search direction
  153. ' RINSTRI()       intrinsic    Same as RINSTR() except case insensitive
  154. ' RJUST$()        intrinsic    Right justify string in field of spaces
  155. ' ROTATER()       intrinsic    Rotate word right n bits
  156. ' RTRIM$()        intrinsic    Trim spaces and tabs from right end of string
  157. '  
  158. ' SBYTE           statement    Declare variables to be type SBYTE
  159. ' SBYTE()         intrinsic    Convert to type SBYTE
  160. ' SBYTEAT()       intrinsic    Write SBYTE value into specified memory address
  161. ' SBYTEAT()       intrinsic    Read SBYTE value from specified memory address
  162. ' SCOMPLEX        statement    Declare variables to be type SCOMPLEX
  163. ' SEC()           intrinsic    secant
  164. ' SECH()          intrinsic    hyperbolic-secant
  165. ' SEEK()          intrinsic    Set file pointer position
  166. ' SELECT          statement    Select from one of n alternatives
  167. ' SET()           intrinsic    Set specified range of bits = 1s
  168. ' SFUNCTION()     intrinsic    Declare or define a "system" function
  169. ' SGN()           intrinsic    Sign of number (-1, 0, +1)
  170. ' SHARED          statement    Declare variables to have SHARED scope
  171. ' SHELL()         intrinsic    Execute a command line string
  172. ' SIGN()          intrinsic    Sign of number (-1, +1)
  173. ' SIGNED$()       intrinsic    Convert to type STRING  (leading "-" or "+")
  174. ' SIN()           intrinsic    sine
  175. ' SINH()          intrinsic    hyperbolic-sine
  176. ' SINGLE          statement    Declare variables to be type SINGLE
  177. ' SINGLE()        intrinsic    Convert to type SINGLE
  178. ' SINGLEAT()      intrinsic    Write SINGLE value into specified memory address
  179. ' SINGLEAT()      intrinsic    Read SINGLE value from specified memory address
  180. ' SIZE()          intrinsic    Size of string or array in bytes
  181. ' SLONG           statement    Declare variables to be type SLONG
  182. ' SLONG()         intrinsic    Convert to type SLONG
  183. ' SLONGAT()       intrinsic    Write SLONG value into specified memory address
  184. ' SLONGAT()       intrinsic    Read SLONG value from specified memory address
  185. ' SMAKE()         intrinsic    Make a type SINGLE from a 32-bit integer value
  186. ' SPACE$()        intrinsic    Create a string of n space characters
  187. ' SQRT()          intrinsic    square-root
  188. ' SSHORT          statement    Declare variables to be type SSHORT
  189. ' SSHORT()        intrinsic    Convert to type SSHORT
  190. ' SSHORTAT()      intrinsic    Write SSHORT value into specified memory address
  191. ' SSHORTAT()      intrinsic    Read SSHORT value from specified memory address
  192. ' STATIC          statement    Declare variables to be STATIC scope
  193. ' STEP            auxiliary    Used in FOR.TO.STEP...NEXT blocks
  194. ' STOP            statement    Stop program execution here
  195. ' STR$()          intrinsic    Convert to type STRING (leading "-" or " ")
  196. ' STRING          statement    Declare variables to be type STRING
  197. ' STRING()        intrinsic    Convert to type STRING (leading "-" or "")
  198. ' STRING$()       intrinsic    Convert to type STRING (leading "-" or "")
  199. ' STUFF$()        intrinsic    Stuff one string into another
  200. ' SUB             statement    Begin a subroutine
  201. ' SUBADDR         statement    Declare variables to be type SUBADDR
  202. ' SUBADDR()       intrinsic    Convert to type SUBADDR
  203. ' SUBADDRESS()    intrinsic    Get address of subroutine
  204. ' SWAP            statement    Swap the values of the same type
  205. ' TAB()           intrinsic    Append spaces to PRINT string to get to column n
  206. ' TAN()           intrinsic    tangent
  207. ' TANH()          intrinsic    hyperbolic-tangent
  208. ' THEN            auxiliary    Used in IF...THEN...ELSE...ENDIF blocks
  209. ' TO              auxiliary    Used in FOR...NEXT blocks and ATTACH statements
  210. ' TRIM$()         intrinsic    Remove spaces and tabs from left & right of string
  211. ' TRUE            statement    Optional in SELECT CASE statements
  212. ' TYPE            statement    Declare/Define user-defined composite data type
  213. ' TYPE()          intrinsic    Return type number of variable, array, component
  214. ' UBOUND()        intrinsic    Upper bound of any dimension of an array
  215. ' UBYTE           statement    Declare variables to be type UBYTE
  216. ' UBYTE()         intrinsic    Convert variable to type UBYTE
  217. ' UBYTEAT()       intrinsic    Write UBYTE value into specified memory address
  218. ' UBYTEAT()       intrinsic    Read UBYTE value from specified memory address
  219. ' UCASE$()        intrinsic    Convert contents of string to upper case
  220. ' ULONG           statement    Declare variables to be type ULONG
  221. ' ULONG()         intrinsic    Convert variable to type ULONG
  222. ' ULONGAT()       intrinsic    Write ULONG value into specified memory address
  223. ' ULONGAT()       intrinsic    Read ULONG value from specified memory address
  224. ' UNION           statement    Declare/Define user-defined composite data type
  225. ' UNTIL           auxiliary    Used in DO and LOOP statements
  226. ' USHORT          statement    Declare variables to be type USHORT
  227. ' USHORT()        intrinsic    Convert variable to type USHORT
  228. ' USHORTAT()      intrinsic    Write USHORT value into specified memory address
  229. ' USHORTAT()      intrinsic    Read USHORT value from specified memory address
  230. ' VERSION         statement    Give a version number to the program
  231. ' VERSION$()      intrinsic    Get the version number string from VERSION statement
  232. ' VOID            statement    Declare that a function returns no value
  233. ' WHILE           auxiliary    Used in DO and LOOP statements
  234. ' WRITE           statement    Write variables to a file
  235. ' XLONG           statement    Declare variables to be type XLONG
  236. ' XLONG()         intrinsic    Convert variable to type XLONG
  237. ' XLONGAT()       intrinsic    Write XLONG value into memory at specified address
  238. ' XLONGAT()       intrinsic    Read XLONG value from memory at specified address
  239. ' XMAKE()         intrinsic    Retype to XLONG from any type (MSW if GIANT/DOUBLE)
  240. ' XOR             operator     Bitwise exclusive-OR operator
  241. '
  242.