Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Tom Rettigs Library - leadchar(<c string>, <c character>) http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 LEADCHAR(<C string>, <C character>)
 Displays a string with leading characters other than blanks.
 Returns <expC> with each leading blank space in <string> replaced by <char>.

 <string> has leading blanks.
 <char> is the character with which to replace each leading blank.

 Useful when converting numerics to strings with STR().

 LEADCHAR( STR(1234.56, 9, 2), "$" )
    returns "$$1234.56"

 LEADCHAR( STR( 123.45, 9, 2), "$" )
    returns "$$$123.45"

 LEADCHAR( STR(  12.34, 9, 2), "$" )
    returns "$$$$12.34"

 LEADCHAR( STR(    .12, 9, 2), "$" )
    returns "$$$$$0.12"


             Placed in the Public Domain by Tom Rettig Assoc.

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson