Sharp OZ-707 Operation Manual - Page 92
Locate
UPC - 074000012141
View all Sharp OZ-707 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 92 highlights
LOC P D FORMAT: LOC file number Abbreviation: See Also: OPEN PURPOSE: Returns the current pointer position (logical) in a file. REMARKS: The LOC command returns the number of records read or written since the file with the specified number was opened. One record is 256 bytes long. If the device name is COM, LOC returns the number of data bytes stored in the 20-character (40-byte) buffer. An error occurs if a file with the specified number has not been opened. EXAMPLE: 10: OPEN "E:FILE01 " FOR INPUT AS #2 20: IF EOF(2) THEN 50 30: INPUT #2,N 40: GOTO 20 50: M=LOC(2) 60: PRINT "THE FILE HAS";M;"RECORDS· 70: CLOSE #2 80: END 172 LOCATE p o FORMAT: 1. LOCATE [expression 1] [,expression 2] 2. LOCATE Abbreviation: LO. See Also: CLS, INPUT, PRINT, PAUSE, GCURSOR, WIDTH PURPOSE: Specifies the display start position in character units. REMARKS: Specifies the display start position in units of a character position for the contents displayed by the PRINT command, PAUSE command, etc. When WIDTH,S has bee.n specified, the display position is specified as follows using format 1: Horizontal position (specified by expression 1) o01234 1415 _ 7 Vertical poSition (specified by expression 2) When WIDTH,4 has been specified, the display position is specified as follows using format 1: o 11 o 2 3 If expression 1 is omitted, the horizontal position 0 is assumed. If expression 2 is omitted, the current cursor vertical position is assumed. 173