Hi folks,
This is a just another case for me to experience trouble with Replace.
Look at this:
PUBLIC SUB ReplaceStringDruckformulare(kartei AS String, alterString AS
String, neuerString AS String)
DIM pfad, datei, txt AS String
pfad = ini.pfadKarteien() &/ kartei &/ "texte"
FOR EACH datei IN Dir(pfad, "*.frm")
txt = file.Load(pfad &/ datei)
Replace(txt, alterString, neuerString)
file.Save(pfad &/ datei, txt)
NEXT
END
It does load and save the files, but they remain untouched, i. e.
Replace doesn't replace anything. When I give e. g.
alterString = "Name1"
neuerString = "NameNew"
nothing happens.
What am I doing wrong? Thanks for your ideas!
Rolf
------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the
endpoint security space. For insight on selecting the right partner to
tackle endpoint security challenges, access the full report.
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
Gambas-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gambas-user