463
TIDE and Tibbo BASIC User Manual
©2000-2008 Tibbo Technology Inc.
Each file always occupies at least one sector in the data area of the disk. The first
sector is allocated when you invoke the fd.create method. This is why an attempt
to create a new file may result in the 7- PL_FD_STATUS_DATA_FULL status code.
All other possible error states are "generic" and are not described here.
.Delete Method
Function:
Deletes a file from the flash disk.
Syntax:
fd.delete(byref name as string) as
pl_fd_status_codes
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:
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 file string will always be truncated to 56 characters. Leading spaces will be
removed. The file with the specified name must exist or the 9-
PL_FD_STATUS_NOT_FOUND status code will be returned. It is OK to delete a file
which is currently opened -- after that, the
for this file number will
be reset to 0- NO.
All other possible error states are "generic" and are not described here.
.Filenum Property
Function:
Sets/returns the number of the currently selected file.
Type:
Byte
Value Range:
0 to
-1. Default= 0 (file #0
selected).
See Also:
472
472
441
464
473
443