Вниз
Скачать: 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.45 MB
Время: 0.013 c
4-62910
linker
2002-12-02 03:09
2003.01.20
Как заменить иконку стандартной звонилки на мою?


3-62441
Andy Eremin
2002-12-27 07:29
2003.01.20
печать


3-62389
Kudatsky
2002-12-25 12:08
2003.01.20
Numeric-поле


14-62844
Asteroid
2003-01-02 14:00
2003.01.20
Windows без глюков нельзя назвать полноценным, но все же...


14-62751
Driverrr
2003-01-04 16:23
2003.01.20
Инфа о сидюке...




   Наверх