Urgent Help PLZ

Please support our Pascal and Delphi advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Dec 2007
Posts: 66
Reputation: manutd4life is an unknown quantity at this point 
Solved Threads: 1
manutd4life manutd4life is offline Offline
Junior Poster in Training

Urgent Help PLZ

 
0
  #1
May 6th, 2008
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.
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 66
Reputation: another guest has a little shameless behaviour in the past 
Solved Threads: 4
another guest another guest is offline Offline
Junior Poster in Training

Re: Urgent Help PLZ

 
0
  #2
May 6th, 2008
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
  1. repeat
  2. {case or nested ifs for procedure calling goes here}
  3. until variable=3;
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 66
Reputation: manutd4life is an unknown quantity at this point 
Solved Threads: 1
manutd4life manutd4life is offline Offline
Junior Poster in Training

Re: Urgent Help PLZ

 
0
  #3
May 6th, 2008
i cant understand clearly watu r saying
can u wite the codes plz i just start in pascal
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 66
Reputation: another guest has a little shameless behaviour in the past 
Solved Threads: 4
another guest another guest is offline Offline
Junior Poster in Training

Re: Urgent Help PLZ

 
0
  #4
May 7th, 2008
menu procedure should be like
  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
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 68
Reputation: jsosnowski is an unknown quantity at this point 
Solved Threads: 11
jsosnowski's Avatar
jsosnowski jsosnowski is offline Offline
Junior Poster in Training

Re: Urgent Help PLZ

 
0
  #5
May 14th, 2008
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
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



Tag cloud for Pascal and Delphi
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC