Sharp OZ-707 Operation Manual - Page 74
FORMAT, Abbreviation, PURPOSE, REMARKS
UPC - 074000012141
View all Sharp OZ-707 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 74 highlights
The loop variable may be used within the group of statements, for example as an index to an array, but care should be taken in changing the value of the loop variable. Write programs so that the program flow does not jump out of a FOR...NEXT loop before the counter reaches the final value. To exit a loop before it has been repeated the specified number of times, set the loop variable higher than the final value. The group of statements enclosed by a FOR...NEXT pair can include another pair of FOR. ..NEXT statements that use a different loop variable as long as the enclosed pair is completely enclosed; i.e., if a FOR statement is included in the group, the matching NEXT must also be included. FOR... NEXT pairs may be "nested" up to six levels deep. Illegally jumping out of an inner loop will generate an error, a nesting error. See Appendix E. An error results if a double-precision variable is specified as the numeric variable. Double-precision initial values, final values, and increments are treated as single-precision values. Do not use the CLEAR, DIM, or ERASE command within a FOR. ..NEXT loop. FRE p o FORMAT: 1. FRE 0 2. FRE 1 Abbreviation: FR. See Also: PURPOSE: Returns the free space available in the program and data area in bytes. REMARKS: FRE returns the byte count of the free space (not occupied by program, array variables, or simple variables) in the program and data area of memory. To speed up execution, a certain fixed number o~ bytes are rese:,ed for each string variable even though a shorter string may be assigned to the variable. Thus, the size of the free space is not affected by the lengths of strings assigned to string variables. It is, however, possible to eliminate idle space in each variable to increase free space. Format 1 returns the free space by eliminating idle space in each string 2 variable so its execution may take a little more time. Format returns the free space without eliminating idle space in string variables. It is useful for determining the approximate amount of free space. The value of free space returned by format 1 may not match that returned by format 2. 136 137