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

[REBOL] Re: Default choice

From: mh983:usa at: 22-Mar-2002 23:34

Ok, just setting /text seems to be working for me now. In my case, I have a function that updates any choice, given an integer index read from the database. The current position in /data moves around based on what's selected, so you have to be sure you put 'head in there so that the index is always from the start of the 'data series; that's the part I was missing. Now this seems terribly unrelated to your question -- sorry. update-choice: func [ "sets the given choice to the value at the given index" the-choice index ][ ; set the text to the correct value for the index ; +1 to skip the "choose one..." option that I put at the ; beginning of every choice the-choice/text: pick head the-choice/data (index + 1) show the-choice ]