User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Pascal and Delphi section within the Software Development category of DaniWeb, a massive community of 374,143 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,534 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Pascal and Delphi advertiser:
Views: 452 | Replies: 4
Reply
Join Date: Dec 2007
Posts: 21
Reputation: manutd4life is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
manutd4life manutd4life is offline Offline
Newbie Poster

Urgent Help PLZ

  #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 7:42 am.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jan 2008
Location: definately not on moon :P
Posts: 65
Reputation: another guest has a little shameless behaviour in the past 
Rep Power: 0
Solved Threads: 3
another guest another guest is offline Offline
Junior Poster in Training

Re: Urgent Help PLZ

  #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  
Join Date: Dec 2007
Posts: 21
Reputation: manutd4life is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
manutd4life manutd4life is offline Offline
Newbie Poster

Re: Urgent Help PLZ

  #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  
Join Date: Jan 2008
Location: definately not on moon :P
Posts: 65
Reputation: another guest has a little shameless behaviour in the past 
Rep Power: 0
Solved Threads: 3
another guest another guest is offline Offline
Junior Poster in Training

Re: Urgent Help PLZ

  #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  
Join Date: Nov 2007
Posts: 26
Reputation: jsosnowski is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 3
jsosnowski's Avatar
jsosnowski jsosnowski is offline Offline
Light Poster

Re: Urgent Help PLZ

  #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  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb Pascal and Delphi Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the Pascal and Delphi Forum

All times are GMT -4. The time now is 3:15 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC