通过以下语句,成功将分高字节和低字节传输的数据整合为十进制表示的数据
frmMain.Text1.Text = shuju(I, 0) '编码1
frmMain.Text2.Text = (shuju(I, 1) * 256) + shuju(I, 2) '数据1合并高低字节
frmMain.Text3.Text = shuju(I, 3) '编码2
frmMain.Text4.Text = (shuju(I, 4) * 256) + shuju(I, 5) '数据2合并高低字节
frmMain.Text5.Text = shuju(I, 6) '编码3
frmMain.Text10.Text = (shuju(I, 7) * 256) + shuju(I, 8) '数据3合并高低字节
|