0% found this document useful (1 vote)
225 views3 pages

Creating Menu in Foxpro For DOS - Live To Learn!

This document discusses creating a menu system in Foxpro 2.6 for DOS. It provides code to create a main menu with options for data entry, report printing, processing, and exiting. Selecting data entry opens a submenu with options for student, staff, fees, and courses data. Similarly, the report printing option opens a submenu for different reports. The code uses simple commands like SET, CLEAR, PROMPT, and MENU to build the navigation structure and direct program flow based on user selections.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (1 vote)
225 views3 pages

Creating Menu in Foxpro For DOS - Live To Learn!

This document discusses creating a menu system in Foxpro 2.6 for DOS. It provides code to create a main menu with options for data entry, report printing, processing, and exiting. Selecting data entry opens a submenu with options for student, staff, fees, and courses data. Similarly, the report printing option opens a submenu for different reports. The code uses simple commands like SET, CLEAR, PROMPT, and MENU to build the navigation structure and direct program flow based on user selections.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

7/20/12

Creating menu in Foxpro for DOS | Live to Learn!


C reate new ac c ount
Reques t new pas s word

Log in

Live to Learn!
Everything is Possible

HOME

TUTORIALS

Ads by Google

PPTS

FORUM

Visual FoxPro

BLOG

CONTACT

MS Visual FoxPro

FoxPro

Of Visual FoxPro

You are he re : Hom e Fox pro Program m ing

Creating menu in Foxpro for DOS


Visual FoxPro 10 C ross platform Visual FoxPro for Windows/OS X/Linux/C loud/Mobile www.lianja.com
JavaScript Developer Tool Build business web applications with nothing but JS. Free Download. www.wak anda.org
New Programming Community Learn a new Programming Language. Meet C omputer Programmers! source code e ra.com

Submitted by Karthik on 12 February, 2012 - 22:21

This is an example of simple navigation menu programming in Foxpro 2.6


1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
37.
38.
39.
40.
41.
42.
43.
44.
45.
46.
47.
48.
49.
50.
51.
52.
53.

set talk off


set stat off
set scor off
set cent on
set date brit
do whil .t.
clea
@5,20 to 19,45 doub
@6,25 say "MAIN MENU"
@7,21 to 7,44 doub
k=0
@ 9,25 prompt "DATA ENTRY"
@11,25 prompt "REPORT PRINTING"
@13,25 prompt "PROCESS"
@15,25 prompt "EXIT"
@17,25 prompt "QUIT to SYSTEM"
menu to k
do case
case k=1
do dataent
case k=2
do repoprn
case k=3
*
do proces
case k=4
exit
case k=5
clos all
clea all
quit
otherwise
loop
endcase
enddo
clos all
clea all

proce dataent
do whil .t.
clea
@5,20 to 19,55 doub
@6,30 say "DATA ENTRY MENU"
@7,21 to 7,54
k1=0
@ 9,25 prompt "1. STUDENT"
@11,25 prompt "2. STAFF"
@13,25 prompt "3. FEES "
@15,25 prompt "4. COURSES"
@17,25 prompt "RETURN TO MAINMENU"
menu to k1
do case

www.livetolearn.in/site/foxpro-programming/creating-menu-foxpro-dos

FEAT URED BLOG


POST S
Best way to Use
Rupee Symbol in
Windows Easy
steps
Read Tamil News
papers on your
Mobile
C reating All in One
Windows XP DVD
with all Important
Applications
Integrate Office 2007
/ Office 2010 with
Windows
Unlimitted Free SMS
Software
C reate integrated
windows XP C D /
DVD
University Results
2012 - Email / SMS
Alerts
C reate integrated XP
using nLite
Input Indian
Languages Anywhere
C heck status of
receiver mobile
before sending sms
more

NEW FORUM
T OPICS
Networking FAQ
What is the difference
between XML, XSL,
XSD?
How to reset mysql
privillages and root
password
Difference between
C loud C omputing and

1/3

7/20/12

Creating menu in Foxpro for DOS | Live to Learn!


54.
55.
56.
57.
58.
59.
60.
61.
62.
63.
64.
65.
66.
67.
68.
69.
70.
71.
72.
73.
74.
75.
76.
77.
78.
79.
80.
81.
82.
83.
84.
85.
86.
87.
88.
89.
90.
91.
92.
93.
94.
95.
96.
97.
98.
99.
100.

case k1=1
do stud
case k1=2
do staff
case k1=3
do fees
case k1=4
do course
case k1=5
exit
otherwise
loop
endcase
enddo
clos all
return

Grid C omputing
Difference between
Image and
Picturebox in VB
More

proce repoprn
do whil .t.
clea
@5,20 to 19,55 doub
@6,30 say "REPORT MENU"
@7,21 to 7,54
k1=0
@ 9,25 prompt "Report 1"
@11,25 prompt "Report 2"
@13,25 prompt "Report 3"
@15,25 prompt "Report 4"
@17,25 prompt "Return to Mainmenu"
menu to k2
do case
case k2=1
do fmainprn
case k2=2
do fothrprn
case k2=3
do mainprn
case k2=4
do othrprn
case k2=5
exit
otherwise
loop
endcase
enddo
clos all
return

www.livetolearn.in/site/foxpro-programming/creating-menu-foxpro-dos

2/3

7/20/12

Creating menu in Foxpro for DOS | Live to Learn!

Like

2 likes. Sign Up to see w hat your friends like.

Control Structures in Foxpro

up

Simple Journal Entry program

Log in or register to post comments

Like

Login

Add New Comment


Type your comment here.

Showing 0 comments

Sort by oldest first

M Subscribe by email S RSS


Trackback URL http://disqus.com/forums/livetolearn/creating_menu_in_foxpro_for_dos/trackback/

www.livetolearn.in/site/foxpro-programming/creating-menu-foxpro-dos

3/3

You might also like