Jump to content
IGNORED

Loading Data into Arrays


wh5k

Recommended Posts

What is the most efficient way to load a bunch of data into arrays? The way I've usually seen in classic BASIC is something like:

 

90 DIM X(4)

100 FOR I = 1 to 4

110 READ X(I)

120 NEXT I

130 DATA 1,2,3,4

 

But the Atari 800 doesn't seem to like that...

Link to comment
Share on other sites

Remember that Atari BASIC arrays start at 0, not 1.

Thank you!

 

I don't know how I could manage to forget something like that. From what I recall, isn't really old time Microsoft BASIC weird that it doesn't start at 0? I know that by QBASIC and later in Visual Basic they started them at zero.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...