Sie sind auf Seite 1von 36

Foxpro Notes http://www.scribd.

com/doc/25040344/Foxpro-Notes

Scribd

Explore
Community

Upload a Document
Search Books, Presentations, Business, Academics...

Login
Sign Up
|
Log In

Real-Time Embedded ODBMS Multi-Process, Multi-Threaded, Full Transaction Control, Free Download www.ekkySoftware.com
Database Management WinSQL - A Homogeneous Solution for Heterogeneous Environment. www.synametrics.com
SAP Certification @ NIIT Enrol in 4 weeks SAP Program. Build yourself a better Career. NIIT.com/SAPeducation
Visual Fox Pro All About Visual Fox Pro Visual Fox Pro in One Site! Peeplo.com/Top_Results

/ 22

s Document for Free

1 of 36 9/12/2010 9:48 PM
Foxpro Notes http://www.scribd.com/doc/25040344/Foxpro-Notes

Explore Content

Sqrt() In Foxpro Input Commands Character Field


Input Field Foxpro Data Point Records Display

/ 22

s Document for Free

2 of 36 9/12/2010 9:48 PM
Foxpro Notes http://www.scribd.com/doc/25040344/Foxpro-Notes

/ 22

s Document for Free

3 of 36 9/12/2010 9:48 PM
Foxpro Notes http://www.scribd.com/doc/25040344/Foxpro-Notes

/ 22

s Document for Free

4 of 36 9/12/2010 9:48 PM
Foxpro Notes http://www.scribd.com/doc/25040344/Foxpro-Notes

/ 22

s Document for Free

5 of 36 9/12/2010 9:48 PM
Foxpro Notes http://www.scribd.com/doc/25040344/Foxpro-Notes

/ 22

s Document for Free

6 of 36 9/12/2010 9:48 PM
Foxpro Notes http://www.scribd.com/doc/25040344/Foxpro-Notes

/ 22

s Document for Free

7 of 36 9/12/2010 9:48 PM
Foxpro Notes http://www.scribd.com/doc/25040344/Foxpro-Notes

/ 22

s Document for Free

8 of 36 9/12/2010 9:48 PM
Foxpro Notes http://www.scribd.com/doc/25040344/Foxpro-Notes

/ 22

s Document for Free

9 of 36 9/12/2010 9:48 PM
Foxpro Notes http://www.scribd.com/doc/25040344/Foxpro-Notes

/ 22

s Document for Free

10 of 36 9/12/2010 9:48 PM
Foxpro Notes http://www.scribd.com/doc/25040344/Foxpro-Notes

/ 22

s Document for Free

11 of 36 9/12/2010 9:48 PM
Foxpro Notes http://www.scribd.com/doc/25040344/Foxpro-Notes

/ 22

s Document for Free

12 of 36 9/12/2010 9:48 PM
Foxpro Notes http://www.scribd.com/doc/25040344/Foxpro-Notes

/ 22

s Document for Free

13 of 36 9/12/2010 9:48 PM
Foxpro Notes http://www.scribd.com/doc/25040344/Foxpro-Notes

/ 22

s Document for Free

14 of 36 9/12/2010 9:48 PM
Foxpro Notes http://www.scribd.com/doc/25040344/Foxpro-Notes

/ 22

s Document for Free

15 of 36 9/12/2010 9:48 PM
Foxpro Notes http://www.scribd.com/doc/25040344/Foxpro-Notes

/ 22

s Document for Free

16 of 36 9/12/2010 9:48 PM
Foxpro Notes http://www.scribd.com/doc/25040344/Foxpro-Notes

/ 22

s Document for Free

17 of 36 9/12/2010 9:48 PM
Foxpro Notes http://www.scribd.com/doc/25040344/Foxpro-Notes

/ 22

s Document for Free

18 of 36 9/12/2010 9:48 PM
Foxpro Notes http://www.scribd.com/doc/25040344/Foxpro-Notes

/ 22

s Document for Free

19 of 36 9/12/2010 9:48 PM
Foxpro Notes http://www.scribd.com/doc/25040344/Foxpro-Notes

/ 22

s Document for Free

20 of 36 9/12/2010 9:48 PM
Foxpro Notes http://www.scribd.com/doc/25040344/Foxpro-Notes

/ 22

s Document for Free

21 of 36 9/12/2010 9:48 PM
Foxpro Notes http://www.scribd.com/doc/25040344/Foxpro-Notes

/ 22

s Document for Free

22 of 36 9/12/2010 9:48 PM
Foxpro Notes http://www.scribd.com/doc/25040344/Foxpro-Notes

/ 22

s Document for Free

23 of 36 9/12/2010 9:48 PM
Foxpro Notes http://www.scribd.com/doc/25040344/Foxpro-Notes

