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,754e583fcabdfad2 X-Google-Attributes: gid103376,public From: "Alexander B. Schmidt" Subject: Help Date: 1996/11/15 Message-ID: <328C2BF5.1348@informatik.tu-muenchen.de>#1/1 X-Deja-AN: 196620908 distribution: world content-type: text/plain; charset=us-ascii organization: Technical University of Munich mime-version: 1.0 newsgroups: comp.lang.ada x-mailer: Mozilla 2.01 (Macintosh; I; PPC) Date: 1996-11-15T00:00:00+00:00 List-Id: Hi, does anybody know how to declare a string of variable length in Ada 83? Declaring a variable of type String like str: STRING(1..20); and assigning a string like str := "a String" results in a constraint error if the length of the string is not equal to 20. Is it possible to declare strings with a maximum length which accept the assignment of shorter strings too? Thanx Alex