各位大哥大姐:
   我想限制TRichEdit中每行字符数目,我的代码如下:
procedure TForm1.RichEdit1KeyPress(Sender: TObject; var Key: Char);
begin
    if(somecondition) then Key := #0;  //这样TRichEdit就不能再输入了
end;
对于英文,是可以做到限制输入的,但是中文就做不到了,请问怎么样才能做的限制中文呢?