/ 22

s Document for Free

24 of 36 9/12/2010 9:48 PM
Foxpro Notes http://www.scribd.com/doc/25040344/Foxpro-Notes

Notes for foxpro Data Point ,Shegaon


__________________________________________________________
EXIT LOOP
There is another way to terminate the loop using LOOP is another statement used
EXIT command within DO WHILE …ENDDO
statement. When foxpro encountered the EXIT
in DO WHILE ..ENDDO
command ,no more commands from the loop is statement. LOOP is specified
executed. It exit the loop & executed the statement within IF …ENDIF. When foxpro
next to the ENDDO statement. The EXIT command encountered the LOOP
is normally used in IF …ENDIF statement. command,the control pass to the
DO WHILE statement,the
For e.g. remaining commands( upto
For e.g. ENDDO ) can’t executed. It again
Store 0 to x,sum,y store 0 to x,y,sum
Do while x<=5 Do while x<=5
Input “Enter No.” to y Input “Enter The No.” to y
If y<0 If y<0
Exit LOOP
Else else
Sum=sum+y sum=sum+y
Endif endif
X=x+1 x=x+1
?’sum of no. is’,sum ?’sum of no. is’,sum

Difference between IIF() & IF statement


IF is decision making statement. These are of two forms IF..ENDIF & IF…ELSE..ENDIF. The
first statement check the condition & if it is true execute the command , otherwise jump out off loop.
Where as second if condition is TRUE the true statement is executed otherwise FALSE statement is
executed.
The format is:-
If <condition>

<command>

endif
for e.g. consider the following program
INPUT “ENTER YOUR SALARY” TO SALARY
IF SALARY>3000
?” YOUR SALARY IS MORE THAN 3000”
ENDIF
When you run this program foxpro prompts you if you entered the salary greater than 3000
otherwise it display no message.
IIF() – The IIF() function, that is also same as IF..ELSE..ENDIF. This function return one
expression if the condition true, return the TRUE statement otherwise FALSE statement. Both these
expression specified within IIF().
Syntax:- IIF(CONDITION,TRUE STATEMENT,FALSE STATEMENT)
For e.g.
?IIF(salary>3000,”salary more than 3000”,”salary less than 3000”)
if the condition is true then ,”salary more than 3000” is executed otherwise
“salaryless than 3000” executed.

Difference between FOR …ENDFOR & SCAN …ENDSCAN


FOR...ENDFOR executes a set of statements within a loop a specified number of times. A
memory variable or array is used as counter to specifiy how many times the statement executed
/ 22 inside the loop. Consider the following prog.
STORE 0 TO NUM
FOR NUM- 1 TO 10
s Document for Free?SQRT(NUM)
ENDFOR

25 of 36 9/12/2010 9:48 PM
Foxpro Notes http://www.scribd.com/doc/25040344/Foxpro-Notes

Notes for foxpro Data Point ,Shegaon


__________________________________________________________
SCAN …ENDSCAN:-Moves the record pointerthrough the current DBF file & execute the
block of commands for each record that meets the specified condition.
Syntax:-
SCAN [SCOPE]
[FOR <expL>]
[LOOP]
[EXIT]
ENDSCAN
For e.g.
USE address
ACCEPT “ENTER CITY:-“ TO MCITY
SCAN FOR CITY=MCITY
?NAME
?CITY
?DIST
?
ENDSCAN

Difference between INDEX & SORT


INDEX SORT
1. It arrange the record in index file. 1. It sort the records in new DBF file.
2. It required less memory as it arrange 2. It required same memory as the
/store only the record number. Original database.
3. The extension of index file is .IDX 3. The extension is .DBF
(Simple index) & .CDX(Compound
index) file.
4. The new data automatically update 4. New data will not be update.
when added.
Syntax:- Syntax:-
INDEX ON [field,field,…] to [idx file] SORT TO [filename] ON [field,…]
TAG [cdx file][ascending/descending] [FOR <expL>]
For e.g For e.g.
Use stud use stud
Index on rollno tag roll sort to stu on rollno

Explain how to generate screen.


You can also creat the screen using CREATE SCREEN command. Screen builder is most useful facility in
foxpro. In this you just place the text,fields & variables on the screen at desired position. You can easily move the
object on the screen. You can also format the screen. Once you satisfied the apperence you may generate the
screen.
STEPS:-
Open the data base for which you want to creat screen.
Give the command CREATE SCREE STUD.
It open the window,for quick screen you select SCREEN—QUICK SCREEN
or you can press ^F to add field. It display the field expr. box , to input the text select <Get..> or to display
list select <Say..> then select the field & press ^W two times.
In this way you can select the fields you want .
To generate the code select PROGRAM—GENERATE option from it display the screen generate box select
the appropriate option & select GENERATE.
After this press ^W & to execute the screen give the command
DO STUD.SPR
It display the screen .

