
GeoBASIC Reference Manual
2.GeoBasic Constructs
2-56 TPS1100-Version
1.30
Declaration
GetByte
( byVal
FileId
AS FileId,
iVal
AS Integer )
GetInt
( byVal
FileId
AS FileId,
iVal
AS Integer )
GetDouble ( byVal
FileId
AS FileId,
dVal
AS Double )
GetLogical( byVal
FileId
AS FileId,
lVal
AS Logical )
GetString ( byVal
FileId
AS FileId,
szVal
AS String255,
iLen
AS Integer )
Remarks
These functions read a value from the file identified by
FileId
.
The values will not be interpreted at all. Only logical values will
be transformed to the internal coding.
iLen
gives the maximum
number of characters to be read.
iLen
, if greater, will be reset to
255 characters without notification to the caller. End of file can be
recognised by calling
Eof
(). If end of file has been reached then it
is not guaranteed that the returned value is valid.
Note
The file must have been opened successfully in access
mode "
InBin
" or "
UpdateBin
".
The binary values will be interpreted in standard DOS
format.
GetString
reads as many characters as asked. If the
read string contains a
0x00
-byte (internal terminator)
then successive string operations will interpret the string
up to this terminator.
Parameters
FileId
in
Unique file-id returned by
Open.
Procedure Field Type Meaning
GetByte
iVal
out
1 byte binary integer (will
be expanded to an
Integer), returns a value
between 0 and 255.
GetInt
iVal
out
4 byte binary integer.
GetDouble
dVal
out
8 byte binary double float.
GetLogical
lVal
out
1 byte: 0
- FALSE
else - TRUE
Содержание 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 ...