On 10/11/13 10:54, rambo waz here wrote: > at the moment i have a case where each choice leads off to a procedure. .. > looks like this > repeat > writeln('Main Menu'); > writeln('1. New Customer Info'); > writeln('2. Withdrawal'); > writeln('3. Returns'); > writeln('4. Money owed by customer'); > writeln('5. Quit the Program'); > readln(menu_choice); > if menu_choice in [1..5] > then case menu_choice of 1: new_customer; > 2: withdraw; > 3: returns; > 4: money_owed; > 5: writeln('stop') > end > else writeln('1..5!") > until choice = 5 > > but when i try to run it it comes up with an error saying "identifier not > found" and highlights each of the case choices .. i.e. 3: returns; > ...................... any help ? :( :( :( > >
Maybe try renaming the Returns procedure (e.g. to CashReturns or CreditReturns) I have a feeling this 'returns' may be a keyword... -L. _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal