Here's a quicky UDF:

Anyone got a better name for this UDF ?

code:

break on


$variable = "kixtart"


$fixed = PadRight($Variable,50)


?"fixed = $fixed" + "*"
?"len = " len($fixed)


exit 1


function padright($string,$count)
dim $i,$padding
for $i = 0 to $count
$padding = $padding + " "
next
$padright = substr($string,1,$count)+substr($padding,1,$count-len($string))
endfunction


-Shawn

[ 22 November 2001: Message edited by: Shawn ]