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,7d05ebe305483c33 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-12-31 09:50:57 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!t-online.de!diablo.theplanet.net!news.theplanet.net!not-for-mail From: "Jasbinder S Uppal" Newsgroups: comp.lang.ada Subject: Re: Newbie question Date: Mon, 31 Dec 2001 17:51:24 -0000 Message-ID: References: <3C2B2F52.2569C5E@icn.siemens.de> NNTP-Posting-Host: modem-110.monkey.dialup.pol.co.uk X-Trace: news6.svr.pol.co.uk 1009821056 16192 217.135.208.110 (31 Dec 2001 17:50:56 GMT) NNTP-Posting-Date: 31 Dec 2001 17:50:56 GMT X-Complaints-To: abuse@theplanet.net X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Xref: archiver1.google.com comp.lang.ada:18412 Date: 2001-12-31T17:50:56+00:00 List-Id: Just wanted 2 say thanks for all the advice I've been given, it much appreciated. I have to say that in some places, the description of the suggestion went RIGHT over my head, but it did give me an idea of how to do the problem. I started from the start of the line, and looped till a blank (' ') was found, (thus giving me the location) and then loop until a character is found, then again loop until a blank is found (thus giving me the registration number) and then AGAIN loop until the blanks finish, then get the hours (which I assigned to integers). Because there was a constant 3 spaces between the hours, minutes and seconds, I continued this process till I got the whole line. I know this might not seem like the most efficient option, but I am not really that good at Ada, and so this is the only option I could understand. Now I am going onto the next bit which is even more difficult, and I havent got a hope of doing it (I'm not a fan of arrays :S).Oh well, theres a struggle ahead :) Thanks again J PS Michal hope ur feeling better, if not, a dose of Ada will certainly fix any ailments u have.....