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, XPRIO autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,36c55584044f4f0f,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-12-07 15:14:50 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!snoopy.risq.qc.ca!wesley.videotron.net!wagner.videotron.net.POSTED!not-for-mail From: "Gep" Newsgroups: comp.lang.ada Subject: 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:14:29 -0500 NNTP-Posting-Host: 24.200.43.55 X-Complaints-To: abuse@videotron.ca X-Trace: wagner.videotron.net 1039302881 24.200.43.55 (Sat, 07 Dec 2002 18:14:41 EST) NNTP-Posting-Date: Sat, 07 Dec 2002 18:14:41 EST Xref: archiver1.google.com comp.lang.ada:31538 Date: 2002-12-07T18:14:29-05:00 List-Id: 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; anything not in the range of declared string (in this case being10) would be declared as invalid...any ideas? I dont want to to have any explicit statement of 10 like "if V_length = 10 then" in this little procedure as it will be getting strings of various length.