给分吧!快
function GetMyStr(Str:String):string;
var
i:integer;
Resultstr,Astr:String;
begin
Resultstr:='';
if str='' then
exit;
i:=pos('#',str);
Astr:=copy(str,i+1,length(str)-i);
i:=pos('#',Astr);
Resultstr:=copy(Astr,1,i-1);
Result:=ResultStr;
end;
procedure TForm1.Button1Click(Sender: TObject);
begin
showmessage(GetMyStr('123#452346#123'))
end;