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

[REBOL] Re: how to save text in area to file

From: sunandadh:aol at: 22-Dec-2001 17:39

Hi Yek Soon,
> How can I save the text that a user keys into a area on a panel? > > In Panel 1, I have an area for user to key in text and a button "Save". > How can I do it such that when the button "Save" is pressed, the text in > the area will be saved > to a pre-define text file.
Give the input field a name (e.g. User-Input), add a Write of User-Input/text to the Save button action facet: panel1: layout [ origin 8x8 h2 "Panel 1" button "Save" [write FileName User-Input/Text alert "File saved."] User-Input: area wrap ] Sunanda.