The ReadUserSetting Method of the Generic ActiveX Object reads a custom setting stored in the configuration file.
ReadUserSetting (Method of the Generic ActiveX Object) Syntax strRet = objGeneric.ReadUserSetting(strSetting);
Parameters
Items listed in this section indicate parameters, or attributes which can be set.
Name Possible Values Description
Default Value strSetting String The name of the setting N/A
Return Values
Name Description strRet Returns a string or "undefined" if the setting cannot be found.
Examples
The following javascript example reads a custom setting.
<script> var objGeneric = new ActiveXObject("PocketBrowser.Generic"); var Ret = objGeneric.ReadUserSetting("BgColor"); alert("background color is "+Ret); </script>
Copy example to clipboard
Remarks
The data is stored in the configuration file under <USERDATA>
Additional Information
Supported Platforms Windows CE, Windows Mobile Persistence Runs immediately. Min. Requirements None.