
GeoBASIC Reference Manual
2.GeoBasic Constructs
TPS1100-Version 1.30
2-77
Error Codes
RC_OK
Receive has been completed successfully.
COM_OVERRUN
More characters than requested has been
accounted in the internal buffer. Additional
characters will be deleted and cannot be
retrieved by a subsequent call.
COM_TIME_OUT
Time-out has been reached.
Example
The example calls a procedure to process a successful received
string. If the reception has not been completed successfully then
nothing will be done. The time-out period will be set to 1 second.
DIM
iSize AS Integer
DIM
sIn AS
String255
ON ERROR RESUME NEXT
COM_SetTimeOut (1)
iSize = 255
Receive (sIn, iSize)
IF Err = RC_OK THEN
ProcessString (sIn)
END IF
2.13.3 COM_SetTimeOut
Description
Sets the current time-out value for
Receive
operations.
Declaration
COM_SetTimeOut ( byVal nSec
AS Integer )
Remarks
nSec
will be interpreted as seconds. The time-out value will be
valid until it will be set anew. If set to Zero then
Receive
will
not wait until it receives any character(s). Rather it will return
immediately after calling. Then handling of input has to be done
by the programmer.
Note
The data-link must be active.
The time-out from the TPS system will be saved and set
back when the GeoB
ASIC
program terminates.
Содержание tps1100
Страница 1: ...GeoBASIC FOR TPS1100 User Manual Version 2 10 1997 2001 Leica Geosystems AG Heerbrugg Switzerland ...
Страница 150: ...GeoBASIC FOR TPS1100 Reference Manual Version 2 10 1997 2001 Leica Geosystems AG Heerbrugg Switzerland ...
Страница 411: ...GeoBASIC Reference Manual 6 System Functions TPS1100 Version 1 30 6 7 6 5 35 CSV_LibCallAvailable 6 213 ...
Страница 620: ...TPS1100 Version 2 10 6 1 ...
Страница 621: ......
Страница 623: ...TPS1100 Version 2 10 6 1 ...
Страница 624: ......
Страница 1053: ...TPS1100 Version 1 30 E 1 Appendix E GEOFONT ...
Страница 1154: ...GeoBASIC Reference Manual Appendix J List of Predefined Identifiers TPS1100 Version 1 30 J 9 TMC_SetOffsetDist 6 128 ...