480
Platforms
©2000-2008 Tibbo Technology Inc.
dat
a
A string with the data to written to the buffer.
offs
et
Starting offset in the buffer. Possible value range is 0-263 (the buffer
stores 264 bytes of data, offset is counted from 0).
Details
The length of data actually written into the buffer may be limited if all supplied
data can't fit between the offset position in the buffer and the end of the buffer.
The method will return the actual number of data that was written.
Note that writing to the RAM buffer #1 may interfere with file-based access to the
flash memory. If you have executed
, the RAM buffer #1 may still
contain this new data, in which case using the fd.setbuffer while the fd.buffernum=
1 will automatically dismount the disk (set
= 0- NO). To avoid this
situation, switch to the RAM buffer #0, or use
methods
before invoking the fd.getsector.
All status codes generated by this method are "generic" and are not described
here.
.Setdata Method
Function:
Writes data to a file opened "on" a currently selected file
number (selection is made through the
).
Syntax:
fd.setdata(byref data 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).
7- PL_FD_STATUS_DATA_FULL: The disk is full, new data
cannot be added.
8- PL_FD_STATUS_NOT_READY: The disk is not mounted.
10- PL_FD_STATUS_NOT_OPENED: No file is currently
opened on the current value of the
property.
See Also:
Writing To and Reading From Files
,
,
Par
t
Description
dat
a
A string containing data to be written to the file.
480
476
466
460
463
472
472
463
444
469
478