Results 1 to 5 of 5

Thread: Avoiding Critical Errors Associated With Textfile Deletion - Solved

Threaded View

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2004
    Location
    United Kingdom
    Posts
    3

    Question Avoiding Critical Errors Associated With Textfile Deletion - Solved

    Hi,

    I'd like to know two simple things.

    1. How do I make linebreaks show up in a textfile? I have a button, for simplicity, call it "cmdTest". When a user clicks cmdTest, I'd like a textbox to fill with say, 2-3 lines of code, laid out one line after another, and then once the program is closed, I'd like that info saved to a textfile. The user will have already supplied the location of the file which I've retrieved using CommonDialog filter etc, so no problems there - my only problem is putting the info into the textbox with formatting so that the saved textfile looks/reads like this:

    text here
    text here
    text here
    text here
    text here

    What is wrong with the code I used:

    txtExample.text = "text here" + Chr(13) + "text here" + Chr(13) + "text here"

    I thought Chr(13) was a linebreak?

    2. How do you launch an application? I'd like to make a quick access panel of similar applications - the user will show the program where the different .exe's are and then hitting a command button will launch it. If I got the application path using commondialog, what's the code to launch an exe?


    Thanks in advance all.
    Last edited by Tyrell Zeon; Mar 2nd, 2004 at 10:05 PM.

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