Kbase 20513: How to Pass the NULL Character Through MSComm Control
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  10/16/2008 |
|
Status: Unverified
GOAL:
How to force the Microsoft MSCComm to send NULL character to COMM devices
FACT(s) (Environment):
Progress 4GL
Progress 9.x
SYMPTOM(s):
Microsoft Communication Control (MSCComm)
FIX:
The following code forces the MSComm Control (Microsoft Communication Control) to send the NULL character to the device:
DEF VAR v-mem AS MEMPTR.
SET-SIZE(v-mem) = 1.
PUT-STRING(v-mem,1) = CHR(0).
DEF VAR v-raw AS RAW.
v-raw = v-mem.
ASSIGN chCtrlFrame:MSComm:OUTPUT = v-raw.