Hello.
can u help me.
I have a code:
and i need use in this button functions "Delete(Str: String; Start, Length: Integer)".Code:procedure Tpa.Button2Click(Sender: TObject); var Temp: TStringList; Index: Integer; s: Integer; begin Temp:= TStringList.Create(); try for Index:= 0 to FList.Count - 1 do if ('apple', FList[Index]) <> 0) and (Temp.IndexOf(FList[Index]) = -1) then Temp.Add(FList[Index]); try begin Temp.SaveToFile('fruits.txt'); end; except ShowMessage('error!'); end; finally Temp.Free(); end; end;
I need to remove all 'garbage' after this word.
How do I do this?
example:
'apple ererewerwer'
result:
only 'apple'


LinkBack URL
About LinkBacks




Reply With Quote



Bookmarks
Algorithms and Data Structures
Java tutorials
Algorithms Forum