webForumDet fria alternativet

spara som ren text (RickTextBox)

.NET

1 svar · 218 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
268 ms totalt · 4 externa anrop · v20260731065814-full.a51de22e
129 ms — deklarationer (db)
0 ms — hämta statistik (cache)
136 ms — hämta tråd, inlägg och bilagor (db)
125 ms — ändringar (db)