From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,7572f6fc8125b496 X-Google-Attributes: gid103376,public From: "Samuel T. Harris" Subject: Re: How do I insert a carriage return into a multi-line text box (ObjectAda)? Date: 1997/09/18 Message-ID: <34215242.CABAF670@hso.link.com>#1/1 X-Deja-AN: 273566149 References: <3416D21B.3366@cacd.rockwell.com> <341825F3.41C67EA6@swl.msd.ray.com> <34193D99.423914E7@elca-matrix.ch> <34198B19.6A91CDDB@hso.link.com> <34202BB9.1FE0@gsg.eds.com> Organization: Hughes Training Inc. - Houston Operations Newsgroups: comp.lang.ada Date: 1997-09-18T00:00:00+00:00 List-Id: Shmuel (Seymour J.) Metz wrote: > > Samuel T. Harris wrote: > > > > There's the rub. Just what a compiler uses to delimite line, page, and > > EOF > > are not specified by the RM. While ASCII.LF is a pretty safe bet, it > > still introduces risk. > > It's worse than that; the operating system may not use *any* characters > as end-of-line or end-of-page delimiters. Mainframes typically have > record-oriented file systems, and any character can appear anywhere in a > record. > So true, so true. Shmuel here correctly points out that what a compiler uses for line and page delimiters may not be used by the operating system (especially if the OS uses none at all). Getting back to the original question, we have no guarantee that the the line delimiter used by the compiler will cause the desired multi-line output in the dialog box. I have been hit with that one while trying to put multi-line text in a single line dialog box (by mistake) and getting annoying kinds of trash on a single line. However, it is a pretty safe bet and a good first stab at the problem in any situation. If it doesn't work for some reason, then find which delimiters do work an use them instead. -- Samuel T. Harris, Senior Engineer Hughes Training, Inc. - Houston Operations 2224 Bay Area Blvd. Houston, TX 77058-2099 "If you can make it, We can fake it!"