Hi Yvon,
Be sure to assign the variables to the fields (not the text):
view layout [
text "title" t1: field
text "format" t2: field
button "OK" [unview]
]
print t1/text print t2/text halt
Quoting Alessandro Manotti <[EMAIL PROTECTED]>:
>
> view layout
> [
> text "title" field
> text "format" field
> button "OK"
> ]
>
> Try assigning variables to text as follows:
>
> view layout
> [
> t1: text "title" field
> t2: text "format" field
> button "OK"
> ]
>
>
> --Alessandro
>
> On 5/3/06, Yvan <[EMAIL PROTECTED]> wrote:
>>
>> Hello,
>>
>> this has to be a very very basic newbie question, at least I hope so.
>>
>> Okay, consider the following piece of code:
>>
>> view layout
>> [
>> text "title" field
>> text "format" field
>> button "OK"
>> ]
>>
>> All I want to achieve is:
>>
>> when clicking the OK button,
>> - the values entered in the two fields should be saved in two different
>> variables
>> - the layour should be closed
>>
>> How can I achieve that?
>>
>> Cheers
>> Yvan
>>
>>
>> --
>> To unsubscribe from the list, just send an email to
>> lists at rebol.com with unsubscribe as the subject.
>>
>>
> --
> To unsubscribe from the list, just send an email to
> lists at rebol.com with unsubscribe as the subject.
>
>
--
To unsubscribe from the list, just send an email to
lists at rebol.com with unsubscribe as the subject.