So, according to the Function Rules , they would look something like this:

code:

Function RFill($_string, $_count, Optional $_filler)

Dim $_string

if $_filler='' $_filler=' ' endif

while len($_string )LESS THAN SIGNval($_count) $_string=$_string+$_filler loop

$RFill = substr($_string,1,$_count)

Endfunction


Function LFill($_string, $_count, Optional $_filler)

Dim $_string

if $_filler='' $_filler=' ' endif

while len($_string )LESS THAN SIGNval($_count) $_string=$_filler+$_string loop

$LFill = substr($_string,len($_string)-$_count+1,$_count)

Endfunction


So you could do stuff like this:

code:

$test=RFill("MyName",30)
? $test ' = ' len($test)

$test=LFill("2342",30,"0")
? $test ' = ' len($test)

$test=RFill("Me!",30,"WithApples")
? $test ' = ' len($test)


[ 22 November 2001: Message edited by: DrillSergeant ]

_________________________
The Code is out there