
296
Run
RunRun
Run-
--
-time errors:
time errors:time errors:
time errors:
Error code Meaning
02h
Syntax error
([drivename:]filename is not correct.)
07h
Insufficient memory space
(During file reception, the memory runs out.)
32h
File type mismatch
(The received file is not a data file.)
33h
Received text format not correct
34h
Bad file name or number
(You specified filename of an unopened file.)
35h
File not found
37h
File already open
38h
The file name is different from that in the receive header.
3Bh
The number of the records is greater than the defined maximum value.
3Eh
FIELD statement not executed yet
40h
ID not set
46h
Communications error
(A communications protocol error has occurred.)
47h
Abnormal end of communications or termination of communications by
the Clear key(The Clear key has aborted the file transmission.)
48h
Device timeout
49h
Received program file not correct
Example:
Example:Example:
Example:
The sample below transmits a data file by adding a serial number and horizontal parity
checking, and then displays the serial number at the 1st line of the screen.
CLOSE
OPEN "d0.dat"AS #1
FIELD #1,10 AS A$,20 AS B$
L%=LOF(1)
CLOSE
LOCATE 1,1
PRINT "00000/";RIGHT$("00000"+MID$(STR$(L%),2),5)
LOCATE 1,1
OPEN "COM:19200,N,8,1"AS #8
XFILE "d0.dat","SPM"
CLOSE #8
Before file transmission After file transmission
00000/00100
→
00100/00100
Reference:
Reference:Reference:
Reference:
Statements: OPEN and OPEN "COM:"
Kommentare zu diesen Handbüchern