len of field

Klaus Major klaus at major-k.de
Thu Aug 25 11:19:44 EDT 2005


Hi Paul,

> Dear Programmers,
>
> I need to find out how to add spaces to a field length if the  
> number of characters are less than 14 to equal 14 charters.
>
> I'm using this:
>
> if the number of char  of tVar < 14 then (I need to add spaces to  
> equal 14 char)

if the number of chars  of tVar < 14 then
    put 14 - the num of chars of tVar into num_o_repeats
    repeat num_o_repeats
       put " " after tVar
       ## or ...after field xyz
    end repeat
end if

> Paul Salyers
> PS1 - Senior Rep.
> PS1 at softseven.org
> Http://ps1.SoftSeven.org

Regards

Klaus Major
klaus at major-k.de
http://www.major-k.de




More information about the use-livecode mailing list