Sharp OZ-707 Operation Manual - Page 109
Data, Read
![]() |
UPC - 074000012141
View all Sharp OZ-707 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 109 highlights
EXAMPLE: 10: INPUT "CONTINUE";A$ 20: IF A$ = ·YES· THEN 10 30: IF A$ = "NO" THEN 60 " 40: PRINT "ENTER YES OR NO PLEASE! 50: GOTO 10 60: END RENUM 100, 10, 5 IEJrnR I 100: INPUT "CONTINUE";A$ 105: IF A$ = "YES" THEN 100 110· IF A$ = "NO" THEN 125 115~ PRINT "ENTER YES OR NO PLEASE!" 120: GOTO 100 125: END 206 RESTORE p FORMAT: 1 RESTORE {line number} . *Iabel 2. RESTORE Abbreviation: RES. See Also: DATA, READ PURPOSE: Rereads values in a DATA statement or changes the order in which these values are read. REMARKS: In the regular use of READ, reading begins with the first value in a DATA statement and proceeds sequentially through the remaining values. Format 1 resets the pointer to the first value of the DATA statement whose line number is equal to the specified line number or *Iabel. Format 2 resets the pointer to the first value of the first DATA statement, so that it can be read again. EXAMPLE: 10: DIM 8(10) 20: WAIT 32 30: FOR I = 1 TO 10 40: RESTORE 50: READ 8(1) 60: PRINT 8(1)*1; 70: NEXT I 80: DATA 20 90: END [101 Sets up an array. [S01 Assigns the value 20 to each of the elements of B( ). 207
![](/manual_guide/products/sharp-oz707-operation-manual-7aa0508/109.png)