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.4 required=5.0 tests=BAYES_00,FROM_DOMAIN_NOVOWEL, LOTS_OF_MONEY autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,36c55584044f4f0f X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-12-07 15:21:11 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!panix!news.stealth.net!news.stealth.net!wesley.videotron.net!wagner.videotron.net.POSTED!not-for-mail From: "Gep" Newsgroups: comp.lang.ada References: Subject: Re: string manipulation X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Message-ID: Date: Sat, 7 Dec 2002 18:20:50 -0500 NNTP-Posting-Host: 24.200.43.55 X-Complaints-To: abuse@videotron.ca X-Trace: wagner.videotron.net 1039303262 24.200.43.55 (Sat, 07 Dec 2002 18:21:02 EST) NNTP-Posting-Date: Sat, 07 Dec 2002 18:21:02 EST Xref: archiver1.google.com comp.lang.ada:31539 Date: 2002-12-07T18:20:50-05:00 List-Id: "Gep" wrote in message news:BhvI9.27495$Mn4.328936@wagner.videotron.net... > Is it possible to declare a string to be exactly 10 characters long and > still be a variable? then > for example > > declare V_string as being exactly 10 characters > > > while not valid > loop > get_line(V_string, V_length); > > if v_Art_lng = t_Art_article.t_art_proprietaire.v_nas'length then > Skip_Line; > Valid := True; > else > valid :=false; > Put("invalid"); > end if; > > end loop; oops the code should be as follows while not valid loop get_line(V_string, V_length); if V_length= V_string'length then Skip_Line; Valid := True; else valid :=false; Put("invalid"); end if; end loop;