Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

'Print' Problem

Status
Not open for further replies.

sflau

Programmer
Oct 18, 2001
87
0
0
HK
As I want to Print a space to a text file by using
Print# File, strLine
where strLine is space.
However, it print out Null character instead of space in the text file.

Is it any problem in the Print statement in VB?
Or any other alternative to print a text file?
 
have you set strLine to space explicitly?

Paste some more of your code on here
 
Why don't you are using the Spc function????
If you will use Spc function, your Print statement will be like this...
Print #File, Spc(no of spaces)

I hope it will work...
Pammi
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top