How to use the print function without writing a return in the file 
Author Message
 How to use the print function without writing a return in the file

I would like to write some text into a file but VB writes always a return
after each call to the 'print' function.

print #astream, "hello "
...
print #astream, "world"

==> "hello"
      "world"

and not "hello world"


Thank you

Thierry Melkebeke



Fri, 26 Mar 1999 03:00:00 GMT  
 How to use the print function without writing a return in the file

Quote:
>I would like to write some text into a file but VB writes always a return
>after each call to the 'print' function.
>print #astream, "hello "
>...
>print #astream, "world"

> ==> "hello"
>       "world"

> and not "hello world"

instead of this...

        print #astream, "hello "

do this...

        print #astream, "hello ";

Regards,
  James Reames

  http://www.mcs.net/~chessman



Fri, 26 Mar 1999 03:00:00 GMT  
 How to use the print function without writing a return in the file

Quote:

> I would like to write some text into a file but VB writes always a return
> after each call to the 'print' function.

> print #astream, "hello "
> ...
> print #astream, "world"

> ==> "hello"
>       "world"

> and not "hello world"


> Thank you

> Thierry Melkebeke

Place a semicolon after the text you are printing like this:

print #astream, "hello ";
print #astream, "world";
--
Come Visit My New Site On The Web.
http://www.nb.net/~michaelr



Fri, 26 Mar 1999 03:00:00 GMT  
 How to use the print function without writing a return in the file



Quote:
> I would like to write some text into a file but VB writes always a return
> after each call to the 'print' function.

Thierry,

Add a semi-colon after the print statement:
 print #channel%, "hello";
 print #channel%, " world"

Steve.



Sat, 27 Mar 1999 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. How to write files without carriage returns?

2. writing to a text file without using quotes?

3. Help:Printing Cystal Report to a print file without file layout

4. Help:Printing Cystal Report to a print file without file layout

5. Print Using Format without a file

6. Printing a file without using the Dialog Control?

7. problem using component with asp page -- result of function not returned, instead original value returned

8. HELP! Printing in VB without using print manager

9. Print without carriage return

10. print line without carriage return

11. VC++: Using CR7 as Print Engine without using a DB

12. How to view the files printed by VB using print to file

 

 
Powered by phpBB® Forum Software