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

[REBOL] Re: Newbie with view & vid

From: sunandadh:aol at: 19-Feb-2003 17:38

Alberto:
> pnl: layout [ > fld: field [print message] ; this works, value of 'message change
with
> fld/txt > chs: choice "one" "two" "three" [print number] ; value of 'number > don't change, why? > ] > > message: fld/text > number: chs/text > > view pnl >
Welcome to Rebol and View!! There are inconsistencies between the various styles and their available fields. It is confusing at first. Try number: chs/data ;; dat holds the text of the selected item You can also write: chs: choice "one" "two" "three" [print value] Value has a local meaning inside the choice action factet: it means the value of the item selected. Also of use is: number: chs/texts ;; a block of the (three) choice texts. And do this to take a look around the other internal fields. first chs ;; see all the available fields chs/text ;; etc -- explore what's in each field. Happy Rebolin' Sunanda