•
•
•
•
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 363,494 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,383 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: 435 | Replies: 4
![]() |
•
•
Join Date: Dec 2007
Posts: 21
Reputation:
Rep Power: 1
Solved Threads: 0
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
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.
•
•
Join Date: Jan 2008
Location: definately not on moon :P
Posts: 65
Reputation:
Rep Power: 0
Solved Threads: 3
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)
repeat {case or nested ifs for procedure calling goes here} until variable=3;
•
•
Join Date: Jan 2008
Location: definately not on moon :P
Posts: 65
Reputation:
Rep Power: 0
Solved Threads: 3
menu procedure should be like
hope this helps
pascal Syntax (Toggle Plain Text)
procedure menu(var option:integer); {so this'll be where you put all txt to display,i'm saving myself a few lines here lol} readln(choice); end; {top level begins here,i'm only writing the lines you need for this repeating menu} var option:integer; {you'll have more variables but as i said i'm only dealing wiv da menu} repeat menu(option);case option of 1:member procedure; 2:books procedure; until option=3;
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
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb Pascal and Delphi Marketplace
Similar Threads
- Urgent plz help (Pascal and Delphi)
- mysql_fetch_array warning urgent plz (PHP)
- plz urgent urgent urgent help plz (PHP)
- any body help me urgent (JSP)
- Dev C++ --> URGENT PLZ (C++)
- searching and paging..plz help.. (ASP)
- Urgent.....Dynamic Changes.... (JavaScript / DHTML / AJAX)
- Programming help plz! any one can... (C++)
Other Threads in the Pascal and Delphi Forum
- Previous Thread: txt files in pascal
- Next Thread: Application slower when BDS not running


Linear Mode