pad: "++++++++++"
== "++++++++++"
>> str: "123"
== "123"
>> insert str skip pad (length? str)
== "123"
>> str
== "+++++++123"

seems ok


On Sat, 1 Dec 2001, Bob Paddock wrote:

> Once again I'm working on my patent downloading script, that you can now
> find in the library.
> 
> I need a string variable that is always ten characters long.
> 
> A variable number of digits or letters from 1 to 10 might be entered in
> a dialog box.
> 
> If less than ten are entered those character positions are filled with a plus
> sign (+) preceding the numbers.
> 
> Examples:
> 
> ++++++++++ [10 of them]
> +++++++++1
> ++++++4321
> +987654321
> 
> What is the best way to do this in Rebol?
> -- 
> To unsubscribe from this list, please send an email to
> [EMAIL PROTECTED] with "unsubscribe" in the 
> subject, without the quotes.
> 

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.

Reply via email to