Skip to main content

FoxPro Commands Overview �


FoxPro Commands Overview � Append, Set, Record,
---
Go to, Skip, Edit, List, Display, Browse, Replace

1.     Append command is used to add new record in the table. Set status on displays status bar at the bottom of the screen. It shows the screen active database file, the current record pointer position, number of records in the database file. And the command used to close the status bar is
Set status off

2.     Set default to A is used to change the default root directory from C: drive to A: drive. Set carry onspecifies static enter or duplicate for the present record into a new record when the append command is entered. Set carry off command is used to delete or to stop duplication. Dir command displays the database file.

3.  Record Pointer:-

FoxPro marks its position with a table by means of a internal maker called the record pointer. A table first opens the Record Pointer normally pointing the first record in the table.

4.  Go to:-

Go 2 command is used to show the positioning of the record pointer on the 2nd record.
Go Top command moves the record pointer on first record.
Go Bottom moves the record pointer on last record.

5.  Skip

command moves the record pointer from the current location to next location. Skip 2 command jumps 2 record. Skip -2 goes back to 2 records, that is current record � 2.

6.     ? RECNO() command displays the current record number.

7.  Modify the Record:-

To modify data in the existing records the following commands can be used:
�> EDIT displays the required record to be edited on the screen. 
EDIT fields stuno, stuname, fee: displays the above fields on the screen. 
EDIT For Fee >300 and Fee < 300 EDIT For DOJ = {06/11/09} displays data relating to that date of joining.
EDIT for DOJ < {06/11/09} EDIT for DOJ > {06/11/09}

8.  Viewing the Record:-

After adding the record to the table, the next logical step is to view the data. Data can be viewed with the list and display command with the command window.
The default scope of the List command is to display all the record on the screen. The scope can be changed by using various options of the list command. 
For example,
�> LIST record 4 displays the record no. 4
�> LIST stuno, stuname, fee (field name) displays the said field names only.
�> LIST stuname, Fee +50 displays the figures of student name adding 50 to the previous amount.LIST stuname, Fee -50 displays the figures deducting 50 from previous amount.
Note: Val is used for the conversion of characters into numeric.
LIST for Val (marks) > 50
LIST stuname, Fees x 2 multiplies
LIST stuname, Fees / 2 divides
LIST for Fees > 2450 displays the fees greater than the amount 2450.
LIST for Fees > 2450 and < 4000 displays fee amounts that fall between 2450 and 4000. For �and� condition all conditions should be satisfied. For �or� condition any condition if satisfied it displays the data.
LIST for stuname = �rao� displays rao�s data only. Here strings used for characters only and for numbers there is no usage of any strings.
LIST for stuname != �rao� or LIST for stuname <> �rao� displays data except rao�s.
LIST for stuname = �Raghu� and Fees >200 displays the data for Raghu if the fee is greater than 200. Here note that the character names are unique as in data.
LIST for doj>{06/11/99} displays data of students joined after the specified date of joining (doj).

9.  Display Command

Display command is somewhat similar to LIST command. Display All and List command are interchangeable. Both commands display the list of the records in the table. The default scope of theDisplay command is current record position. For example, using the command, go 6 Display we can display the 6th record.
Disp all stuno, stuname, fees displays all the field names.
Disp all stuno for course = �FoxPro� displays the number of students in foxpro course.

10.                        Set Headings:-

Set Headings off command displays the record without the field headings.Set Headings oncommand displays the records with field headings.

11.                        Set Print:-

The Set Print command sends output to the printer in addition to the screen.
Set Printer on
Set Printer to LPT1
?Date() command displays the current date (mm / dd /yy)
Set Date Japan
?Date()
00/07/25
Set Date Germany
?Date()
25/07/00
Set Date America
?Date()
07/25/00
Set Century on
?Date()
07/25/2000
Set Century off
?Date()
07/25/00
Set Century off 
LIST

12.                        Browse Command:-

It usually difficult to view a number of records on the screen at the same time. FoxPro browse mode displays the large amount of information at the same time.
Browse displays the records shows in a spreadsheet format.
Browse fields stuno, stuname, fee Displays those fields only. 
New record is not acceptable but modifications only acceptable.
Browse fields stuno, stuname, fee Freeze fee command restricts the edition of the specified field.

13.                        Replace Command:-

The replace command overwrites the contents of the specified fields in a table with new contents. It replaces the contents of only current record. For example,
Replace all fees with fees + 50 command replaces all the fees adding amount 50 to all.




CLICK THIS LINK AND ENJOY FREE APPLICATION


https://snappy.appypie.com/index/app-download/appId/26d5cf146ef1

And my youtube channel playlists are:-

https://youtu.be/NQs0I9MPO70

https://youtu.be/139vmq-Mew0

PLEASE SUBSCRIBE MY CHANNEL AND COMMENTS AND SHARE .AND GIVE ME MORE ADVICE AND SUGGESTIONS ABOUT MY ARICLE.
PLEASE JOIN ME ON GOOGLE+
tutorialguide1997.blogspot.com


Comments

Popular posts from this blog

12 Things to Do Before Applying for Google AdSense + FREE Bonus Checklist

12 Things to Do Before Applying for Google AdSense + FREE Bonus Checklist So, you want to apply for Adsense to make some money from your blog and enjoy the life you always dream of? Who does not anyway? That�s the dream of every blogger to get AdSense approved. But, wait.. I�ve to tell you something. That�s not easy. Google AdSense is very strict when it comes to approving new application. Everyone is trying to trick AdSense to get approved so they have made the process very hard. Don�t worry.  You�re not alone. In this article, I�m going to share with you everything that you need to do before applying for Google AdSense program to actually get approved. Some common questions that you may have about Google AdSense are� How to apply for Google AdSense? Does my blog qualify for AdSense or not? Am I eligible to apply for Google AdSense? What are Google AdSense requirements? Why Google AdSense rejected my application? What to do if Google AdSense reject my application? This post i...

STREET WALKING WITH TUTORIAL GUIDE {ANISH PATEL} on Powerpoint

Click this link and Subscribe my channel For too much fun with tech: https://www.youtube.com/channel/UCi1XEc8BZB-J7OV2DH56RRQ?disable_polymer=true And my youtube channel playlists are:- https://youtu.be/NQs0I9MPO70 https://youtu.be/M-e2qnFX44o https://youtu.be/139vmq-Mew0 https://youtu.be/p6Zlxf7Z91U https://youtu.be/smgkmpqpwZ4 https://youtu.be/140CS8t1EP4 https://youtu.be/bKYJSC9fzJw https://youtu.be/_ShhlD_r1qU https://youtu.be/SFpKvhW8lZ8 https://youtu.be/MVS-yA5raS8 https://youtu.be/NfEFqP2OqDk https://youtu.be/NPcHq3cDY54 https://youtu.be/KBt8IH3SufQ https://youtu.be/EO9lYUIfr70 https://youtu.be/bltm9tHIpiY https://youtu.be/P08tUkiXkdA PLEASE SUBSCRIBE MY CHANNEL AND COMMENTS AND SHARE .AND GIVE ME MORE ADVICE AND SUGGESTIONS ABOUT MY ARTICLE. PLEASE JOIN ME ON GOOGLE+

EARN MONEY ONLINE

FIRST OF ALL ... Learn about "How can earn money online" so,  steps are follows:- I use mCent Browser to surf the net and earn points for free recharge. Install from Google Play:   https://browser.mcent.com/r/TKyq-4mWR5yW9.pMdOHMzg CREATE WEBSITE     Recommendation for website                               I.             THEME                            II.             SERVER                        III.             DOMAIN(...