|
-
Oct 13th, 2004, 12:01 PM
#1
Thread Starter
Hyperactive Member
save text with out extra lines
i have a code that saves some settings in my app like a picture path for the background
i use the rtf as i dont want to code a lot of code just to save a text doc. i got it to save a text doc but it saves with 1 or 2 lines with nothing on it and when i load my app. it does not work because of these lines.
can i get my app to save text on only one line no matter how long the path is?
Last edited by dandono; Oct 14th, 2004 at 01:47 AM.
If there is only one perfect person in the universe, does that make them imperfect?
-
Oct 13th, 2004, 12:23 PM
#2
post the code that you're using.
-
Oct 13th, 2004, 12:29 PM
#3
Thread Starter
Hyperactive Member
Private Sub Form_Unload(Cancel As Integer)
sMyfile = App.Path + "\bgpath.txt"
If Len(Trim(sMyfile)) <> 0 Then
Open sMyfile For Output As #1
Print #1, bgpath.Text
Close #1
End If
End Sub
when i save text from a rich text box. it adds a new line then my program cannot read it properly
it is a text doc with the location of an image that my app makes its background picture
If there is only one perfect person in the universe, does that make them imperfect?
-
Oct 14th, 2004, 12:57 AM
#4
Print #1, Replace(bgpath.Text, vbCrlf, "");
-
Oct 14th, 2004, 12:58 AM
#5
Add the checkmark and the word [RESOLVED] to the first post in the thread to mark it as resolved.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|