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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,7bf23c8e794b6462 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!h48g2000cwc.googlegroups.com!not-for-mail From: "Jerry" Newsgroups: comp.lang.ada Subject: Re: STRING length Date: 16 Nov 2006 00:25:24 -0800 Organization: http://groups.google.com Message-ID: <1163665524.440261.7400@h48g2000cwc.googlegroups.com> References: <1163544675.070347.64490@h54g2000cwb.googlegroups.com> NNTP-Posting-Host: 67.40.87.12 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: posting.google.com 1163665529 302 127.0.0.1 (16 Nov 2006 08:25:29 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 16 Nov 2006 08:25:29 +0000 (UTC) User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-US) AppleWebKit/420+ (KHTML, like Gecko, Safari/420) OmniWeb/v607.5,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: h48g2000cwc.googlegroups.com; posting-host=67.40.87.12; posting-account=Ax24hA0AAABV39UFqUVhb0kauOuAbI3T Xref: g2news2.google.com comp.lang.ada:7495 Date: 2006-11-16T00:25:24-08:00 List-Id: markww wrote: > Hi, > > How does one use a variable length string in ada? I created a record > like: > You might like the ability to define Borland-style strings. You can download a package containing such from here: http://homepage.sunrise.ch/mysunrise/gdm/gsoft.htm >>From here http://homepage.sunrise.ch/mysunrise/gdm/pascada.htm it seems that the gist of it is thus: type BorString( maxlength: positive ) is record length: Natural:= 0; s: String( 1..maxlength ); end record; Jerry