ReadUserSetting Method

PocketBrowser 3.x API

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);

ParametersW Toggle 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

axReturns Toggle Return Values

Name Description
strRet Returns a string or "undefined" if the setting cannot be found.

Examples Toggle Examples

The following javascript example reads a custom setting.

var objGeneric = new ActiveXObject("PocketBrowser.Generic");
var Ret = objGeneric.ReadUserSetting("BgColor");
alert("background color is "+Ret);
Copy example to clipboard Copy example to clipboard

Remarks Toggle Remarks

The data is stored in the configuration file under <USERDATA>

Info Toggle Additional Information

Supported Platforms Windows CE, Windows Mobile
Persistence Runs immediately.
Min. Requirements None.