title image


Smiley Re: Text in Textdatei ersetzen
Der Vollständigkeit halber hier nochmal ohne FileSystemObject:



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

ByVal IFName As String, Optional ByVal OFName As String)

Dim L As Long, S As String, FChan As Integer

L = FileLen(IFName)

S = String(L, 0)

FChan = FreeFile()

Open IFName For Binary As FChan

Get FChan, , S

Close FChan

If OFName = "" Then OFName = IFName

On Error Resume Next

Kill OFName

On Error GoTo 0

S = Replace(S, Src, Repl)

Open OFName For Binary As FChan

Put FChan, , S

Close FChan

End Function



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: