function SplitString(const source,ch:string):tstrings;
//source字符串;ch字符串分割字符;返回值Tstrings相当于字符数组
var
temp:string;
i:integer;
begin
result:=Tstringlist.Create;
temp:=source;
i:=pos(ch,source);
while i<>0 do
begin
result.Add(copy(temp,0,i-1));
delete(temp,1,i);
i:=pos(ch,temp);
end;
result.Add(temp);
end;
//source字符串;ch字符串分割字符;返回值Tstrings相当于字符数组
var
temp:string;
i:integer;
begin
result:=Tstringlist.Create;
temp:=source;
i:=pos(ch,source);
while i<>0 do
begin
result.Add(copy(temp,0,i-1));
delete(temp,1,i);
i:=pos(ch,temp);
end;
result.Add(temp);
end;
begin
Result := Copy(mStr, 1, Pos(mDelimiter, mStr) - 1);
end; { StrLeft }function StrRight(const mStr: string; mDelimiter: string): string;
begin
if Pos(mDelimiter, mStr) <= 0 then
Result := ''
else Result := Copy(mStr, Pos(mDelimiter, mStr) + Length(mDelimiter), MaxInt);
end; { StrRight }//....
var
S: string;
S1, S2: string;
begin
S := '11111111111@eeeeeeeeeeeee';
S1 := StrLeft(S, '@');
S2 := StrRight(S, '@');
end;
Str2:=Copy(Edit.Text,Pos(Edit.Text,'@')+1,Length(Edit.Text)-Pos(Edit.Text,'@'))
// ~ S, Index, Count !3个
//S: 字符串或者数组;
Pos(mDelimiter, mStr) + Length(mDelimiter) 是 count
那Maxint是什么??