home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.pascal.borland      Borland Pascal was actually pretty neat      2,978 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 2,130 of 2,978   
   Klaus Jorgensen to All   
   Re: printing variable problems   
   13 Apr 06 12:23:51   
   
   From: kj@no.spam   
      
   JG wrote :   
   > Marco van de Voort said   
   >   
   >> On 2006-04-12, Klaus Jorgensen  wrote:   
   >>> I'm no expert in proportional fonts, but are you telling me that   
   >>> printing a string that is prefixed with a given number of space   
   >>> characters, does not always start at the same position?   
   >>>   
   >>> Will the printer print the xxx's on a different position if printed as   
   >>> follows:   
   >>> writeln(space(30),'xxx iiiiiiii');   
   >>> writeln(space(30),'xxx mmmmmmmm');   
   >   
   >> No, but the "iiii" and "mmm" section have different lengths, and   
   >   
   >>   writeln('i',space(30),'xxx iiiiiiii');   
   >>   writeln('w',space(30),'xxx mmmmmmmm');   
   >   
   >> typically goes wrong.   
   >   
   > More importantly, the OP wants (needs) a multi column facility, even if   
   > not for two different descriptions on one line (cannot see why that is   
   > necessary) but certainly for a Quantity, Description, Price, (VAT), Line   
   > total . . .   so a minimum of 4 and probably more 'Tabs' that align   
   > correctly - and with money the decimal point needs to be aligned (for a   
   > professional appearance).   
   >   
      
   That's my point. Using a space(x) function for each column - e.g.:   
      
   writeln(partno,^M,space(20),descr,^M,space(50),price:10:2);   
      
      
   /klaus   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca