![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, Within Access2003 I use this peace of code: Open Filename For Output As #1 Print #1, SomeText Close #1. When I read the contents of Filename, it has two bytes more, viz. Chr(13)Chr(10). How can I prevent the addition of these two bytes? Thanks, Imb. Without the statement that sets the value of the variable Filename, |
#3
| |||
| |||
|
|
imb <im... (AT) onsmail (DOT) nl> wrote in news:bc2b3f17-f5ee-4892-aaf7- 94347a828... (AT) a15g2000yqm (DOT) googlegroups.com: Hi, Within Access2003 I use this peace of code: Open Filename For Output As #1 Print #1, SomeText Close #1. When I read the contents of Filename, it has two bytes more, viz. Chr(13)Chr(10). How can I prevent the addition of these two bytes? Thanks, Imb. Without the statement that sets the value of the variable Filename, people will not be able to help. Note: Chr(13)Chr(10) is the two bytes of the Windows Newline . -- Bob Q. PA is y I've altered my address.- Hide quoted text - - Show quoted text - |
#4
| |||
| |||
|
|
Hi, Within Access2003 I use this peace of code: Open Filename For Output As #1 Print #1, SomeText Close #1. When I read the contents of Filename, it has two bytes more, viz. Chr(13)Chr(10). How can I prevent the addition of these two bytes? Thanks, Imb. |
#5
| |||
| |||
|
|
Open Filename For Output As #1 Print #1, SomeText Close #1. When I read the contents of Filename, it has two bytes more, viz. Chr(13)Chr(10). How can I prevent the addition of these two bytes? |
#6
| |||
| |||
|
|
Hi, Within Access2003 I use this peace of code: Open Filename For Output As #1 Print #1, SomeText Close #1. When I read the contents of Filename, it has two bytes more, viz. Chr(13)Chr(10). How can I prevent the addition of these two bytes? Thanks, Imb. |
#7
| |||
| |||
|
|
On Oct 9, 11:46*pm, Bob Quintal <rquin... (AT) sPAmpatico (DOT) ca> wrote: imb <im... (AT) onsmail (DOT) nl> wrote in news:bc2b3f17-f5ee-4892-aaf7- 94347a828... (AT) a15g2000yqm (DOT) googlegroups.com: Hi, Within Access2003 I use this peace of code: Open Filename For Output As #1 Print #1, SomeText Close #1. When I read the contents of Filename, it has two bytes more, viz. Chr(13)Chr(10). How can I prevent the addition of these two bytes? Thanks, Imb. Without the statement that sets the value of the variable Filename, people will not be able to help. Note: Chr(13)Chr(10) is the two bytes of the Windows Newline . -- Bob Q. PA is y I've altered my address.- Hide quoted text - - Show quoted text - Hi Bob, Filename is the name of the file to write to, including the path. SomeText is a string of characters. Yes, Chr(13)Chr(10) is the Windows Newline, but why is this added to the file? I just want to have the value of SomeText in the file, because this file is passed to a next application, that does not like this Newline. Thanks, Imb. |
#8
| |||
| |||
|
|
"imb" <im... (AT) onsmail (DOT) nl> wrote in message news:bc2b3f17-f5ee-4892-aaf7-94347a8284c6 (AT) a15g2000yqm (DOT) googlegroups.com... Hi, Within Access2003 I use this peace of code: Open Filename For Output As #1 Print #1, SomeText Close #1. When I read the contents of Filename, it has two bytes more, viz. Chr(13)Chr(10). How can I prevent the addition of these two bytes? Thanks, Imb. The Print # command appends a newline unless you suffix it with a semi-colon, ie: Print #1, SomeText; or Print #1, "Testing"; Incidentally, it's good practice to obtain a free file number for use with all file IO commands: Dim f As Integer f = FreeFile Open Filename For Output As #f etc. |
#9
| |||
| |||
|
|
I was wondering how or where you got this kind of information |
![]() |
| Thread Tools | |
| Display Modes | |
| |