470
Platforms
©2000-2008 Tibbo Technology Inc.
The length of returned data will depend on one of three factors, whichever is
smaller: maxinplen argument, amount of data still available in the file counting
from the current pointer position (see
), and the capacity of receiving
string variable.
As a result of this method invocation, the pointer will be advanced forward by the
number of bytes actually read from the file.
All status codes generated by this method are "generic" and are not described
here.
.Getfreespace Method
Function:
Returns the total number of free data sectors available on
the flash disk.
Syntax:
fd.getfreespace() as word
Returns:
0-65535, also affects the state of the
. The
following status codes are possible:
0- PL_FD_STATUS_OK: Completed successfully.
1- PL_FD_STATUS_FAIL : Physical flash memory failure
(fatal).
2- PL_FD_STATUS_CHECKSUM_ERR: Checksum error has
been detected in one of the disk sectors (fatal).
3- PL_FD_STATUS_FORMAT_ERR: Disk formatting error
has been detected (fatal).
8- PL_FD_STATUS_NOT_READY: The disk is not mounted.
See Also:
,
,
Details
This method returns its execution status indirectly, through the fd.laststatus R/O
property. All possible error states are "generic" and are not described here.
.Getnextdirmember Method
Function:
Returns the next filename (if any) found in the disk
directory.
Syntax:
fd.getnextdirmember() as string
476
472
441
458
475
483