Save field text to file

Adrian Williams adrian at clubtype.co.uk
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 
"it"!
The --comments REALLY help.
Adrian

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
http://www.clubtype.co.uk
adrian at clubtype.co.uk




More information about the use-livecode mailing list