Показать сообщение отдельно
  #3  
Старый 19.12.2007, 12:28
AlexVMK111 AlexVMK111 вне форума
Прохожий
 
Регистрация: 18.12.2007
Сообщения: 4
Репутация: 10
По умолчанию

unit MyForexUnit;
interface
function GetStrValue(Str : String; Index : Integer):String;
implementation

function FindCharInStr(Str: string; Ch: char):Integer;
Var i: Integer;
Begin

For i:=0 to Length(Str)-1 do
Begin
if Str.Chars[i] = Ch then
Begin
Result:=i;
Exit;
End;
End;
Result:= 0;
End;


Function GetStrValue(Str : String; Index : Integer):String;
Var i: Integer;
Begin
i:= FindCharInStr(Str, ',');
Result:= 'Alex';
End;


end.
Ответить с цитированием