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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,4c049fca34123e80 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-08-13 03:20:18 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!news.tele.dk!small.news.tele.dk!194.213.69.151!news.algonet.se!newsfeed1.telenordia.se!algonet!uab.ericsson.se!erix.ericsson.se!newstoo.ericsson.se!not-for-mail From: "Petter Fryklund" Newsgroups: comp.lang.ada Subject: Re: Variable length string Date: Mon, 13 Aug 2001 12:20:33 +0200 Organization: ericsson Message-ID: <9l88he$fa6$1@newstoo.ericsson.se> References: <9l82gv$j83$1@news.mch.sbs.de> NNTP-Posting-Host: 172.17.76.206 X-Newsreader: Microsoft Outlook Express 4.72.2106.4 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 Xref: archiver1.google.com comp.lang.ada:11837 Date: 2001-08-13T12:20:33+02:00 List-Id: You might find Ada.Strings.FIxed.Move useful! Shitij wrote in message <9l82gv$j83$1@news.mch.sbs.de>... >Hi, >Iam new to ADA.I just wanted to know how do you define a variable length >string.I have declared a string array of length say a size of 20.But if I >use get and pass this string as an arguement,then unless and until I fill >this with exactly 20 characters my program is not working.How to overcome >this? >Iam using the below structure > >type list; > type pList is access list; > type list is >record > data:integer; > str:string(1 .. 20); > next:pList:=NULL; > end record; > >