
01.12.2009, 09:15
|
|
Участник форума
Регистрация: 09.03.2009
Сообщений: 178
Провел на форуме: 1605524
Репутация:
523
|
|
function Pars(T_, ForS, _T: string): string;
var
a, b: integer;
begin
Result := '';
if (T_ = '') or (ForS = '') or (_T = '') then
Exit;
a := Pos(T_, ForS);
if a = 0 then
Exit
else
a := a + Length(T_);
ForS := Copy(ForS, a, Length(ForS) - a + 1);
b := Pos(_T, ForS);
if b > 0 then
Result := Copy(ForS, 1, b - 1);
end;
S:=Pars('id=''s'' value=''', Response.Text, ''' />');
|
|
|