Thread:Boot2/@comment-16045798-20131008191651/@comment-10305509-20131017221930

To use "DATA ": Put it before a label and use the "RESTORE ". That moves an invisible cursor to the data, ready for it to be "READ ".

EXAMPLE:

PRINT "The following sentence was made using DATA." RESTORE @EXAMPLE READ S$ PRINT S$ WAIT 120 END '... @EXAMPLE DATA "This is the following sentence. LOLOLOL" DATA "I never get printed..."

This will show the following:

The following sentence was made using DATA. This is the following sentence. LOLOLOL

EXAMPLE 2:

PRINT "The following sentences were made with DATA." RESTORE @EXAMPLE READ S1$,S2$,S3 PRINT S1$ PRINT S2$ PRINT S3 WAIT 120 END '... @EXAMPLE DATA "Hello.","This is an example.",100 DATA "Forever alone","ikr","ikr","ikr" 'you can go on forever

This will show the following:

The following sentences were made with DATA. Hello. This is an example. 100

That's it! :D