- 人气:
- 放大
- 缩小
- 二维码
- 赞赏
delphi 网上获取北京时间取字符串与字符串中间的字符
取字符串与字符串中间的字符
function GetStringBetween(const FullStr, StrLeft, StrRight: String): string;
var
idx_Start,idx_End,iStrCnt: Integer;
begin
Result:='';
idx_Start := Pos(StrLeft,FullStr)+Length(StrLeft);
idx_End:= Pos(StrRight,FullStr);
iStrCnt:= idx_End - idx_Start;
Result:=Copy(FullStr,idx_Start,iStrCnt);
end;