What is RQBE? Explain it with example?


/ 22
RQBE means Relational Query By Example. Query means the process of extracting specified
information from file/table. You can relate two different tables/files to create new file.
To create query file CREATE QUERY <NAME> is used. The extension of query file is .Q RY.
s Document for Free You can order the data by using ORDER BY option. By using GROUP BY option you can create group

26 of 36 9/12/2010 9:48 PM
Foxpro Notes http://www.scribd.com/doc/25040344/Foxpro-Notes

/ 22

s Document for Free

27 of 36 9/12/2010 9:48 PM
Foxpro Notes http://www.scribd.com/doc/25040344/Foxpro-Notes

Notes for foxpro Data Point ,Shegaon


__________________________________________________________
2. Give the command CREATE QUERY STUD it opens the window.
3. Then select ORDER BY to order/index the record. It display the window select the fields which
you want & select ascending/descending option & select ok.
4. Then select HAVING BY it display the window, under field name select the field (for e.g CITY) &
move the cursor to next tab select here the option from drop down list(for e.g. LIKE),then move the
cursor to next tab type here the condition(for e.g. “SHEGAON”).( If you want to extract the record
for city “shegaon” or salary greater than 3000. then you use OR option & then move tab to field
name select salary field then move cursor to next tab select here more than option ,then move the
cursor to next & type 3000. ) select OK.
5. To see the query select DO QUERY option from window. It display the list in browse form.
Tip:- instead of OR you can use AND operator. You don’t specify the operator you just select the next
field.
To save the query press ^W. To execute the query give command
DO STUD.QRY in command window.

What is TEXT-ENDTEXT?
When you need to display the text use ?/?? instead of this you can use TEXT-ENDTEXT to
display long message. You don’t require to use quotations ,you can type several lines. You can also print
the text on PRINTER.
For e.g.
@2,1 say “Display The menu”
TEXT
1 Add Record
2 Modify Record
3 Delete Record
4 Exit
ENDTEXT
The above command display the matter on screen from text..endtext.

Explain the CALCULATE command?


Calculate is multipurpose command that you use to perform various mathematical function. The
function include sum,average,min,max etc.
Syntax:-
CALCULATE<exprlist>
[<scope>] [FOR <expL>] [TO <memvar list>]
e.g. USE SALES
CALCULATE SUM(PROFIT) TO TPROFIT
?TPROFIT
Calculate the total of profit field & stor it into TPROFIT field.

What is structural compound index file?


A compound index file can hold more than one index file in a single file. Each index file within a
compound index file is called index tag. The compound index file given a extension .CDX It is also
called Structural Compound index file. It has same name as the opened .DBF file with extension .CDX .
You can also create separate compound index file which is called Independent Compound index file
(with extension .CDX) but this file will not open automatically when DBF file open. The records can not
reindex whenever you will not open the independent compound index file.
For e.g.
USE STUD
INDEX ON NAME TAG NAME
It create structural compound index file with name STUD.CDX.

/ 22

s Document for Free

28 of 36 9/12/2010 9:48 PM
Foxpro Notes http://www.scribd.com/doc/25040344/Foxpro-Notes

Foxpro Notes
Learn FoxPro in one Day : These notes are developed for Foxpro subject in DOEACC O Level, Short and sweet
notes i know very old software but if som... (More)

Reads:
3,542
Uploaded:
01/11/2010
Category:
Uncategorized.
Tags:
Notes
foxpro
shortnotes
report form
using
pdf
display records
box
(More)
Rated:

Download this Document for FreePrintMobileCollectionsReport Document


This is a private document.

joinst1402
Follow

Sponsored Links
Non Hodgkin's Lymphoma
What Caused It? Are You Entitled To Compensation? We
Can Help!
NonHodgkinsLymphomaLawsuit.com
Diamond Fashions for Fall
Diamond Jewelry Priced Just Right. Enjoy $1 Shipping &
100% Guarantee.
www.ice.com

Exclusive Coupon Codes


Save lots with Exclusive Coupon Codes. Huge Savings!
CouponAlbum.com/coupons

New! Cure For H.P.V.!!!!


The Only Cure For H.P.V.!!
www.ResolveHPV.com

/ 22

s Document for Free

29 of 36 9/12/2010 9:48 PM
Foxpro Notes http://www.scribd.com/doc/25040344/Foxpro-Notes

Sign Up for an Ad-Free Scribd

Remove all ads.


Never see ads on Scribd again.

No Thanks

Share & Embed

Link / URL: http://www.scribd.com/doc/25040344/Foxpro-No


Embed Size & Settings:

Width: (auto) Auto


Height: 300
Start on page: 1
Preview View:

<a title="View Foxpro Notes on Scribd" href="htt

Related
1. 49 p.

IBS

Reads: 0

211 p.

Business Systems

Reads: 0

211 p.

Business Systems

Reads: 0

2. 70 p.

Abapsyntax

Reads: 0

70 p.

/ 22Abapsyntax
Reads: 348
s Document for Free

30 of 36 9/12/2010 9:48 PM
Foxpro Notes http://www.scribd.com/doc/25040344/Foxpro-Notes

35 p.

Excavation at Aguas Buenas, Robins...

Reads: 0

3. 1 p.

Hotel Checklist

Reads: 0

18 p.

6392795 Opposite Word Flashcards

Reads: 0

18 p.

Opposite Word Flashcards

Reads: 0

4. 41 p.

Bedtime Stories of 3

Reads: 0

45 p.

Accounting Standards PPT

Reads: 0

5 p.

PMR_READ

Reads: 0

5. 1 p.

VolumeC

Reads: 0

6 p.

Test4pass ST0-066 Exam Dumps Quest...

/ 22Reads: 0
72 p.
s Document for Free

31 of 36 9/12/2010 9:48 PM
Foxpro Notes http://www.scribd.com/doc/25040344/Foxpro-Notes

2cruel Visions Sequel of 20

Reads: 0

6. 1 p.

LID:MOU - RNAV (GPS) RWY 02 (1009)

Reads: 0

1 p.

LID:SNS - VOR RWY 13 (1009)

Reads: 0

1 p.

LID:SFB - ILS OR LOC RWY 09L (1009...

Reads: 0

7. 1 p.

LID:JES - RNAV (GPS) RWY 11 (1009)

Reads: 0

1 p.

00178HENBY

Reads: 0

14 p.

1 Court :~0

Reads: 0

8. 1 p.

nc_31_29JUL2010

Reads: 0

23 p.

Hardening of the Heart

Reads: 0

/ 228 p.
Srs Template
s Document for Free

32 of 36 9/12/2010 9:48 PM
Foxpro Notes http://www.scribd.com/doc/25040344/Foxpro-Notes

Reads: 0

9. 6 p.

50interviewqas

Reads: 0

More from this user


1. 22 p.

Foxpro Notes

From: joinst1402

Reads: 3,612

1 p.

Java Notes

From: joinst1402

Reads: 124

43 p.

c Notes new

From: joinst1402

Reads: 482

2. 43 p.

Visual Basic 6.0 Notes short

From: joinst1402

Reads: 4,732

70 p.

Introduction to Internet &w...

From: joinst1402

Reads: 422

Login to Add a Comment


/ 22

s Document for Free

33 of 36 9/12/2010 9:48 PM
Foxpro Notes http://www.scribd.com/doc/25040344/Foxpro-Notes

Submit

Purohitam Subramanyam readcast this 2 days agoLearn more about Readcast.

Nil John readcast this 4 days agoLearn more about Readcast.


raysharps readcast this 6 days agoLearn more about Readcast.
Akbar_sayyad readcast this 09 / 01 / 2010Learn more about Readcast.

Javier López readcast this 08 / 30 / 2010Learn more about Readcast.

Balwinder Singh Singh readcast this 08 / 25 / 2010Learn more about Readcast.


dkjoshintd89 readcast this 08 / 09 / 2010Learn more about Readcast.
tewary_m5175 readcast this 08 / 04 / 2010Learn more about Readcast.

Anup Sahu left a comment

anup.sahu92@gmail.com

08 / 02 / 2010
Reply
kalnav readcast this 07 / 26 / 2010Learn more about Readcast.
Ads by Google

/ 22

s Document for Free

34 of 36 9/12/2010 9:48 PM
Foxpro Notes http://www.scribd.com/doc/25040344/Foxpro-Notes

Upload a Document
Search Books, Presentations, Business, Academics...

Scribd

About
Press
Jobs
Contact
Blog
Scribd Store

Legal

Terms - General
Terms - API
Terms - Privacy
Copyright

Help & Tools

Getting Started
Community Guidelines
Support & FAQ
Web Stuff

Partners

Partners
Branded Reader
Developers / API

Subscribe to Us

/ 22
On Scribd
On Twitter
s Document for On
FreeFacebook

35 of 36 9/12/2010 9:48 PM
Foxpro Notes http://www.scribd.com/doc/25040344/Foxpro-Notes

What's New

We have updated our Terms of Service


Branded Reader
Desktop Uploader

/ 22

s Document for Free

36 of 36 9/12/2010 9:48 PM

Das könnte Ihnen auch gefallen