User manual - Scripting_Guide

NAURTECH SMART CLIENTS FOR WINDOWS CE AND POCKET PC
CETerm Scripting Guide Page 37
Property Description Values
LastError Returns the last error value associated
with the File object.
unsigned
integer
LastErrorMessage Returns a text message of the last error
associated with the File object. (read
only)
text
3.9 THE REGISTRY OBJECT
The Registry object provides access to the Windows registry. The registry is a
form of database on Windows devices which holds the device configuration. The
registry has a hierarchical structure. The “keys” are similar to file folders and the
“values” inside a key are similar to files in a folder. Several methods require a
“fully qualified” value name which contains the full key hierarchy, begins with a
“root” key, and ends with the value name. This fully qualified value name is
similar to a file name with the full path.
WARNING: Altering the registry can make your device unusable. Be sure you
know the effect of changing values.
Methods
The following methods are available
Method Action
DeleteKey Delete an existing key.
DeleteValue Delete an existing value.
EnumerateKeys Get all sub-key names of a specified key.
EnumerateValues Get all value names of a specified key.
FlushKey Issue the RegFlushKey command.
GetValueType Get the data type of a value.
ReadValue Read a value from a key.
ReadValueVBArray Read a value from a key and return as a Visual Basic array.
WriteValue Write a value to a key.