home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / INFO / BASIC / EBASIC.ZIP / EBASIC.HLP < prev    next >
Encoding:
Text File  |  1987-01-11  |  11.4 KB  |  360 lines

  1. Invoking BASIC-E
  2. BASIC-E Statements
  3. BASIC-E Functions
  4. Differences between BASIC-E and CBASIC
  5. BASIC-E Error Messages
  6. CBASIC:  Compiler Error Messages
  7. CBASIC:  Run-Time Error Messages -- Warnings
  8. CBASIC:  Run-Time Error Messages -- Error Codes
  9. :Invoking BASIC-E
  10.  
  11.      BASIC-E is invoked by typing the following --
  12.  
  13.           EBASIC filename $o
  14.  
  15. wherσá 'filenameº i≤ thσ namσ oµ thσ sourcσ filσ 'filename.BASº t∩á bσ ì
  16. compiled and 'o' is one or more of the following options --
  17.  
  18.           A    List Productions (for compiler debugging); normally OFF
  19.           B    List only source statements with errors; normally OFF
  20.           C    Check syntax only; don't create .INT file; normally OFF
  21.           D    Convert lowercase to uppercase; normally ON
  22.           E    Generate line number code; normally OFF
  23.  
  24.      After compilation, the program may then be executed by --
  25.  
  26.           ERUN filename
  27.  
  28. where 'filename' is the name of the intermediate code file 'filename.INT'.
  29. :BASIC-E Statements
  30.  
  31.      The following statements are valid in BASIC-E --
  32.  
  33.           FOR       NEXT      FILE      GOTO      LET  
  34.           CLOSE     GOSUB     INPUT     ON        PRINT
  35.           READ      RESTORE   RETURN    OUT       RANDOMIZE
  36.           STOP      DATA      DEF       DIM       END
  37.           IF        REM       ELSE      THEN
  38.  
  39. :BASIC-E Functions
  40.  
  41.      The following built-in functions are valid in BASIC-E --
  42.  
  43.           ABS       ASC       ATN       CHR$      COS
  44.           COSH      FRE       INP       INT       LEFT$
  45.           LEN       LOG       MID$      POS       RIGHT$
  46.           RND       SGN       SIN       SINH      STR$
  47.           SQR       TAB       TAN       VAL       EXP
  48.  
  49. :Differences between BASIC-E and CBASIC
  50.  
  51.      Thσá followinτá feature≤ arσ no⌠ availablσ iε BASIC-E¼á bu⌠á the∙á arσ ì
  52. available in CBASIC --
  53.  
  54.           1.  PEEK or POKE
  55.           2.  PRINT USING
  56. è          3.  CALL to machine code programs
  57.           4.  LPRINT
  58.  
  59. :BASIC-E Error Messages
  60.  
  61.      Sincσá BASIC-┼ i≤ ß "subsetó oµ CBASIC¼á refe≥ t∩ thσ CBASI├ hel≡ filσ ì
  62. for information on the BASIC-E error messages.
  63.  
  64.      Most¼á bu⌠á no⌠ all¼á BASIC-┼ erro≥ message≤ arσ covereΣ iε thi≤á hel≡ ì
  65. file.
  66. :CBASIC:  Compiler Error Messages
  67.  
  68.                                Text Messages
  69.  
  70. NO SOURCE FILE:  <FILENAME>.BAS
  71.      Thσá compile≥ coulΣ no⌠ locatσ ß sourcσ filσ useΣ iε eithe≥á ßá CBASI├ ì
  72. command or an INCLUDE directive.
  73.  
  74. PROGRAM CONTAINS n UNMATCHED FOR STATEMENT(S)
  75.      There are n FOR statements for which a NEXT could not be found.
  76.  
  77. PROGRAM CONTAINS n UNMATCHED WHILE STATEMENT(S)
  78.      There are n WHILE statements for which a WEND could not be found.
  79.  
  80. WARNING:  INVALID CHARACTER IGNORED
  81.      Thσ previou≤ linσ contain≤ aε invaliΣ ASCI╔ character╗á thi≤ characte≥ ì
  82. is ignored by the compiler, and a question mark is printed in its place.
  83.  
  84.  
  85.  
  86.                            2-Letter Error Codes
  87.  
  88. CE -- Close Error
  89.      The intermediate (.INT) file could not be closed.
  90.  
  91. DE -- Disk Error
  92.      A disk error occurred while trying to read the .BAS file.
  93.  
  94. DF -- Disk Full
  95.      Therσá wa≤ n∩ spacσ oε thσ disδ o≥ thσ disδ director∙ wa≤á full«á  Thσ ì
  96. .INT file was not created.
  97.  
  98. DL -- Duplicate Line number
  99.      Thσ samσ linσ numbe≥ wa≤ useΣ oε tw∩ differen⌠ lines«á  Othe≥ compile≥ ì
  100. error≤á ma∙á causσ ß D╠ erro≥ messagσ t∩ bσ printeΣ eveε iµ duplicatσá linσ ì
  101. numbers do not exist.
  102.  
  103. DP -- Defined Previously
  104.      A variable in a DIM statement was previously defined.
  105.  
  106.  
  107. EF -- Exponential Format
  108.      ┴ numbe≥ iε exponentia∞ forma⌠ wa≤ inpu⌠ witΦ n∩ digit≤ followinτá thσ ì
  109. E.
  110.  
  111. FD -- Function Definition
  112.      ┴ functioε namσ tha⌠ ha≤ beeε previousl∙ defineΣ i≤ beinτ redefineΣ iε ì
  113. a DEF statement.
  114.  
  115. FI -- FOR Index
  116.      Aεá expressioε whicΦ i≤ no⌠ aε unsubscripteΣ numeriπ variablσ i≤ beinτ ì
  117. used as a FOR loop index.
  118.  
  119. FN -- Function parameter Number 
  120.      A function reference contains an incorrect number of parameters.
  121.  
  122. FP -- Function Parameter type
  123.      ┴ functioε referencσ paramete≥ typσ doe≤ no⌠ matcΦ thσ paramete≥á typσ ì
  124. used in the function's DEF statement.
  125.  
  126.  
  127. FU -- Function Undefined
  128.      A function has been referenced before it has been defined.
  129.  
  130. IE -- IF Expression
  131.      Aεá expressioεá useΣá immediatel∙ followinτ aε I╞á evaluate≤á t∩á typσ ì
  132. string.  Only type numeric is permitted.
  133.  
  134. IF -- In File
  135.      ┴á variablσá useΣá iε ß FIL┼ statemen⌠ i≤ oµ typσ numeriπá wherσá typσ ì
  136. string is required.
  137.  
  138. IP -- Input Prompt
  139.      An input prompt string is not surrounded by quotes.
  140.  
  141. IS -- Invalid Subscript
  142.      A subscripted variable was referenced before it was dimensioned.
  143.  
  144. IU -- Invalid Use
  145.      A variable defined as an array is used with no subscripts.
  146.  
  147.  
  148. MF -- Mixed Format
  149.      An expression evaluates to type string when type numeric is required.
  150.  
  151. MM -- Mixed Mode
  152.      Variable≤á oµá typσ strinτ anΣ typσ numeriπ arσ combineΣ iεá thσá samσ ì
  153. expression.
  154.  
  155. NI -- NEXT Index
  156.      ┴ variablσ referenceΣ b∙ ß NEX╘ statemen⌠ doe≤ no⌠ matcΦ thσá variablσ ì
  157. referenced by the associated FOR statement.
  158.  
  159. NU -- NEXT Unexpected
  160.      A NEXT statement occurs without an associated FOR statement.
  161.  
  162. OO -- ON Overflow
  163.      More than 25 ON statements were used in the program.
  164.  
  165.  
  166. SE -- Syntax Error
  167.      The source line contains a syntax error.
  168.  
  169. SN -- Subscript Number
  170.      A subscripted variable contains an incorrect number of subscripts.
  171.  
  172. SO -- Syntax Overflow
  173.      Thσá expressioε i≤ to∩ comple° anΣ shoulΣ bσ simplifieΣ anΣ placeΣá oε ì
  174. more than one line.
  175.  
  176. TO -- Table Overflow
  177.      Thσá prograφá i≤á to∩á largσ fo≥ thσá system«á  Thσá prograφá mus⌠á bσ ì
  178. simplified or the system size increased.
  179.  
  180. UL -- Undefined Line number
  181.      A line number that does not exist has been referenced.
  182.  
  183. US -- Undefined String
  184.      A string has been terminated by a carriage return rather than quotes.
  185.  
  186.  
  187. VO -- Variable Overflow
  188.      Variable names are too long for one statement.
  189.      This should not occur.
  190.  
  191. WE -- WHILE Error
  192.      The expression immediately following a WHILE statement is not numeric.
  193.  
  194. WU -- WHILE Undefined
  195.      A WEND statement occurs without an associated WHILE statement.
  196. :CBASIC:  Run-Time Error Messages -- Warnings
  197.  
  198.      Tw∩ textua∞ run-timσ erro≥ message≤ arσ presenteΣ b∙ CRUN:
  199.  
  200. NO INTERMEDIATE FILE
  201.      ┴á filσ namσ wa≤ no⌠ specifieΣ witΦ thσ CRU╬ command¼á o≥ n∩á filσá oµ ì
  202. typσ .IN╘ anΣ thσ specifieΣ filσ namσ wa≤ founΣ oε disk.
  203.  
  204. IMPROPER INPUT - REENTER
  205.      Thi≤á messagσá occur≤ wheε thσ field≤ entereΣ froφ thσ consolσ d∩á no⌠ ì
  206. matcΦá thσá fielΣ specifieΣ iε thσ INPU╘ statement«á  Thi≤ caεá occu≥á wheε ì
  207. fielΣ type≤ d∩ no⌠ matcΦ o≥ thσ numbe≥ oµ field≤ entereΣ i≤ differen⌠á froφ ì
  208. thσá numbe≥á oµá field≤á specified«á  Al∞ field≤á specifieΣá b∙á thσá INPU╘ ì
  209. statemen⌠ mus⌠ bσ reentered.
  210.  
  211.                      2-Letter Warning Codes
  212.  
  213. DZ -- Divide by Zero
  214.      ┴ numbe≥ wa≤ divideΣ b∙ zero«á  Thσ resul⌠ i≤ se⌠ t∩ thσ larges⌠ valiΣ ì
  215. CBASI├ number.
  216.  
  217. FL -- Field Length
  218.      ┴á fielΣá lengtΦ greate≥ thaε 25╡ byte≤ wa≤ encountereΣ durinτ ßá REA─ ì
  219. LINE«  Onl∙ thσ firs⌠ 25╡ character≤ oµ thσ recorΣ arσ retained.
  220.  
  221. LN -- Logarithm error
  222.      Thσá argumen⌠á giveε iε thσ LO╟ functioε wa≤ zer∩á o≥á negative«á  Thσ ì
  223. valuσ oµ thσ argumen⌠ i≤ returned.
  224.  
  225. NE -- NEgative number
  226.      ┴á negativσá numbe≥á wa≤á specifieΣ followinτ thσá raisσá t∩á ßá powe≥ ì
  227. operato≥ (^)«  Thσ absolutσ valuσ i≤ useΣ iε thσ calculation.
  228.  
  229.  
  230. OF -- OverFlow
  231.      ┴ calculatioε produceΣ ß numbe≥ to∩ large«á  Thσ resul⌠ i≤ se⌠ o⌠á thσ ì
  232. larges⌠ valiΣ CBASI├ number.
  233.  
  234. SQ -- SQuare root error
  235.      ┴á negativσá numbe≥ wa≤ specifieΣ iε thσ SQ╥ function«á  Thσá absolutσ ì
  236. valuσ i≤ used.
  237. :CBASIC:  Run-Time Error Messages -- Error Codes
  238.  
  239. AC -- AsCii error
  240.      Thσ strinτ useΣ a≤ thσ argumen⌠ iε aε AS├ functioε evaluateΣ t∩ ß nul∞ ì
  241. string.
  242.  
  243. CE -- Close Error
  244.      An error occurred upon closing a file.
  245.  
  246. CU -- Close Undefined file 
  247.      ┴ closσ statemen⌠ specifieΣ ß filσ numbe≥ tha⌠ wa≤ no⌠ active.
  248.  
  249. DF -- Defined File
  250.      Aεá OPE╬ o≥ CREAT┼ wa≤ specifieΣ witΦ ß filσ numbe≥ tha⌠á wa≤á alread∙ ì
  251. active.
  252.  
  253. DU -- Delete Undefined file
  254.      ┴ DELET┼ statemen⌠ specifieΣ ß filσ numbe≥ tha⌠ wa≤ no⌠ active.
  255.  
  256.  
  257. DW -- Disk Write error
  258.      Aεá erro≥ occurreΣ whilσ writinτ t∩ ß file«á  Thi≤ occur≤ wheεá eithe≥ ì
  259. thσ director∙ o≥ thσ disδ i≤ full.
  260.  
  261. EF -- End of File
  262.      ┴á reaΣá pas⌠ thσ enΣ oµ filσ occurreΣ oε ß filσ fo≥ whicΦ n∩á I╞á EN─ ì
  263. statemen⌠ ha≤ beeε executed.
  264.  
  265. ER -- Error in Record
  266.      Aεá attemp⌠á wa≤á madσ t∩ writσ ß recorΣ oµ lengtΦá greate≥á thaεá thσ ì
  267. maximuφá recorΣá sizσ specifieΣ iε thσ associateΣá OPEN¼á CREATE¼á o≥á FIL┼ ì
  268. statement.
  269.  
  270. FR -- File Rename
  271.      Aε attemp⌠ wa≤ madσ t∩ renamσ ß filσ t∩ aε existinτ filσ name.
  272.  
  273. FU -- File Undefined
  274.      Aε attemp⌠ wa≤ madσ t∩ reaΣ o≥ writσ t∩ ß filσ tha⌠ wa≤ no⌠ active.
  275.  
  276.  
  277. IR -- Invalid Record number
  278.      A record number less than one was specified.
  279.  
  280. LW -- Line Width
  281.      ┴á linσá widtΦá les≤ thaε ▒ o≥ greate≥ thaε 13│ wa≤á specifieΣá iεá aε ì
  282. LPRINTE╥ WIDT╚ statement.
  283.  
  284.  
  285. ME -- MAKE Error
  286.      Aεá erro≥ occurreΣ whilσ creatinτ o≥ extendinτ ß filσ becausσ thσ disδ ì
  287. director∙ wa≤ full.
  288.  
  289. MP -- MATCH Parameter
  290.      Thσ thirΣ paramete≥ iε ß MATC╚ functioε wa≤ zer∩ o≥ negative.
  291.  
  292. NF -- Number of FILE
  293.      Thσ filσ numbe≥ specifieΣ wa≤ les≤ thaε ▒ o≥ greate≥ thaε 20.
  294.  
  295.  
  296. NM -- No Memory
  297.      There was insufficient memory to load the program.
  298.  
  299. NN -- No Number field
  300.      Aε attemp⌠ wa≤ madσ t∩ prin⌠ ß numbe≥ witΦ ß PRIN╘ USIN╟ statemen⌠ bu⌠ ì
  301. therσ wa≤ no⌠ ß numeriπ datß fielΣ iε thσ USIN╟ string.
  302.  
  303. NS -- No String field
  304.      Aε attemp⌠ wa≤ madσ t∩ prin⌠ ß strinτ witΦ ß PRIN╘ USIN╟ statemen⌠ bu⌠ ì
  305. therσ wa≤ no⌠ ß strinτ fielΣ iε thσ USIN╟ string.
  306.  
  307. OD -- Overflow Data
  308.      ┴á REA─á statemen⌠ wa≤ executeΣ witΦ n∩ DAT┴ available.
  309.  
  310. OE -- OPEN Error
  311.      Aε attemp⌠ wa≤ madσ t∩ OPE╬ ß filσ tha⌠ didn'⌠ exis⌠ anΣ fo≥ whicΦá n∩ ì
  312. I╞ EN─ statemen⌠ haΣ beeε previousl∙ executed.
  313.  
  314.  
  315. OI -- ON Index
  316.      Thσá expressioεá specifieΣá iεá aε O╬ ..«á GOSU┬ o≥á aεá O╬á ..«á GOT╧ ì
  317. statemen⌠á evaluateΣ t∩ ß numbe≥ les≤ thaε ▒ o≥ greate≥ thaε thσ numbe≥á oµ ì
  318. linσ number≤ containeΣ iε thσ statement.
  319.  
  320. OM -- Overflow Memory
  321.      The program ran out of memory during execution.
  322.  
  323. QE -- Quote Error
  324.      Aε attemp⌠ wa≤ madσ t∩ PRIN╘ t∩ ß filσ ß strinτ containinτ ß quotatioε ì
  325. mark.
  326.  
  327. RE -- READ Error
  328.      Aε attemp⌠ wa≤ madσ t∩ reaΣ pas⌠ thσ enΣ oµ ß recorΣ iε ß fixeΣ file.
  329.  
  330. RG -- RETURN with no GOSUB
  331.      A RETURN occurred for which there was no GOSUB.
  332.  
  333.  
  334. RU -- Random Undefined
  335.      ┴ randoφ reaΣ o≥ prin⌠ wa≤ attempteΣ t∩ othe≥ thaε ß fixeΣ file.
  336.  
  337. SB -- SuBscript
  338.      Aεá arra∙ subscrip⌠ wa≤ useΣ whicΦ exceedeΣ thσ boundarie≤á fo≥á whicΦ ì
  339. thσ arra∙ wa≤ defined.
  340.  
  341. SL -- String Length
  342.      ┴ concatenatioε operatioε resulteΣ iε ß strinτ oµ morσ thaε 25╡ bytes.
  343.  
  344. SS -- SubString error
  345.      Thσ seconΣ paramete≥ oµ ß MIDñ functioε wa≤ zer∩ o≥ negative.
  346.  
  347. TF -- Too many Files
  348.      Aε attemp⌠ wa≤ madσ t∩ havσ morσ thaε 2░ activσ file≤ simultaneously.
  349.  
  350.  
  351. TL -- TAB Length
  352.      ┴á TA┬ statemen⌠ containeΣ ß paramete≥ les≤ thaε ▒ o≥ greate≥ thaε thσ ì
  353. curren⌠ linσ width.
  354.  
  355. UN -- UNdefined edit string
  356.      ┴ PRIN╘ USIN╟ statemen⌠ wa≤ executeΣ witΦ ß nul∞ edi⌠ string.
  357.  
  358. WR -- WRite error
  359.      Aεá attemp⌠ wa≤ madσ t∩ writσ t∩ ß filσ afte≥ i⌠ haΣá beeεá read¼á bu⌠ ì
  360. beforσ i⌠ haΣ beeε reaΣ t∩ thσ enΣ oµ thσ file.
  361.