Re: Save field text to file

2006-12-11 Thread Adrian Williams

Thanks Sarah,
Adrian

On 10 Dec 2006, at 23:25, Sarah Reichelt wrote:


After getting a file name from the user, you might then want to check
to make sure they didn't delete the ".txt" file extension if that is
important.

Cheers,
Sarah


On 12/11/06, Adrian Williams <[EMAIL PROTECTED]> wrote:

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
[EMAIL PROTECTED]

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution


___
use-revolution mailing list
use-revolution@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: [EMAIL PROTECTED]
Website: http://www.clubtype.co.uk

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Save field text to file

2006-12-09 Thread Mark Schonewille

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:


set the filetype to "ttxtTEXT"
put fld 1 into url "file:/~folder/file.txt"

If you are making a small application or a stack of which you don't  
know whether it will include the internet library, you could also use  
the oldfashioned write statement:


set the filetype to "XCELTEXT"
put "~/folder/file.txt" into myFile
open file myFile for write
write fld 1 to file myFile
close file myFile

Best regards,

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 9-dec-2006, om 17:06 heeft Adrian Williams het volgende geschreven:


On the subject of Saving...  can anyone give me some pointers about
how to Save text from a field into a file with the extension .txt  
for example?

The docs don't explicitly have anything about 'Save'.

Thanks,
Adrian
__



___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Save field text to file

2006-12-09 Thread Klaus Major

Hi Adrian,


On the subject of Saving...  can anyone give me some pointers about
how to Save text from a field into a file with the extension .txt  
for example?

The docs don't explicitly have anything about 'Save'.


on mouseup
   put fld "your field here" into url("file:path/to/text_file.txt")
end mouseup

See the docs for "URL".


Thanks,
Adrian
__
Club Type
http://www.clubtype.co.uk
[EMAIL PROTECTED]


Regards

Klaus Major
[EMAIL PROTECTED]
http://www.major-k.de

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Save field text to file

2006-12-09 Thread Adrian Williams

On the subject of Saving...  can anyone give me some pointers about
how to Save text from a field into a file with the extension .txt for 
example?

The docs don't explicitly have anything about 'Save'.

Thanks,
Adrian
__
Club Type
http://www.clubtype.co.uk
[EMAIL PROTECTED]

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution