PSGetLastMessage Method

PocketBrowser 3.x API

The PSGetLastMessage Method of the NarrowBand ActiveX Object returns the last error message encountered by the Adaptive Printer Driver.

PSGetLastMessage (Method of the NarrowBand ActiveX Object) Syntax
strData = NarrowBand.PSGetLastMessage();

axReturns Toggle Return Values

Name Description
StrData String representing the last error message encountered by the Adaptive Printer Driver.

Examples Toggle Examples

The following javascript code demonstrates the useage of this method:

<script>
var NarrowBand = new ActiveXObject("PocketBrowser.NarrowBand");
var printerID = '2350C';

NarrowBand.PSExternalEx(261, printerID);

if(NarrowBand.PSExternalEx(257, 'Hello World') > 0)
{
alert(NarrowBand.PSGetLastMessage());
}
</script>
Copy example to clipboard Copy example to clipboard

Info Toggle Additional Information

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