从字符串中截取若干字符问题? sStr,sx,ss: String;sStr := TRIM('第xxxx天工作计划');sx := Copy(sStr,3,POS('天',sStr)-3); //xxxxxxss := Copy(sStr,Length(sStr)-7,8); 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 procedure TForm1.BitBtn1Click(Sender: TObject);const cStart = '第'; cEnd = '天';var S: string; V1, V2: string;begin S := '第0123456789天工作总结'; V1 := Copy(S, Length(cStart) + 1, Pos(cEnd, S) - Length(cEnd) - 1); V2 := Copy(S, Pos(cEnd, S) + Length(cEnd), MaxInt); Caption := '[' + V1 + '|' + V2 + ']';end; 恭喜老刘版主 DELPHI中有没有能修改系统语言设置的函数?在线等待...... 大家的delphi2006内存占用情况如何? 利用打印控件PrintDbgridEh如何实现这种套打?50分 如何将窗体置顶就像消息框一样必须关闭才能进行下一步操作! 关于ADO? 这些数据如何存储? 請問有辦法一个datasource对多个dbgrid嗎? 有人碰到吗,客户端在有些电脑提示日期类型不对,有些电脑就可以。 没有人回答的问题! 如何访问远程数据库? 在Delphi中如何提取指定帧的图像??
const
cStart = '第';
cEnd = '天';
var
S: string;
V1, V2: string;
begin
S := '第0123456789天工作总结';
V1 := Copy(S, Length(cStart) + 1, Pos(cEnd, S) - Length(cEnd) - 1);
V2 := Copy(S, Pos(cEnd, S) + Length(cEnd), MaxInt);
Caption := '[' + V1 + '|' + V2 + ']';
end;