468
Platforms
©2000-2008 Tibbo Technology Inc.
Returns:
The string with attributes (may be up to 54 characters
long) or an empty string if no attributes were set for this
file. The method 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.
9- PL_FD_STATUS_NOT_FOUND: File not found.
See Also:
Reading and Writing File Attributes
Par
t
Description
na
me
A string (1-56 characters) with the file name. All characters after the first
space encountered (excluding leading spaces) will be ignored. File names
are case-sensitive.
Details
The length of returned data will automatically be truncated to the capacity of the
receiving string variable.
The attributes string can be defined for the file when creating the file using the
method or set afterwards with the
method.
This method returns its execution status indirectly, through the fd.laststatus R/O
property. The file with the specified name must exist or the 9-
PL_FD_STATUS_NOT_FOUND status code will be returned. All other possible error
states are "generic" and are not described here.
.Getbuffer Method
Function:
Reads a specified number of bytes from the currently
selected RAM buffer of the flash memory (selection is
made through the
property).
Syntax:
fd.getbuffer(offset as word, len as word) as string
Returns:
The string with the data read from the buffer. The method
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).
See Also:
,
472
442
462
478
458
472
448
479
472
483
459