[REBOL] Re: Rebiol view Newbie question
From: carl:cybercraft at: 28-Feb-2006 0:27
On Monday, 27-February-2006 at 17:17:43 Thahseen Mohammed wrote,
> I have declared the following button:
> btnSave: button "Save" [save-form]
> Where [save-form] is the associated action.
> Could some help me to How to find out later, what is the name of action
>( save-form in this case ) associated with this button ?
The block in a style is actually the body of a function. With your example, you'd access
the function like so...
Now, you can examine a function like this...
>> fun: func [x][yyy]
>> first :fun
>> second :fun
However, the action function in a style has to be accessed via a path, which complicates
matters, but it's still accessible using GET and IN...
>> layout [btnSave: button "Save" [save-form]]
>> second get in btnSave 'action
thus this (hopefully) returns you what you were wanting...
>> first second get in btnSave 'action
-- Carl Read.