a �crit dans le message news: whxT6.68591$%i7.51923767@news1.rdc1.sfba.home.com... > >not greater than the bounds of the array. My first hunch on the way to > >work with this strictness(or so it seems) would be keep count of the > >number of elements (characters of a string, numbers, whatever) going into > >the array, and then pad the rest of the array with with NULLs or something > In Barnes, look at the chapter "Predefined Library", section "Characters > and strings" and you'll see Ada.Strings.Bounded (and Ada.Strings.Unbounded). > Bounded strings essentially keep a "current length", along with the fixed > length array. There's no need then to pad with nulls or anything else. > Alternatively, you can use the Variable_String package that is available on Adalog's components page: http://www.adalog.fr/compo2.htm Note that this package is pure, which (unlike the other packages) makes it usable for distributed applications. -- --------------------------------------------------------- J-P. Rosen (rosen@adalog.fr) Visit Adalog's web site at http://www.adalog.fr