Announcement

Collapse
No announcement yet.

Error 4...what's error 4 mean?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Error 4...what's error 4 mean?

    Error 4 at pgm-ctr: 408

    Program compiles fine, then crashes:
    http://panks.freeshell.org/text.bas

    Sincerely,

    Paul


    ------------------
    Few cats act their age, while
    most just cough up furballs.
    Few cats act their age, while
    most just cough up furballs.

  • #2
    rtfm
    Code:
    -[ ALT-F1 ]-[ SHIFT-F1 ]-- PowerBASIC Help System ----
    
      Error 4: Out of data
    
      A READ statement ran out of DATA statement values.
    Michael Mattias
    Tal Systems Inc. (retired)
    Racine WI USA
    [email protected]
    http://www.talsystems.com

    Comment


    • #3
      Cool, thanks. I changed the ,,,,'s in the DATA statements to 0's
      and it compiled and ran fine. I guess some READ statements work
      differently, but at least in QBasic you can use "," in place of
      0's to save space. Not sure about FirstBasic, though (the compiler that
      gave the error). I was too lazy to try it out under PBasic or QB.

      Paul


      ------------------
      Few cats act their age, while
      most just cough up furballs.
      Few cats act their age, while
      most just cough up furballs.

      Comment

      Working...
      X