| Subject |
Re: Editor query |
| From |
Rob Rickard <rob@nospam.calculation.com.au> |
| Date |
Fri, 17 Jul 2020 21:32:47 -0400 |
| Newsgroups |
dbase.getting-started |
Hi Tim
Worked it out thank you.
Regards Rob
Tim Ward Wrote:
> On 17/07/2020 06:05, Rob Rickard wrote:
> > Hi All
> > Wondering if anyone can help me.
> > i am trying to use the editor in my program to make it look better.
> > At the moment i am using entryfields and at the end of the entryfields i add " %0A".
> > i need to add these to the entryfield to send in a text message.
> > The entryfield method works ie trim(entryfield.value)+" %0A" but i am struggling to get the same results from the editor.
> > ideally i want something that resembles the editor layout. The result i am getting is just 1 continually line.
> >
> > Regards Rob
> >
> Hi Rob,
>
> I use an editor object to view a list of text and then copy this to a
> file object in the background to process the list line by line. I did
> use to do this in the editor directly by selecting a line and then using
> the copy to clipboard functionality of the editor but it was patchy and
> missed lines sometimes.
>
> *** Copy text in editor window to a file for processing ***
>
> Editor_csv = new File()
> If Editor_csv.exists("Editor.csv")
> Editor_csv.delete("Editor.csv")
> Endif
> Editor_csv.create("Editor.csv", "RW")
> Editor_csv.puts(form.container3.editor1.value)
>
> then to process
>
> Do While NOT Editor_csv.eof()
> cText = trim(Editor_csv.gets())
> ** process line
> Enddo
|
|