COMPort.useLineMode() This page was last modified over 30 day(s) ago and has 0 comment(s)


Back to COMPort Class Summary

The COMPort Class has been deprecated in Zinc 4.0. It is included for legacy support but is no longer maintained and maybe removed completely in a future 4.x update.

Availability
Windows

Usage
mdm.COMPort.useLineMode(enable:Boolean, lineStr:String):Void

Parameters
enable:Boolean - Enable/disable linemode

lineStr:String - Line-end character

Returns
Nothing

Description
When enabled, the COMPort.onCOMPortData event will be fired only when the character specified in 'lineStr' has been received.

Notes
None

Example Code
//Here, the COMPort.onCOMPortData event will be sent when the RETURN key has been sent by the remote end:
mdm.COMPort.useLineMode(true, "#13#10");

//Here, the COMPort.onCOMPortData event will be sent when the semi-colon key has been sent by the remote end:
mdm.COMPort.useLineMode(true, ";");

mdm.COMPort Class Example Downloads
No Example Downloads Available


Registered Users must be logged in to 'MyAccount' to add a Comment - Log In Here
  After Logging In, Click Here to Refresh This Page