title image


Smiley Re: Text in Textdatei ersetzen
Z.B. so:



Public Function ReplaceTextInFile(ByVal Src As String, ByVal Repl As String, _

ByVal IFName As String, Optional ByVal OFName As String)

Dim FSO As New Scripting.FileSystemObject, Strm As Scripting.TextStream, S As String

Set Strm = FSO.OpenTextFile(IFName, ForReading)

S = Strm.ReadAll

Strm.Close

If OFName = "" Then OFName = IFName

Set Strm = FSO.OpenTextFile(OFName, ForWriting, True)

Strm.Write Replace(S, Src, Repl)

Strm.Close

Set FSO = Nothing

End Function



Verweis auf die Scripting Runtime (SCRRUN.DLL) setzen!


Gruß aus dem Norden
Reinhard


Bitte immer die Access-Version angeben!
DB-Wiki


Wie man Fragen richtig stellt

YaccessAccess-FAQUnd ansonsten: Wikipedia




geschrieben von

Login

E-Mail:
  

Passwort:
  

Beitrag anfügen

Symbol:
 
 
 
 
 
 
 
 
 
 
 
 
 

Überschrift: