本文整理自网络,侵删。
function GetText(strtxt:string;iLen:integer):string;begin//先判断要截取的字符串最后一个字节的类型//如果为汉字的第一个字节则减(加)一位if ByteType(strtxt,iLen) = mbLeadByte then iLen := iLen - 1;result := copy(strtxt,1,iLen) + ’...‘;end;
相关阅读 >>
Delphi 程序运行提示 “database login”对话框,让输入adoconnection1 的username和password
Delphi 手机app打开一个安卓系统支持的文件,比如 pdf
更多相关阅读请进入《Delphi》频道 >>