Saving an EditField to text not rtf (REALbasic getting started Mailinglist archive)

Back to the thread list
Previous thread: CopyFileTo
Next thread: Stop Executing Code


RB Database   -   tom.russell transport.alstom.com
  Saving an EditField to text not rtf   -   Danny Jackson
   Re: Saving an EditField to text not rtf   -   Seth Willits
   Re: Saving an EditField to text not rtf   -   Emile Schwarz
    Re: Saving an EditField to text not rtf   -   Danny Jackson
     Re: Saving an EditField to text not rtf   -   Seth Willits
    Re: Saving an EditField to text not rtf   -   Danny Jackson

Saving an EditField to text not rtf
Date: 30.05.04 05:16 (Sun, 30 May 2004 00:16:09 -0400)
From: Danny Jackson
I'm new to RB and have searched all of the threads and documentation for a way to save a multi line editfield contents to a plain text file without any rtf code.

What I'm trying to do is to create an Html editor and it cannot have any rtf code in it.

All of the examples I've seen are for a single line editfield and are not compatable with my app.

I'm using RB 5.2 for Windows and am running Windows ME as an operating system.

Any help would be greately appreciated

---
With warmest regards, Danny


____________________________________________________________
Find what you are looking for with the Lycos Yellow Pages
http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRCCcos10
_______________________________________________
Unsubscribe or switch delivery mode:
<http://support.realsoftware.com/listmanager/>

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

Re: Saving an EditField to text not rtf
Date: 30.05.04 07:42 (Sat, 29 May 2004 23:42:00 -0700)
From: Seth Willits
On May 29, 2004, at 9:16 PM, Danny Jackson wrote:

> I'm new to RB and have searched all of the threads and documentation
> for a way to save a multi line editfield contents to a plain text file
> without any rtf code.

dim tout as TextOutputStream
tout.write EditField.Text

The text property of the editfield only contains text.


Seth Willits
------------------------------------------------------------------------
---
President and Head Developer of Freak Software - http://www.freaksw.com
REALbasic Guru at ResExcellence - http://www.resexcellence.com/realbasic

"Yesterday we obeyed kings and bent our necks before emperors. But
today we kneel only to truth, follow only beauty, and obey only love."
-- Kahlil Gibran
------------------------------------------------------------------------
---

_______________________________________________
Unsubscribe or switch delivery mode:
<http://support.realsoftware.com/listmanager/>

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

Re: Saving an EditField to text not rtf
Date: 30.05.04 08:58 (Sun, 30 May 2004 09:58:07 +0200)
From: Emile Schwarz


<email address removed> wrote:
> Subject: Saving an EditField to text not rtf
> From: "Danny Jackson" <<email address removed>>
> Date: Sun, 30 May 2004 00:16:09 -0400
>
> I'm new to RB and have searched all of the threads and documentation for a way to save a multi line editfield contents to a plain text file without any rtf code.
>
> What I'm trying to do is to create an Html editor and it cannot have any rtf code in it.
>
> All of the examples I've seen are for a single line editfield and are not compatable with my app.
>
> I'm using RB 5.2 for Windows and am running Windows ME as an operating system.
>
> Any help would be greately appreciated
>

Danny, I think you will not like my answer... Save the EditField contents as
text, not Styled EditField.

I am not sure at 100% that this really helps (not tested). If that is not the
case, try BinaryStream...

