You can do that by generating set-words, like so...

repeat num 5 [
    append myBlock to-set-word join 'rad num: num + 1
]

But I dont find that too elegant myself.  I would do it this way...

repeat num 5 [
    repend myBlock ['radio 'user-data num [radio-selected: face/user-data]]
]

It will make your next step easier.

--Ryan


"[EMAIL PROTECTED]" wrote:

> After some tests, I discovered I could create a block (dinamically, at
> runtime) and use this to create a layout.
> For example: if I want to create some radio buttons at runtime (I'm
> reading some records in a database, and every record generates a radio
> button), I can create a block and...
>
> ==================================
> myBlock: [backcolor gray across]
> append myBlock [radio label "test"]
> view layout myBlock
> ==================================
>
> the previous code functions. But how can I do to assign a different
> variable to every radio-button (see the hypotetical result below):
>
> var1: radio label "test 1" return
> var2: radio label "test 2" return
> var3: radio label "test 3" return
>
> I cannot create var...
>
> Can someone help me?
>
> Thanks! bye!
>
> --
> Prendi GRATIS l'email universale che... risparmia: http://www.email.it/f
>
> Sponsor:
> Il simbolo della rete ha compiuto da poco i 450 anni;
> Ordina il tuo portafortuna su Airbook.it!
> Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=347&d=15-3
> --
> To unsubscribe from this list, please send an email to
> [EMAIL PROTECTED] with "unsubscribe" in the
> subject, without the quotes.

--

Note: When sending me email directly, always make sure to include my name
in the message, otherwise my aggressive spam filters may trash it.

Ryan Cole  *  www.iesco-dms.com  *  707-468-5400


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

Reply via email to