[REBOL] Baffled as usual! Re:
From: jkinraid:clear at: 10-Oct-2000 21:03
Hello,
> view layout [
> subtitle "String to Hex/Binary"
> across
> text "String:" value: field button "Go" [result/text: show-all value/text show
result] return
> text "Results:" result: area with [size: 300x120 font: [name: font-fixed]] return
> ]
The problem is that your using a variable called 'value, which is also a
variable inside the button object. The code that gets run when you
press the button is stored inside the button object, and when it runs
the code, it doesn't use the global 'value variable. Like this -
>> value: 100
== 100
>>
>> button: make object! [ value: none do-this: does [print value]]
>> button/do-this
none
>>
Julian