function SplitString(Source, Deli: string ): TStringList;stdcall;
            var
            EndOfCurrentString: byte;
            StringList:TStringList;
            begin
            StringList:=TStringList.Create;
            while Pos(Deli, Source)>0 do
            begin
            EndOfCurrentString := Pos(Deli, Source);
            StringList.add(Copy(Source, 1, EndOfCurrentString - 1));
            Source := Copy(Source, EndOfCurrentString + length(Deli), length(Source) - EndOfCurrentString);
            end;
            Result := StringList;
            StringList.Add(source);
            end;

posted on 2013-01-11 09:40  幻劫  阅读(200)  评论(0编辑  收藏  举报