Вниз
Скачать: 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.01 c
1-62584
Berg
2003-01-08 15:44
2003.01.20
Помогите разобраться с ошибкой


1-62608
Link
2003-01-09 10:27
2003.01.20
Delphi и Excel


4-62901
Goblinus
2002-11-30 02:40
2003.01.20
SetDCPenColor


7-62858
sural
2002-11-02 08:41
2003.01.20
Как точно узнать размер памяти на видеокарте?


3-62349
Sergey13
2002-12-27 11:34
2003.01.20
Песенка ослика-ораклиста 8-)




   Наверх