From: "Jerry" <lanceboyle@qwest.net>
Subject: Re: STRING length
Date: 16 Nov 2006 00:25:24 -0800
Date: 2006-11-16T00:25:24-08:00 [thread overview]
Message-ID: <1163665524.440261.7400@h48g2000cwc.googlegroups.com> (raw)
In-Reply-To: 1163544675.070347.64490@h54g2000cwb.googlegroups.com
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
next prev parent reply other threads:[~2006-11-16 8:25 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-14 22:51 STRING length markww
2006-11-14 22:24 ` Georg Bauhaus
2006-11-15 0:44 ` markww
2006-11-15 1:09 ` markww
2006-11-15 1:21 ` Ludovic Brenta
2006-11-15 1:29 ` Jeffrey R. Carter
2006-11-15 2:13 ` markww
2006-11-15 1:17 ` Ludovic Brenta
2006-11-15 1:27 ` Jeffrey R. Carter
2006-11-15 16:28 ` Martin Krischik
2006-11-16 8:25 ` Jerry [this message]
-- strict thread matches above, loose matches on Subject: below --
1998-10-01 0:00 String Length mincus
1998-10-02 0:00 ` Pascal Obry
1998-10-02 0:00 ` Ehud Lamm
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox