本文整理自网络,侵删。
function GetText(strtxt:string;iLen:integer):string;begin//先判断要截取的字符串最后一个字节的类型//如果为汉字的第一个字节则减(加)一位if ByteType(strtxt,iLen) = mbLeadByte then iLen := iLen - 1;result := copy(strtxt,1,iLen) + ’...‘;end;
相关阅读 >>
Delphi 7 + gdiplus 简单实现双缓冲绘制移动图形
Delphi xe5 android 使用system.zip单元释放资源文件
更多相关阅读请进入《Delphi》频道 >>