通過以下語句,成功將分高字節和低字節傳輸的數據整合為十進制表示的數據
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合并高低字節
|