Save field text to file

Adrian Williams adrian at clubtype.co.uk
Sun Dec 10 09:16:54 CST 2006


Mark,
Thanks for that. Logical really. Just shows my newness to Rev!

Your suggestion about filetype saves the text out to a file,
but the file is Saved with the filename tFilePath. What's wrong
with my code that "Untitled.txt" is not used?

  case "Save"
     ask file empty with "Untitled.txt"
     put URL tURLfile into URL ("file:" & tFilePath)

     set the filetype to "ttxtTEXT"
     put fld edtText into url ("file:" &  tFilePath)
     break

Many thanks,
Adrian

On 10 Dec 2006, at 13:41, Mark Schonewille wrote:

> Adrian,
>
> Normally, when you build your standalone, you can turn on an option to 
> have the standalone builder search for components that need to be 
> included. It will include the internet library automatically.
>
>
> However, if you are using a password protected stack, you need to 
> include the library yourself. On the General pane of the Standalone 
> Application Settings, click on the radio button names Select 
> inclusions for the standalone applications. Next, in the list of 
> script libraries, make sure that Internet is hilighted. Now you can 
> close the standalone builder and create your standalone. The internet 
> library should now be included.
>
> Best,
>
> Mark
>
> --
>
> Economy-x-Talk
> Consultancy and Software Engineering
> http://economy-x-talk.com
> http://www.salery.biz
>
> Get your store on-line within minutes with Salery Web Store software. 
> Download at http://www.salery.biz
>
> Op 10-dec-2006, om 14:08 heeft Adrian Williams het volgende geschreven:
>
>> On 9 Dec 2006, at 22:08, Mark Schonewille wrote:
>>
>>> Hi Adrian,
>>>
>>> Klaus has given useful advice already, but I want to add the 
>>> following. You might want to set the filetype before saving a text 
>>> file:
>> Mark,
>> Thanks - this did work!
>> So how do I know or how do I ensure the internet library will be 
>> included
>> with my stack when made into an app. so I don't have to use the old 
>> fashioned
>> open file for write etc?
>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your 
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
>
_______________________________________
Adrian Williams Design Ltd (trading as Club Type),
44 Mill Lane,
Merstham,
Redhill,
Surrey RH1 3HQ, UK

Telephone/Facsimile: 01737 643300
dFax (computer reception): 0870 0515681

International tel/fax (UK)+44 1737 643300
International dFax:  (UK)+44 870 0515681

Email: adrian at clubtype.co.uk
Website: http://www.clubtype.co.uk



More information about the use-livecode mailing list