gettingstarted
[Top] [All Lists]

Re: Saving data to an external file

To: Getting Started <gettingstarted at lists dot realsoftware dot com>
Subject: Re: Saving data to an external file
From: Lennox Jacob <lenpartico at yahoo dot com>
Date: Sun, 30 Jul 2006 19:06:19 -0700 (PDT)
Delivered-to: listarchive at realsoftware dot com
Delivered-to: gettingstarted at lists dot realsoftware dot com
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=Lmz8OtzdEdY6+qB6U32NDlPGVf03FAVLrzrUaN6cUkWZ03KFk26hrP7nmWCzjD8f5523dDdL1x+3uNZRbChzFtSn6x4sKU7PT9AgXZApbgE/QXzZO0YmNo/bdIFTvc5bTrlPotj/N7hDerQaJvJVs7t/mLvhiwZh/7A2kXXOAAg= ;
Hi Russ & Briman,
I have this:

Dim f As folderitem
Dim TOS As TextOutputStream

f = DesktopFolder.Child("myExpFile")
If f exists then
If f <> Nil then
TOS = f.CreateTextFile
TOS.WriteLine FirstName.Text
TOS.WriteLine LastName.Text
TOS.WriteLine Age.Text
TOS.WriteLine Address.Text
TOS.Close
end if
else
'do nothing
end if

but this does not create any file.
Any suggestions?
Thanks.
Lennox.

Russ Jones <r dot jones at sympatico dot ca> wrote: Hi Lennox.

I believe you would find the f=DesktopFolder() method useful.
You could use that to initialize a folderitem, then use the f.child  
method to initialize each of your text files.

Russ

On Jul 30, 2006, at 8:42 PM, Lennox Jacob wrote:

> Hello,
> I have a Pushbutton named Export, which,when clicked, I would like  
> it to export data (EF1.text, EF2.text, EF3.text, EF4.text) from  
> some chosen editfields (EF1, EF2, EF3, EF4) to a new text file on  
> the desktop.
> Not Save or SaveAs like when the whole document is saved.
> How is that done?
> Thanks.
> Lennox.
_______________________________________________
Unsubscribe or switch delivery mode:


Search the archives of this list here:



                
---------------------------------
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls.  Great rates 
starting at 1¢/min.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>