本帖最后由 xiaozhulo 于 2010-09-27 14:40:26 编辑

解决方案 »

  1.   

    这种问题都已经菜过头了
    strCommand.Split(',')[1]
      

  2.   

    string[] split = string.Split(',');
    这时split [1]里面放的就是xxxxxxxxx
      

  3.   

    假設傳送資料固定並且id長度也一樣
    傳送資料  *RS,xxxxxxxxx,… 
              1234
    array.copy(來源變數rs陣列,4,目地變r陣列,0,id長度)*TS,yyyyyyyyy 同上
    array.copy(來源變數ts陣列,4,目地變t陣列,0,id長度) if (BitConverter.ToString(r) == BitConverter.ToString(t)){    MessageBox.Show("The same");}else{    MessageBox.Show("Different");}