i`am試圖遷移我的代碼在Android上進行工作,所以我在這裏讀http://docwiki.embarcadero.com/RADStudio/XE8/en/Migrating_Delphi_Code_to_Mobile_from_Desktop如何讓我的代碼與zerobased correctley一起工作?
,我知道我還沒有上使用pos
或delete
與zerobased
或我必須把zero based off
,我覺得不好吃關於zero based off
轉彎,所以我解決我的代碼,我改變p := Pos(Sep, S);
要p := S.IndexOf(Sep, 0,0);
但IAM無法使用刪除TStringHelper.Remove
功能,而不是刪除
while (S <> '') and (ParamsCount < 10) do
begin
Inc(ParamsCount);
p := S.IndexOf(Sep, 0,0);
//p := Pos(Sep, S);
if p = 0 then
Params[ParamsCount] := S
else
begin
Params[ParamsCount] := Copy(S, 1, P - 1);
TStringHelper.Remove(S, 1, P + 4); // here how do i use remove its only have integer parameter how to use Remove instead of Delete
//Delete(S, 1, P + 4);
end;
end;
end;
非常感謝你很多大衛很多幫助我很多 – MartinLoanel
對不起,但是,在新版本的德爾福字符串是一個對象?哇;/ –
@TheNorth號這是舊的類型。但助手可以用來擴展其方法範圍。所有這些方法都由RTL助手TStringHelper提供。 –