The Clear Method of the MicroFlash ActiveX Object clears the printer buffer of the specified MicroFlash object.
Clear (Method of the MicroFlash ActiveX Object) Syntax Microflash.Clear();
Examples
The following demonstrates the usage of this method:
<script> var MicroFlash= new ActiveXObject("PocketBrowser.MicroFlash"); MicroFlash.SetPort('COM1:'); MicroFlash.AddData('Hello'); MicroFlash.AddData(' '); MicroFlash.AddData('World\n'); MicroFlash.AddLine('From the Motorola PocketBrowser Team'); MicroFlash.Print(10); alert('printed'); MicroFlash.Clear(); <script>
Copy example to clipboard
Additional Information
Supported Platforms Windows CE, Windows Mobile Persistence Executes immediately. Minimum Requirements None.