Two questions (REALbasic getting started Mailinglist archive)
Back to the thread list
Previous thread: [OT] Esoteric RegEx Code Examples
Next thread: New lists up and already in use
| Two questions - David Johnson | |
| RE: Two questions - RBNUBE | |
| Re: Two questions - Norman Palardy | |
| Re: Two questions - Octave Julien | |
| Two questions |
| Date: 08.02.07 05:47 (Wed, 07 Feb 2007 20:47:27 -0800) |
| From: David Johnson |
|
Well, I will ask these and hope for an answer before this list shuts
down. :-) 1. When I create a text file ("text/plain") using textOutputStream1.WriteLine and then read it back, the EndOfLine characters are detected correctly. But when I create a text file with a word processor (like TextEdit) the carriage returns are *not* detected as EndOfLine characters. For example: newarray aplit(fileString, EndOfLine) newarray 0plit(fileString, chr(13) ) Neither of these parse a text processor string into lines. Is there something I can do to a string that will allow the CRs to be seen as EndOfLine? 2. When a user of my appllication saves a document, almost all of the data is text. But the user may have added one (or more) pictures to the document. How do I save the picture with the text and recover it when he opens the document later? RB5.5 pro, OSX 10.3.9 Thanks. As far as the new list is concerned, will the RB regulars (Joe Stout, Geoff Perlmann, et. al.) be answering questions on the new list, or will they be confined to monitoring the forum? Thanks again, David _______________________________________________ Unsubscribe: <<email address removed>> REAL Software has decided to consolidate this mailing list with the online Forums. On Monday, February 12, 2007, this mailing list will no longer be active. We encourage you to continue your REALbasic and REAL SQL Server discussions on the Forums. If you are not presently a member of the forum, please sign up today at <http://forums.realsoftware.com>. |
| RE: Two questions |
| Date: 08.02.07 06:56 (Thu, 8 Feb 2007 00:56:36 -0500) |
| From: RBNUBE |
|
1)
>Is there something I can do to a string that will >allow the CRs to be seen as EndOfLine? Try ReplaceLineEndings: Dim s as String s=ReplaceLineEndings(YourText, EndOfLine) 2. >But the user may have added one (or more) >pictures to the document. I wasn't aware that RB now supports embedded images. I'm still using 5.5.5... If it still doesn't, you could save the images out with a similar name as the document. For instance, Document1_Image_001.jpg, etc. Then load images based on the document name. Of course this isn't fool proof... 3) The new list is already history. RB has declared that they are going to reactivate the NUG list, but they are still dropping this beginner list. HTH _______________________________________________ Unsubscribe: <<email address removed>> REAL Software has decided to consolidate this mailing list with the online Forums. On Monday, February 12, 2007, this mailing list will no longer be active. We encourage you to continue your REALbasic and REAL SQL Server discussions on the Forums. If you are not presently a member of the forum, please sign up today at <http://forums.realsoftware.com>. |
| Re: Two questions |
| Date: 08.02.07 06:55 (Wed, 07 Feb 2007 22:55:47 -0700) |
| From: Norman Palardy |
|
On Feb 07, 2007, at 9:47 PM, David Johnson wrote: > Well, I will ask these and hope for an answer before this list > shuts down. :-) Subscribe to the NUG as REAL has recanted and will NOT be shutting that list down Subscription pages should be back up tomorrow > 1. When I create a text file ("text/plain") using > textOutputStream1.WriteLine and then read it back, the EndOfLine > characters are detected correctly. But when I create a text file > with a word processor (like TextEdit) the carriage returns are > *not* detected as EndOfLine characters. > For example: > > newarray lplit(fileString, EndOfLine) > newarray :plit(fileString, chr(13) ) > > Neither of these parse a text processor string into lines. > > Is there something I can do to a string that will allow the CRs to > be seen as EndOfLine? TextEdit uses Unix line ending which amounts to chr(10) > 2. When a user of my appllication saves a document, almost all of > the data is text. But the user may have added one (or more) > pictures to the document. How do I save the picture with the text > and recover it when he opens the document later? If they are saving documents from TextEdit with pictures you'll be dealing with RTFD documents > RB5.5 pro, OSX 10.3.9 > > Thanks. > > As far as the new list is concerned, will the RB regulars (Joe > Stout, Geoff Perlmann, et. al.) be answering questions on the new > list, or will they be confined to monitoring the forum? Probably back to monitoring the old NUG list (see above) _______________________________________________ Unsubscribe: <<email address removed>> REAL Software has decided to consolidate this mailing list with the online Forums. On Monday, February 12, 2007, this mailing list will no longer be active. We encourage you to continue your REALbasic and REAL SQL Server discussions on the Forums. If you are not presently a member of the forum, please sign up today at <http://forums.realsoftware.com>. |
| Re: Two questions |
| Date: 08.02.07 10:57 (Thu, 8 Feb 2007 10:57:17 +0100) |
| From: Octave Julien |
|
About EndOfLine :
Personaly, I use "EndOfLine.macintosh" in my code. Using the EndOfLineType (Macintosh, Unix or Windows) might be helpful when processing a text that comes from an app such as TextEdit. Octave Le 8 févr. 07, à 05:47, David Johnson a écrit : > Well, I will ask these and hope for an answer before this list shuts > down. :-) > > 1. When I create a text file ("text/plain") using > textOutputStream1.WriteLine and then read it back, the EndOfLine > characters are detected correctly. But when I create a text file with > a word processor (like TextEdit) the carriage returns are *not* > detected as EndOfLine characters. > For example: > > newarray = split(fileString, EndOfLine) > newarray = split(fileString, chr(13) ) > > Neither of these parse a text processor string into lines. > > Is there something I can do to a string that will allow the CRs to be > seen as EndOfLine? > > 2. When a user of my appllication saves a document, almost all of the > data is text. But the user may have added one (or more) pictures to > the document. How do I save the picture with the text and recover it > when he opens the document later? > > RB5.5 pro, OSX 10.3.9 > > Thanks. > > As far as the new list is concerned, will the RB regulars (Joe Stout, > Geoff Perlmann, et. al.) be answering questions on the new list, or > will they be confined to monitoring the forum? > > Thanks again, > David _______________________________________________ Unsubscribe: <<email address removed>> REAL Software has decided to consolidate this mailing list with the online Forums. On Monday, February 12, 2007, this mailing list will no longer be active. We encourage you to continue your REALbasic and REAL SQL Server discussions on the Forums. If you are not presently a member of the forum, please sign up today at <http://forums.realsoftware.com>. |
Links
MBS Filemaker Plugins - Nachhilfe in Eich