479
TIDE and Tibbo BASIC User Manual
©2000-2008 Tibbo Technology Inc.
Returns:
One of the following
, also affects
:
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.
attr
A string with attributes to be set. Attributes length cannot exceed 55
characters minus the length of the file name.
Details
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.
.Setbuffer Method
Function:
Writes a specified number of bytes into the currently
selected RAM buffer of the flash memory (selection is
made through the
property).
Syntax:
fd.setbuffer(byref data as string, offset as word) as
word
Returns:
Actual number of bytes written. 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:
,
,
Par
t
Description
472
472
442
458
472
448
468
472
483
459