Visual Foxpro Notes
Visual Foxpro Notes
Visual Foxpro Notes
We can also delete more than one tag at a time by specify a list of tag name than
a single tag in delete tag command.
Syn :- Delete tag <tag name> (of CDX name), <tag> (of CDX name)….
Step 5th
Click on OK to choose the field picker dialogue box and return to the Quick
report dialogue box. compound index file by adding key “all” to delete tag command.
Syn :- Delete tag all (of CDX name)
(Note :- we have to be careful while join the field as they must be of the same time
that is you can note join a character field with a numeric field. If you do so the index
command will result in error message is “operator/operates type mismatch”)
“REINDEXING” :-
Reindex command recreats all the open index files (Idx &
cdx). It rebuilds all the open index file in the current woarea if any change have been
made to the table of dlf while the index file was closed. We can update its with
“reindex”command.
Syn :- Reindex
“Sorting vs Indexing”
(i) An index file takes less disk space then the sort file.
(ii) Index command works faster then sort command.
(iii) Indexing use “t”sign for multiple fields and sorting use ‘,’ sign for multiple
fields sorting.
(iv) Index command also allow us to add new records keeping the original order of
records than sorting.
(v) In indexing the default record number couldn’t change but in sorting the
default record number is always change.
“Find” :- In visual FoxPro find the specify information quickly with find command.
Find operates on the character, string of data : fields:
Find always search at the first record in the Index table and continue until
the specified value is found or end of file is cncontened.
(Note :- (i) Where character string is a group of character that should not be
surrounded by cautation marks {“ “}
(ii) When we using find command make since that we index file open first.)
SEEK :
Seek commands tells the find first record in an index table that match the
require condition expression.
The seek command will search the active index file and locate the first
record matching the name “info”
The record by itself wouldn’t be display the seek command will move the
record pointer to the desire record. If we type display to look at the record the record will
be show on screen.
Locate
The Locate command is used for finding the position of a record in the table
as a per the condition and with use of display command, we saw the reached record or
records on the screen.
(Note :- We can apply for one or more than one field, locate command doesn’t show the
record on the screen. It gives only the record number in the status far.”
To continue searching through the entire table use the “continue” command .
You can also press “ctrl+A” instead of the continue command in the command
windows when ending the searching of locate command show the message end of locate
stop on the status bar.
Syn :- Locate for <Field name> = <Exp.>
Syn:- Display
Continue
EMBADED : (Locate)
Visual FoxPro can do so by means of string operator
which find the embedded words in the text. If works only with character expression.
Syn :- Locate for “Sharma” $ name
Ex. Locate for sharma $ name or “Kumar” $ name)
REPORT GENERATION
In visual FoxPro the list command retriere the data from
the data base file. The list command just include file heading follow by the contain of the
records and there are not facility to include page title, page number date etc.
You also can’t display total or sub total for numeric fields however
you can get all there and much more. If you use the report feature of visual foxpro you
can define the desire report format a report format file. A report is the collection of facts
and figures.
Visual FoxPro offers three tools for producing report there are :-
(a) Autokeport
(b) Report designer
(c) Report wizard
Step List
Click on the new button on standard tool bar. Click on report radio button
or click on select on slew file. Report designer window dialogue box appear.
Step 2nd
Choose report menu and select quick report.
Step 3rd
Uncheck the add option for table name and add the field name to report
designer window
Step 4th
Click on fields button to open the field picker dialogue box and click on
move button to add the field.
Step 6th
Click on OK to close the quick report dialogue box.
Step 7th
Preview the quick report by selecting print preview form file menu.
Before creating a costrumize report the data base file must be open.
Syn :- Create Report <Report file name>
After it visual FoxPro display the report layout window. This window is
devided into three parts :-
There are :-
Saving the report created can be saved in a text file by using following command :-
Syntax:- Report form <file name> to file <text file name>
The report command save the report in any text file Visule fox pro use text
As the default file extension name. If you want to some other extension name using
following command.
Syn :- Report form <file name> to file <file..DDC>
PREVIEWING A REPORT
The preview mode of report form command unable
you to view the record page by page to use preview mode with report form command
you can use preview clause with it.
Syn :- Report form <file name> preview
FORMS
When we use append, edit and browse command to data add or make
charges to a table visual FoxPro display on the screen from but the screen presented
may not be user friendly than visual foxpro provide us a flexible and powerful tool
called forms.
Create a custom field argument include customize the font type and size of
each object in form. The browse and edit mode format are difficult to read but the
forms helps us to move between recorded and add records or clause. Visual FoxPro
also gives us two simple tools for create forms :-
(i) The autoform feature
(ii) The form wizard
Second
This functions returns the number system time in seconds thousand format with
a re solution of 1 mile second.
Syn :- Seconds ( )
Time
The time function is eight character long and is presented in the HH :MM: SS
format HH stand for hours MM stand for mintues and SS stands for seconds. The time
functions gives you access to the system time you can use this functions to store the
system time to a memory variable or table field.
Syn :- Time ( )
Year
The year function converts the date exp. Into a year exp.
Syn :- Year (Date )
NOMERIC FUNCTIONS
We can use the following functions
ACOS
This is tignomeric functions returns the arc cosin of a numeric on angle in
radiations between ‘o’ and x.
Syn :- ACOS (No.)
ASIN :-
This is tignomatic function returns the are of numeric value a radions. The
value of the numeric argument must be between +1 and -1.
AIAN
This is formatic function returns the aic TANGENT of a numeric value on angle
in radions between Ω/2 and + Ω/2. The numeric argument can be any value.
Syn :- AIAN
BETWEEN
This function returns a value of ‘true’. If the 1 st numeric exp is
greeter than or equal to (>) second numeric exp and less than or equal to (<=) a third
numeric exp.
Ceiling
This function returns the nearest integer that is greater than or equal to numeric
arguments. It rounds all positive numbers with a decimal positions upto the next highest
number and round all negative numbers with a decimal (print upto the next number
closest ‘o’.
Syn :- Ceiling (Exp.)
COS ( )
This is tignomatric function returns the COSIN of a numeric argument the
result returns by this functions range between -1 and +1.
Syn :- COS (Exp.)
DTORCI
This function converts a numeric angle from degrees to radions. You must
convert to a decimal angle expressed in degree.
Syn :- D to R (no angle)
FLOOR
This functions returns the future value of an investments. You must supply
the equal periodic payment and periodic interest rate and the number of periods. The
payment are made.
Syn :- FV (payment, Interest,period)
Int ( ) This function values the numeric arguments and returns the integer part of the
numeric.
Syn ;- Int (Exp. )
(5.5)
.IS Digits ( )
This functions returns a true y the first char of a char.
Exp. Is a digit form.
MAX : The max function returns the higher value of two numeric exp.
Syn : MAX (num 1, num2)
MIN ; The mod functions or modules function returns the reminder value from a
devisor problem.
Syn ;- MOD (no. divisor)
PIL: This functions returns the number, constant is the ratio of the circle of its diameter.
Syn :- PI ( )
RANDU: This function return a random number between ‘o’ and ‘t’
Syn;- RAND (No.)
Portability
Write the code using high level language so that it is easy to transfer the
programme to other machine as well as.
Mentainability
As you write the programme think again new you might want to change or
extained it in future.
Syntax error
Syntex is a set of rules the structure and relationship between
symbol, words and In a language statement. A syntax error show when a
programme can’t understand and the command that has been entored.
Logical error
Logical returns to sequence of operation performed by a software
or handware. Software logic or programme logic is the sequence ofn
instruction in programme logical errors are the errors that have been. Etensel
in the instruction created because of the mistake from the programme.
Structure Programme
It is an approach to programming. Structured
programming is used a top down approach in which the main prog is
decompoused into smaller modules. These modules are generally independent
in nature and can be used from any point in the prog. It also make debigging
easier.
Sequence
Prog. Runs sequence from 1st statement to last statement.
Branch
Based on 0ut comes of certain condition with in prog. Only part
of the prog is executed and the rest is ignored.
(ii)Transaction file
Transaction file are retrieved and printed, analysis, stored and
precessed for further information.
Inventory control
What an inventory
We see goods all around us, in departmental store, factory at gas
station and so on any business has to keep sufficient stock of goods and other materials to
support its production requirement.
“A record of available goods in the store is known as inventory”
Aim of inventory control
Kinds of inventory :
Most product go through several stage until the final product is
created the raw material go through various production process. The output of each stage
of processing become the input to the next stage and so on. This is continue fill the
produced is finally created.
(1) Demand
(2) Lead time
Demand
Refers to the quantity of finished goods that can be sold during fixed
period of time.
When an order is placed, it may take some time, before it is actually executed. The
actual time taken to fulfill the order is called lead time.
Note :
Ordering at the right time minimize storage and other related cost.
Type of inventory
The right quantity has a perfect balance between the various cost
and the size of ordered placed. Proper balance minimize the total
cost. This is called economic order quantity (EOQ) module that
influence are.
(1) EOQ
This is one of the oldest and most commonly known inventory control
technology. This assume that.`
(A) Demand is known with certainly
(B) Demand is constant over a period of time
(C) Inventry is replenished when it actually equal to zero.
(D) Lead time is known in advance
(E) Cliantily discount are not allow.
(2) FOQ :
In this system the order quantity is fixed. Frequently of ordering various
with the demand. We have four order quantity that serve a decision rules.
Disadvantage
In lifd method The stock which purchased first that has lost his value and
utility destroy.
“Inventory Reports’
There are some reports that are generated by any inventory control system.
Nature of reports can be daily, weekly, monthly as quately depending on the
management requirement and the type of inventory report is required by the organization.
“Inventory Controll”
The objective of an inventory control system is to take the flow of a product and
estimate its value, such an approach to inventory planning is known as selective
inventory control . We determine the relative important of item to be stocked base of
three method of analysis—
(2)VED Analysis
The ved or and analysis is based on the critically of the items. The
Item may be technical or environmental.
(a)Vital item :
These items are those items which when required (and not available),
made the complete system in operative. Vital item those without which production will
stop and which, therefore, need more attention.
(b) Essential Item :
These items are those item which when required (and not available) make
the complete system in operative. Vital items those without which production will stop
and which, therefore need more attention.
Type of Employee:
Employees can be devided into full time expart time works. Their salary can be
given monthly weekly, daily, hourly.
Allowneces :
Allowness is the amount of money that an employees gets over and above the
basic salary most of the allownees are calculated as the percentage of the basic salary.
DA (Dearless Allowness)
Deal with increasing in cost of living due to Inflaction.
TA (Travelling Allowness)
MA (Medical Allowness)
Compensate employees for medical expenses incurrent by them or their
department.
Note :
The total of the basic pay and all the allowness that an employees earn is called
gross salary.
Basic Salary + Allowness = gross salary
Deducation
There are standard deducation made from the gross compensation payable to
employees.
Income Tax:
It is standard deducation made from the grass compessation payable to
employees.
Leave Deduction
Any leave beyond limits lead to deduction for certain amount from the
compensation received by the employee.
Loan Deducation
All the deducation less in gross salary of employees the remaining salary are
called net salary.
Attendence
Attendence refers to the day or hour that an employee serials at the job.
Attendence data is the basic information required as input to the payroll system.
Method of Attendence :
Computerise Payroll
The payroll system maintain detail of all employee. The payroll data file
should contain information on the following items.
(1) Employee pay
(2) Pension plan
(3) Vocation time
(4) Total earning
(5) Loan detail
(6) Deduction
(7) Net earning
Accounting Terminology
(1) Business:
Any legal activity which is objective is earn profit by the sale or
Purchase of goods . This is called business.
(ii) Transaction
Any legal activity between two persons (saler or purchaser) in
which flow of money, goods, assests.
(iii) Entry:
Write a transaction in a notebook (accounts) is called entry.
(iv) Goods
Anything which is sale or purchase in the business called goods.
(v) Sales
Any goods which is sale in business for the purpose of earn profit.
It is of two types:
(a) Sales
(b) Credit sales
(vi) Purchase :
Any goods which is purchase in the business for the purpose of
sale. It is also of two types.
(a) purchase
(b) Credit purchase
(vii) Stock
Stock (inventory) goods available in godown or shop is called
stocks.
(xi) Capital
Any thing which helps to running the business successfully.
Ex, Money, goods, assests, etc.
(xvi) Discount
It is of two types:-
(a) Trade discount
(b) Cash discount
(xviii) Commission
When a person do work of another person as consideration he takes money
that is known as commission.
(xvi) Liabilities
Loan of the business called as liabilities.
For ex. Bank loan, borrowed money, sundry creditors etc.
(xix) Assests
Anything which help to operate the business called as assests.
Ex. Shops, furniture, cash in hand, cash in bank, stock, computer, building, sundry
debtors, investment etc.
It is of two types:
(a) Current Assests
(b) Current Liabities
(a) Any assets which is used in the business for a long period called as fixed assets.
Ex. Stock, cash, bank, debtors.
(b) Any assets which is used in the business for a long period called as fixed assets.
Ex. Building, furniture, computers, vehicle, investments etc.
(xx) Drawing
Goods or money taken by the owner of the business for his personal uses
is knows as drawing.
(xxi) Loans:
The money taken on credit from any person, company, firm, bank etc is
called loan. (Liability)
The money given on credit to any person, company, firm, bank etc is called
loan (assets)
(xxii) Expenses
The money spent (expand) for the business known as expenses. Then are
of two types:
(b) When the goods is salesable and after that which money is (expenses)
spend that are called indirect expenses.
Administrative expenses, saling and distribution loses are, also indirect
expenses. (lose by fire, lose by thieft, charity)
Ex. Salary, rent (shop), telephone expenses [shop/office], traveling
expenses, commission, advertisement, discount, interest on loan/capital, bad dabts,
charity.
Types of Accounts :
(i) Personal Account
(ii) Real Accoutnt
(iii) Non real Account/Nominal account
Note Dr (debit)
Cr (Credit)
(3) Nominal
All expenses or loses debted (dr) and all incomes are credited.
JOURNAL
PROFIT &
LOSS
ACCOUNT
DATE PARTICULAR AMOUNT DATE PARTICULAR0 AMOUNT
BALANCE SHEET
LIABITIES AMOUNT ASSETS AMOUNT
Example of Accounts:
(1) Personal Accounts :
Name of person (Ram A/c shyam a/c etc), name of firm ( ex. Gyan
center, sonu photostate etc) Trust (state bank account, Punjab national bank, rajasthan
bank), club (leo club, sahara club), name of company (Reliance company, BSNL
company etc)
Capital Expenditure those expenses which is profit not only received in one
year/current year but also in many years of future is called capital expenditure. For the
starting business any cash money, goods, building, assets which helps to running the
business successfully is known as capital expenditure.
Ex. Purchase of assets, legal expenses, copt right expenses, patent right expenses.
Revenue Expenditure
Those expenses which is profit only received in one
year/current year is called revenue exp.
In other words for the earning income from any financial period. Those expenses are
made is called revenue expenditure.
Ex. Purchase of goods, wages, salary, building, rent, sales.
Purpose of Accounting :
DATA HANDELLING
(1) Date handelling is the part of the operating system that manages the physical
storage system that manages the physical storage and retrirel of data on a floppy
disk or other storage device.
(2) Date handling refers to the software that allows for the storage retrivel and
manipulation of file at a ferminal or personal computers.
(3) Date handling management of all date and information with in an organization
and includes data administration the standard for defining data and the way. In
which people reveive and use it their day to day task.
(4) Data handling is a function with in an organization that manage data. It analysis
classified and maintain all data and data relationship.