
75
Class Reference
Format:
result = storage.upload(name, withHeaderAndFooter);
Where:
name
– string; the name of a file.
withHeaderAndFooter
– Optional boolean; If set to
false
the file is uploaded without
the header (ap/g(file size) )and footer (ap/d(checksum)). If the parameter is not included
the header and footer will be included with the upload.
result
– Boolean;
false
if there was a failure on the communications port; otherwise,
true
. If the current communications mode is a 2-way mode,
true
indicates that the data
has been sent to and acknowledged by the host.
Note: The upload protocol is documented with the "^" command in the Interface
Configuration Document.
Example:
name = storage.findFirst(/TimeCard.*/);
while (name)
{
if ( !storage.upload(name) )
alert(name + " upload failed!");
name = storage.findNext();
};
Uploads all time card records to the host. If a time card record fails to upload, the operator
is alerted.
4.4.1.9
write
The
storage.write
method writes a file to storage. If the file does not exist, the
handheld creates it. If there was an existing file of the same name, it is replaced.
Format:
result = storage.write(name, data);
Where:
name
– string; name of a file.
data
– string; data to be written.
result
– Boolean;
true
if the file was successfully written; otherwise,
false
.
Note: When replacing an existing file, if there is insufficient storage space to hold the new
file, it will not be written; however, the old file will be erased.
Содержание OHV300
Страница 1: ...FACTORY AUTOMATION MANUAL JAVASCRIPT PROGRAMMING GUIDE...
Страница 88: ...88 Supported JavaScript Core delete function in instanceof new this typeof void...
Страница 93: ...93 Symbology ID Modifier Information...
Страница 94: ...TDOCT 4981_ENG 11 2015...