I was advised to change to the followingWhat does rcftext do?VB Code:
rtbNotes.savefile App.Path & "\Notes\" & NotesName & ".not", rcftext
Printable View
I was advised to change to the followingWhat does rcftext do?VB Code:
rtbNotes.savefile App.Path & "\Notes\" & NotesName & ".not", rcftext
I think it's a mistype.... it should read RTFText..... it tells the RTB to save it as plain text, as oppposed to full RTF, which is the default.
That should be rtftext. Here's the explanation from MSDN:
Settings
The settings for filetype are:
rtfRTF : The RichTextBox control saves its contents as an .rtf file.
rtfText : The RichTextBox control saves its contents as a text file.
(oops, too slow.)
It should be rtfText and not rcfText.Quote:
Originally posted by aikidokid
I was advised to change to the followingWhat does rcftext do?VB Code:
rtbNotes.savefile App.Path & "\Notes\" & NotesName & ".not", rcftext
If you use rtfText then RichTextBox control saves its contents as a text file or
If u use rtfRTF then The RichTextBox control saves its contents as an .rtf file.
Kinjal
Savefile method contents of your RichtexBox to a 2 types of files:
1. rtfRTF 0 (Default) - Rich Text Format (almost like MS Word)
2. rtfText 1 Text - Regular ASCII format (plain text)
Sorry for typo. Must be:
Savefile method can save contents ...
No, it doesn't have to be rtfText - it could be either one.Quote:
It should be rtfText and not rcfText
Um.... rcfText isn't an option..... even your post said so....I think he typed rcfText, but mean rtfText.....Quote:
Originally posted by IROY55
No, it doesn't have to be rtfText - it could be either one.
Oops, I missread it. Sorry.
That's OK. :D It happens to the best of us.... :pQuote:
Originally posted by IROY55
Oops, I missread it. Sorry.