L
loding
Unregistered / Unconfirmed
GUEST, unregistred user!
//删除字符串中特定的字符
Function DeleteCharacterInString(InputCharacter,InputString: String): String;
Var CharPos : Integer;
Begin
Result := InputString
((注意:为什么一开始就要返回一个值?))
While True Do
Begin
CharPos := Pos(InputCharacter,InputString);
If Not (CharPos = 0) Then
Begin
Delete(InputString,CharPos,1);
End
Else
Begin
Break;
End;
End;
Result := InputString;
End;
Function DeleteCharacterInString(InputCharacter,InputString: String): String;
Var CharPos : Integer;
Begin
Result := InputString
((注意:为什么一开始就要返回一个值?))
While True Do
Begin
CharPos := Pos(InputCharacter,InputString);
If Not (CharPos = 0) Then
Begin
Delete(InputString,CharPos,1);
End
Else
Begin
Break;
End;
End;
Result := InputString;
End;