Of course, you will loose (if that works as you want) the styles :(

Another solution could be to use a standard EditField (no styles), but then you
do not have colors, Bold/Italic/and so on... in your html editor :(

Compromises...

HTH,

Emile

_______________________________________________
Unsubscribe or switch delivery mode:
<http://support.realsoftware.com/listmanager/>

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

Re: Saving an EditField to text not rtf
Date: 30.05.04 22:20 (Sun, 30 May 2004 17:20:40 -0400)
From: Danny Jackson
I used the BinaryStream and it works, you're a genius when I'm as rich as Bill Gates I'll buy you the fully staffed home of your dreams along with any vehicles you want (grin)

For posterity sake this is the code I used:

Dim WriteToFile as BinaryStream
Dim f as FolderItem
ftSaveFolderItem("Html","")
If f <> Nil Then
WriteToFileðCreateBinaryFile("Html")
WriteToFile.Write Editfield1.Text
WriteToFile.close
Me.Title o.Name
End If

Hopefully this will help someone in the future facing a similar problem.

---
With warmest regards, Danny

--------- Original Message ---------

DATE: Sun, 30 May 2004 09:58:07
From: Emile Schwarz <<email address removed>>
To: <email address removed>
Cc:

>
><email address removed> wrote:
>> Subject: Saving an EditField to text not rtf
>> From: "Danny Jackson" <<email address removed>>
>> Date: Sun, 30 May 2004 00:16:09 -0400
>>
>> I'm new to RB and have searched all of the threads and documentation for a way to save a multi line editfield contents to a plain text file without any rtf code.
>>
>> What I'm trying to do is to create an Html editor and it cannot have any rtf code in it.
>>
>> All of the examples I've seen are for a single line editfield and are not compatable with my app.
>>
>> I'm using RB 5.2 for Windows and am running Windows ME as an operating system.
>>
>> Any help would be greately appreciated
>>
>Danny, I think you will not like my answer... Save the EditField contents as
>text, not Styled EditField.
>
>I am not sure at 100% that this really helps (not tested). If that is not the
>case, try BinaryStream...
>
>Of course, you will loose (if that works as you want) the styles :(
>
>Another solution could be to use a standard EditField (no styles), but then you
>do not have colors, Bold/Italic/and so on... in your html editor :(
>
>Compromises...
>
>HTH,
>
>Emile
>
>_______________________________________________
>Unsubscribe or switch delivery mode:
><http://support.realsoftware.com/listmanager/>
>Search the archives of this list here:
><http://support.realsoftware.com/listarchives/lists.html>


____________________________________________________________
Find what you are looking for with the Lycos Yellow Pages
http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRCgcos10
_______________________________________________
Unsubscribe or switch delivery mode:
<http://support.realsoftware.com/listmanager/>

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

Re: Saving an EditField to text not rtf
Date: 30.05.04 22:24 (Sun, 30 May 2004 14:24:01 -0700)
From: Seth Willits
On May 30, 2004, at 2:20 PM, Danny Jackson wrote:

> I used the BinaryStream and it works, you're a genius when I'm as rich
> as Bill Gates I'll buy you the fully staffed home of your dreams along
> with any vehicles you want (grin)

You didn't get my email?


Seth Willits
------------------------------------------------------------------------
---
President and Head Developer of Freak Software - http://www.freaksw.com
REALbasic Guru at ResExcellence - http://www.resexcellence.com/realbasic

"When purchasing that gift for your Special Someone guys remember, girls
like cute things. If it makes you want to puke, your chick will totally
love it."
-- Someone else out There
------------------------------------------------------------------------
---

_______________________________________________
Unsubscribe or switch delivery mode:
<http://support.realsoftware.com/listmanager/>

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

Re: Saving an EditField to text not rtf
Date: 31.05.04 08:54 (Mon, 31 May 2004 03:54:01 -0400)
From: Danny Jackson
I tried it and all it would save is one line of text. But I'm including you in the Bill Gates offer(grin agian)

---
With warmest regards, Danny

--------- Original Message ---------

DATE: Sun, 30 May 2004 14:24:01
From: Seth Willits <<email address removed>>
To: Getting Started <<email address removed>>
Cc:

>On May 30, 2004, at 2:20 PM, Danny Jackson wrote:
>
>> I used the BinaryStream and it works, you're a genius when I'm as rich
>> as Bill Gates I'll buy you the fully staffed home of your dreams along
>> with any vehicles you want (grin)
>
>You didn't get my email?
>
>Seth Willits
>------------------------------------------------------------------------
>---
>President and Head Developer of Freak Software - http://www.freaksw.com
>REALbasic Guru at ResExcellence - http://www.resexcellence.com/realbasic
>
>"When purchasing that gift for your Special Someone guys remember, girls
>like cute things. If it makes you want to puke, your chick will totally
>love it."
> -- Someone else out There
>------------------------------------------------------------------------
>---
>
>_______________________________________________
>Unsubscribe or switch delivery mode:
><http://support.realsoftware.com/listmanager/>
>Search the archives of this list here:
><http://support.realsoftware.com/listarchives/lists.html>


____________________________________________________________
Find what you are looking for with the Lycos Yellow Pages
http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRCocos10
_______________________________________________
Unsubscribe or switch delivery mode:
<http://support.realsoftware.com/listmanager/>

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





Links
MBS REAL studio Plugins - Nachhilfe in Kretz