Delfan, 我喜欢你的问题呀<br><br>可以如同正常的字符串操作那样, 把一个字符串当作一个 WideString 然后使用<br>数组下标得到一个 WideChar (16位字符):<br><br>procedure TForm1.Button1Click(Sender: TObject);<br>var<br> S: String;<br> W: WideChar;<br> I: integer;<br> Msg: String;<br>begin<br> S:= 'A 汉字测试';<br> ShowMessage('StringLength='+<br> IntToStr(Length(s))+<br> ', WideStringLength='+<br> IntToStr(Length(WideString(s))));<br> Msg:='Order of Chars: ';<br> for i:=1 to Length(WideString(s)) do<br> begin<br> Msg:=Msg+IntToStr(Ord(WideString(S)))+'; ';<br> end;<br> ShowMessage(Msg);<br>end;<br>