Results 1 to 10 of 10

Thread: rcftext?

  1. #1

    Thread Starter
    Frenzied Member aikidokid's Avatar
    Join Date
    Aug 2002
    Location
    Bristol, UK
    Posts
    1,968

    Lightbulb rcftext?

    I was advised to change to the following
    VB Code:
    1. rtbNotes.savefile App.Path & "\Notes\" & NotesName & ".not", rcftext
    What does rcftext do?
    If somebody helps you, take time to RATE the post. I do.

    "FAILURE IS NOT AN OPTION. It comes bundled with the software."

    Below are some of the threads that have helped me along the way:

    CodeBank submission:
    Listview Backcolor (without subclassing)

    Loading Treeview Nodes From A Database, Creating Registry Keys, Count Number of Lines in TextBox , Excellent RichTextBox Tricks & Tips
    Ideas & Screen Shots For A Code Library App
    How to do Data validation in Excel, Conditional Formating in Excel

  2. #2
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687
    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.
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  3. #3
    Frenzied Member John McKernan's Avatar
    Join Date
    Jan 2002
    Location
    SE PA
    Posts
    1,295
    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.)

  4. #4
    Fanatic Member kinjalgp's Avatar
    Join Date
    Apr 2000
    Location
    India
    Posts
    535

    Re: rcftext?

    Originally posted by aikidokid
    I was advised to change to the following
    VB Code:
    1. rtbNotes.savefile App.Path & "\Notes\" & NotesName & ".not", rcftext
    What does rcftext do?
    It should be rtfText and 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

  5. #5
    PowerPoster
    Join Date
    Aug 2002
    Location
    NY, NY
    Posts
    2,139
    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)
    Roy

  6. #6
    PowerPoster
    Join Date
    Aug 2002
    Location
    NY, NY
    Posts
    2,139
    Sorry for typo. Must be:
    Savefile method can save contents ...
    Roy

  7. #7
    PowerPoster
    Join Date
    Aug 2002
    Location
    NY, NY
    Posts
    2,139
    It should be rtfText and not rcfText
    No, it doesn't have to be rtfText - it could be either one.
    Roy

  8. #8
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687
    Originally posted by IROY55
    No, it doesn't have to be rtfText - it could be either one.
    Um.... rcfText isn't an option..... even your post said so....I think he typed rcfText, but mean rtfText.....
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  9. #9
    PowerPoster
    Join Date
    Aug 2002
    Location
    NY, NY
    Posts
    2,139
    Oops, I missread it. Sorry.
    Roy

  10. #10
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687
    Originally posted by IROY55
    Oops, I missread it. Sorry.
    That's OK. It happens to the best of us....
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width