One bit of clarification (mea culpa...)

Joel Neely wrote:
> 
...
> 
> 8<--------------------
>     test1: make object! [
>         firstNames: ["John" "Jane" "Bob"]
>         lastNames: ["Smith" "Doe" "Doaks"]
>         ui: layout [
>             across
>             vh2 "Names:"
>             return
>             firstName: choice "John" "Jane" "Bob" [sayName]
>             lastName: choice "Smith" "Doe" "Doaks" [sayName]
>             return
>             fullName: text " " 200
>             return
>             button "Close" [unview]
>         ]
>         sayName: function [] [theName] [
>             fullName/text: theName: join firstName/text [
>                 " " lastName/text
>             ]
>             print mold theName
>             show fullName
>         ]
>         run: function [][][
>             sayName
>             view center-face ui
>         ]
>     ]
> 
>     test1/run
> 8<--------------------
> 

If I use

8<--------------------
; ...
        firstName: choice texts firstNames [sayName]
        lastName:  choice texts lastNames  [sayName]
; ...
8<--------------------

then the choice buttons get populated from the blocks, but
when the window first appears, the choice buttons are
unlabeled and the full name text is

    none none

This implies to me that using 'texts is somehow different
from supplying the literal sequence of strings in-line.  (Is
this a "bug" or a "feature"?  ;-)

I'd be content, however, if I knew what code to place before

    sayName
    view center-face ui

to force each choice to set itself to the first alternative.

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

Reply via email to