943,879 Members | Top Members by Rank

Ad:
May 6th, 2008
0

Urgent Help PLZ

Expand Post »
i make a menu AS SHOWN:

PASCAL when press Ctrl + F9.
so its pascal

*************************
* 1. MEMBERS
* 2. BOOKS
* 3. EXIT
*
*
* SELECT OPTION:
************************

NEED HELP HERE:
write a PROCEDURE to close the menu when 3 is selected
sorry 4 this, its too long, but u can understand my prob clearly

any help plz
Last edited by manutd4life; May 6th, 2008 at 8:42 am.
Similar Threads
Reputation Points: 10
Solved Threads: 1
Junior Poster
manutd4life is offline Offline
123 posts
since Dec 2007
May 6th, 2008
0

Re: Urgent Help PLZ

well i distinctly remember seeing something as 'show real effort with ur assignments'.....Anyways wut you should do is to make a procedure for da menu and in it use a parameter that'll pass the entered number to da main program,and in da main program use REPEAT with dat passed parameter like
pascal Syntax (Toggle Plain Text)
  1. repeat
  2. {case or nested ifs for procedure calling goes here}
  3. until variable=3;
Reputation Points: -7
Solved Threads: 4
Junior Poster in Training
another guest is offline Offline
66 posts
since Jan 2008
May 6th, 2008
0

Re: Urgent Help PLZ

i cant understand clearly watu r saying
can u wite the codes plz i just start in pascal
Reputation Points: 10
Solved Threads: 1
Junior Poster
manutd4life is offline Offline
123 posts
since Dec 2007
May 7th, 2008
0

Re: Urgent Help PLZ

menu procedure should be like
pascal Syntax (Toggle Plain Text)
  1. procedure menu(var option:integer);
  2. {so this'll be where you put all txt to display,i'm saving myself a few lines here lol}
  3. readln(choice);
  4. end;
  5. {top level begins here,i'm only writing the lines you need for this repeating menu}
  6. var option:integer;
  7. {you'll have more variables but as i said i'm only dealing wiv da menu}
  8. repeat
  9. menu(option);case option of
  10. 1:member procedure;
  11. 2:books procedure;
  12. until option=3;
hope this helps
Reputation Points: -7
Solved Threads: 4
Junior Poster in Training
another guest is offline Offline
66 posts
since Jan 2008
May 14th, 2008
0

Re: Urgent Help PLZ

Try this site for some really good & simple examples of how to handle menus and their associated actions: http://blogs.codegear.com/nickhodges/index.php?p=26687
Reputation Points: 11
Solved Threads: 11
Junior Poster in Training
jsosnowski is offline Offline
68 posts
since Nov 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Pascal and Delphi Forum Timeline: txt files in pascal
Next Thread in Pascal and Delphi Forum Timeline: My program keeps crashing





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC