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

I'm a student, please help!!! 1

Status
Not open for further replies.

efrain

Programmer
May 17, 1999
35
US
I am trying to create a tab function so that when outputing to a printer I can specify which column to go to. A function like this would simplify things greatly. I'm not exactly sure where to start? Any ideas? Or is there something out there like this already?
 
setw() is kindof a hassle. I would like to write a function or find one that i can just output some data and then tab over to column 15 then when I output that field, tab over to column 35 and so forth without all the trouble of setting setw(). Is there anyway to do this? I had been able to work this out kindof by converting numerical data to text and getting the string length. But it only works when I'm outputting variables, If I want to hardcode any special characters it throws my count off. Is there any what to get from the output device (the printer) what column it's at and have it go out to next column specified? Sort of like the tab statement in QBasic?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top