Save field text to file

Adrian Williams adrian at
Sun Dec 10 11:49:18 EST 2006

Thanks Mark,
That works a treat.
I still getting used to Rev doing stuff like "it" without me asking for 
The --comments REALLY help.

On 10 Dec 2006, at 16:16, Mark Schonewille wrote:

> case "Save"
>   ask file empty with "Untitled.txt"
>   -- now, the variable 'it' contains a file path or
>   -- it is empty if the user pressed Cancel
>   if it is not empty then
>     put it into myFile
>     -- set filetype before creating a file
>     set the filetype to "ttxtTEXT"
>     put fld "edtText" into url ("file:" &  myFile)
>   end if
>   break
Club Type
adrian at

More information about the Use-livecode mailing list