Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » DBISAM Technical Support » Support Forums » DBISAM General » View Thread |
Messages 1 to 3 of 3 total |
StringReplace |
Tue, Jul 10 2007 10:19 AM | Permanent Link |
Thor Warberg | This is compling, but does not work:
AssignFile(F, path); While not Eof (F) do begin ReadLn(F, s); StringReplace(s, "A", "AB", (rfReplaceAll)); next; end; Why is there no replace? Thor Warberg Norway (It seems rather quiet in Borland newsgroups, - due to summer time?) |
Tue, Jul 10 2007 11:52 AM | Permanent Link |
Dave Harrison | Thor Warberg wrote:
> (It seems rather quiet in Borland newsgroups, - due to summer time?) You do know that this is the DBISAM newsgroup and not Borland's, right? > This is compling, but does not work: > > AssignFile(F, path); > > While not Eof (F) do > begin > ReadLn(F, s); > StringReplace(s, "A", "AB", (rfReplaceAll)); > next; > end; > > Why is there no replace? StringReplace is a function. You forgot to assign it back to the variable "s". s := StringReplace(s, "A", "AB", (rfReplaceAll)); Dave |
Tue, Jul 10 2007 11:58 AM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | Thor,
<< StringReplace(s, "A", "AB", (rfReplaceAll)); >> This should be: StringReplace(s, "A", "AB", [rfReplaceAll]); -- Tim Young Elevate Software www.elevatesoft.com |
This web page was last updated on Tuesday, September 17, 2024 at 04:19 AM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |