| | |
Urgent Help PLZ
![]() |
•
•
Join Date: Dec 2007
Posts: 66
Reputation:
Solved Threads: 1
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 8:42 am.
•
•
Join Date: Jan 2008
Posts: 66
Reputation:
Solved Threads: 4
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
Posts: 66
Reputation:
Solved Threads: 4
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
![]() |
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: My program keeps crashing
| Thread Tools | Search this Thread |





