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

updating counter

Status
Not open for further replies.

LucasH

IS-IT--Management
Oct 28, 2003
93
US
Hi all,

Can someone point me in the right direction here? I am importing rows using DBI and I just want to print the number of rows inserted, updating itself after every insert. I can get it to print like this:

1
2
3
4
5
6
etc

But I don't want a new line for each update, I just want to see a counter incrementing on the same line, and I can't figure it out. Any ideas?
 
Try preceding your output with "\r" - on many systems it will cause the cursor to go back to the beginning of the line without making a line break.

--
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top