Re: [Gambas-user] Gambas2: Replace doesn't replace

2013-03-12 Thread Rolf-Werner Eilert
Am 12.03.2013 13:54, schrieb Ricardo Díaz Martín: > Hi Rolf, > > You have to use in your code > > txt = Replace(txt, alterString, neuerString) > > instead of > > Replace(txt, alterString, neuerString) > > Aaaah grr - I made just the same mistake last week but found it after some time :-) "S

Re: [Gambas-user] Gambas2: Replace doesn't replace

2013-03-12 Thread Ricardo Díaz Martín
Hi Rolf, You have to use in your code txt = Replace(txt, alterString, neuerString) instead of Replace(txt, alterString, neuerString) In http://gambasdoc.org/help/lang/replace?v2 you can see as Replace works: *Result* *= Replace (* *String* *,* *Pattern* *,* *ReplaceString* [ *,* *Comparison

[Gambas-user] Gambas2: Replace doesn't replace

2013-03-12 Thread Rolf-Werner Eilert
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 da