Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[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,
>Hi > 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... btnSave/action Now, you can examine a function like this...
>> fun: func [x][yyy] >> first :fun
== [x]
>> second :fun
== [yyy] 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
== [save-form] thus this (hopefully) returns you what you were wanting...
>> first second get in btnSave 'action
== save-form -- Carl Read.