Вниз
Скачать: CL | DM;

есть вхождение подстроки в строку   Найти похожие ветки 

← →
laser ©   (2003-01-09 17:52) [0]

как узнать рядом (слева и права) стояшие слова СПАСИБО


← →
Mike Kouzmine   (2003-01-09 17:58) [1]

Pos ?


← →
Verg ©   (2003-01-09 17:59) [2]


function SeparateLeft(const Value, Delimiter: string): string;
var
x: Integer;
begin
x := Pos(Delimiter, Value);
if x < 1 then
Result := Trim(Value)
else
Result := Trim(Copy(Value, 1, x - 1));
end;

{==============================================================================}

function SeparateRight(const Value, Delimiter: string): string;
var
x: Integer;
begin
x := Pos(Delimiter, Value);
if x > 0 then
x := x + Length(Delimiter) - 1;
Result := Trim(Copy(Value, x + 1, Length(Value) - x));
end;




← →
laser ©   (2003-01-09 18:12) [3]

СПАСИБО !!! Verg !!!



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.44 MB
Время: 0.011 c
1-62539
kofman
2003-01-09 16:03
2003.01.20
Как посчитать время работы потока?


7-62870
cecist
2002-11-05 16:52
2003.01.20
Logon в Windows2000


6-62714
AleksChern
2002-11-14 12:05
2003.01.20
Пароль NetWare


14-62846
Dmitriy_R
2002-12-24 07:34
2003.01.20
Сервис Win 2000 (NT)


3-62340
leonon
2002-12-23 16:18
2003.01.20
Работа с базой по сети




   Наверх