B
bfyb191919
Unregistered / Unconfirmed
GUEST, unregistred user!
sepchar:='';
FunctionTforml.GetSubStrNum(aString:String;SepChar:String):Integer;
var
i:Integer;
StrLen:Integer;
Num:Integer;
begin
StrLen:=Length(aString);
Num:=0;
for i:=1 to StrLen do
if Copy(aString,i,1)=SepChar then
Num:=Num+1;
GetSubSrtNum:=Num;
end:
调用函数GetSubStrNum('09:30 4.900 525 S',SepChar)之后为什么字符串总数为3个呀?
FunctionTforml.GetSubStrNum(aString:String;SepChar:String):Integer;
var
i:Integer;
StrLen:Integer;
Num:Integer;
begin
StrLen:=Length(aString);
Num:=0;
for i:=1 to StrLen do
if Copy(aString,i,1)=SepChar then
Num:=Num+1;
GetSubSrtNum:=Num;
end:
调用函数GetSubStrNum('09:30 4.900 525 S',SepChar)之后为什么字符串总数为3个呀?