Sharp OZ-707 Operation Manual - Page 73
Example, Format, Purpose, Remarks
UPC - 074000012141
View all Sharp OZ-707 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 73 highlights
Specify an ambiguous filename to list directory information on groups of files with common name forms. There are two wildcard characters available for this purpose. The asterisk"*,, stands for any number of characters (including none) in the filename. The question mark "?" stands for a single character in a filename. The following are examples of the use of wildcard characters: File specification TEST? T??T S?MPLE A????? R* Files listed TEST, TESTS, TEST1, TESTA TEST, TEXT, TORT, TXYT SIMPLE, SAMPLE, S2MPLE ABCDEF, APPEND, A12345 RATES,R1, RETURNS, RAND2,R If the ICeCE Ior 00 key is pressed, or if the last filename is being displayed and the IENTER I key is pressed, the entry prompt "'>" is displayed, and the Card waits for the next command. FILES has no effect if the specified files do not exist on the specified device. EXAMPLE: FILES"E:DATA" Displays information about the file DATA on RAM disk E. FILES"E:???1" Lists all files on RAM disk E that have 4-letter names ending in 1. FOR ... NEXT p FORMAT: FOR fixed numeric variable } _ { single-precision simple numeric variable - expression 1 TO expression 2 [STEP expression 3] ~ fiXed numeric variable }] NEXT [{single-precision simple numeric variable Abbreviation: F. N. STE. See Also: PURPOSE: In combination with NEXT, repeats a series of operations a specified number of times. REMARKS: FOR and NEXT are used in pairs to enclose a group of statements that are to be repeated. If the variable following NEXT is omitted, the variable following FOR is assumed. The first time this group of statements is executed the loop variable (the variable named immediately following FOR) is assigned its initial value (expression 1). When execution reaches the NEXT statement, the loop variable is increased by the STEP value (expression 3) and then this value is tested against the final value (expression 2). If the value of the loop variable is less than or equal to the final value, the enclosed group of statements is executed again, starting with the statement following FOR. If expression 3 for step size is omitted, the increment becomes 1. If the value of the loop variable is greater than the final value, execution continues with the statement that immediately follows NEXT. Because the comparison is made at the end, the statements within a FOR. .. NEXT pair are always executed at least once. When the increment is zero, FOR. .. NEXT will continue in an infinite loop. 134 135