I think [EMAIL PROTECTED] wrote:
[Charset iso-8859-1 unsupported, filtering to ASCII...]
> hi,
> 
> i made a template with a multislot and i want to fill him
> 
> i made one example but i'm not sure that is the best way :
> 

> (bind ?liste "")
> (while (<= ?i ?num) do
>       (bind ?liste (str-cat ?liste ?i" "))
>       (bind ?i (+ ?i 1))
> )
> (bind ?listeAnnee (create$ ?liste))

This makes a list containing a single long String with a lot of spaces
and numbers in it. You could use "explode$" instead of "create$" to
turn that String into a list of numbers -- i.e.,

(bind ?listeAnnee (explode$ ?liste))





---------------------------------------------------------
Ernest Friedman-Hill  
Advanced Software Research          Phone: (925) 294-2154
Sandia National Labs                FAX:   (925) 294-2234
PO Box 969, MS 9012                 [EMAIL PROTECTED]
Livermore, CA 94550         http://herzberg.ca.sandia.gov

--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the list
(use your own address!) List problems? Notify [EMAIL PROTECTED]
--------------------------------------------------------------------

Reply via email to