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.0 required=5.0 tests=BAYES_20,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,7bf23c8e794b6462,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!h54g2000cwb.googlegroups.com!not-for-mail From: "markww" Newsgroups: comp.lang.ada Subject: STRING length Date: 14 Nov 2006 14:51:15 -0800 Organization: http://groups.google.com Message-ID: <1163544675.070347.64490@h54g2000cwb.googlegroups.com> NNTP-Posting-Host: 68.174.181.181 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1163544685 24418 127.0.0.1 (14 Nov 2006 22:51:25 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 14 Nov 2006 22:51:25 +0000 (UTC) User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: h54g2000cwb.googlegroups.com; posting-host=68.174.181.181; posting-account=cNKOMg0AAADT2ug8oGSYYXo8bsDvrHzw Xref: g2news2.google.com comp.lang.ada:7454 Date: 2006-11-14T14:51:15-08:00 List-Id: Hi, How does one use a variable length string in ada? I created a record like: type MY_RECORD is record m_strName : STRING(1..5); m_strPhone : STRING(1..5); m_strAddress : STRING(1..5); end record; However when trying to assign the members of the record, at runtime I may get an exception if the assigned string is not exactly 5 characters. Is there a different STRING type which doesn't care how long the assigned string is (as long as it's shorter than the max) or which just grows to meet the assigned string length? Thanks