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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Screenbuf clearing Not Working

Status
Not open for further replies.

jonesy1

Technical User
Feb 20, 2012
31
US
I've been using the following forever and now suddenly it's not working. It writes to the the text file but then clears out the text file upon the Screenbuf$ ="" command.

I'm not sure why this suddenly isn't working anymore.

Screenbuf$ = ""
linebuf$ = Space$ (Maxcolumns%)

Looks like:

filenum% = FreeFile
FileName$ = "H:\Testing\Report1.txt"
Open FileName$ For Output as filenum%
Print # filenum%, screenbuf$; Chr$ (12)
Close filenum%

Screenbuf$ = ""
linebuf$ = Space$ (132)
 
Hi,

Well there was nothing in screenbuf$ when it printed to the file!

Skip,
[sub]
[glasses]Just traded in my old subtlety...
for a NUANCE![tongue][/sub]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top