刚刚开始学习VB,做一个接收数据的软件用到了MSCOMM控件。该进口设备的关于特殊字码的说明文件如是:
<ACK>  (06h)    : acknowledge without error
<NACK> (15h)    : acknowledge with error
<ETX>  (03h)    : end of text transmission 
<STX>  (02h)    : start of text transmission
[C1]             : most significant character of checksum
[C2]             : least significant character of checksum
<ENQ>  (05h)    : request for line (enquiry)
<ETB>  (17h)    : end of transmission block
<EOT>  (04h)    : end of transmission
<CR>   (0Dh)    : carriage return
<LF>    (0Ah)   : line feed
在编程中我的代码为ACK=CHR(6)NACK=CHR(15)等等,
但是在不知道<CR>和<LF>的表达是应该如何的。望高手能指点一二为谢!