webForumDet fria alternativet

spara som ren text (RickTextBox)

.NET

1 svar · 220 visningar · startad av firstchoice

Medlem sedan okt. 2001615 inlägg
Frågan#1

Hur sparar jag mitt innehåll i RichTextBoxe som ren text?

som ett rent Text Dokument utan formateringar??

Medlem sedan okt. 20023 030 inlägg
#2

Testa:

Dim iFile As Integer
iFile = FreeFile

Open "C:\foo.txt" For Output As #iFile
    Print #1, RichTextBox1.Text
Close #iFile
262 ms totalt · 4 externa anrop · v20260731065814-full.86ec41c2
126 ms — deklarationer (db)
0 ms — hämta statistik (cache)
133 ms — hämta tråd, inlägg och bilagor (db)
122 ms — ändringar (db)