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,124 of 2,978   
   JG to dik   
   Re: printing variable problems   
   12 Apr 06 17:46:10   
   
   From: jg@crescentcomputing.co.uk   
      
   "dik" said   
      
   >    with:   
      
   >       procedure sl (s : string ; l : integer) ;   
   >       begin   
   >          if length (s) < l then   
   >             fillchar (s [length (s) + 1], l - length (s), ' ') ;   
   >          s [0] := char (l) ; sl := s ;   
   >       end ;   
      
   >    format output:   
      
   >       writeln (invoice, 'Description: ', sl (item_name, 33) ... etc) ;   
      
   Wont work when proportional spaced font is used (the most common scenario).   
      
   JG   
      
   --- 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