ArticleslgStudy

computer science

Visual FoxPro

Visual FoxPro is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Visual FoxPro rather than just read about it. In short: Visual FoxPro is a programming language that was developed by Microsoft. It is a data-centric and procedural programming language with object-oriented programming (OOP) features.

Visual FoxPro — main illustration
Visual FoxPro — illustration

Key takeaways

  • Visual FoxPro belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Visual FoxPro to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Visual FoxPro from memory before moving on to harder problems.

Reference excerpt

Visual FoxPro is a programming language that was developed by Microsoft. It is a data-centric and procedural programming language with object-oriented programming (OOP) features. It was derived from FoxPro (which was itself descended from FoxBASE) which was developed by Fox Software beginning in 1984. Fox Technologies merged with Microsoft in 1992, after which the software acquired further features and the prefix "Visual". FoxPro 2.6 worked on Mac OS, DOS, Windows, and Unix. Visual FoxPro 3.0, the first "Visual" version, reduced platform support to only Mac and Windows, and later versions 5, 6, 7, 8 and 9 were Windows-only. The current version of Visual FoxPro is COM-based and Microsoft has stated that they do not intend to create a Microsoft .NET version. Version 9.0, released in December 2004 and updated in October 2007 with the SP2 patch, was the final version of the product. Support ended in January 2010 and extended support in January 2015.

History

Visual FoxPro originated as a member of the class of languages commonly referred to as "xBase" languages, which have syntax based on the dBase programming language. Other members of the xBase language family include Clipper and Recital (database). Visual FoxPro, commonly abbreviated as VFP, is tightly integrated with its own relational database engine, which extends FoxPro's xBase capabilities to support SQL query and data manipulation. Unlike most database management systems, Visual FoxPro is a full-featured, dynamic programming language that does not require the use of an additional general-purpose programming environment. It can be used to write not just traditional "fat client" applications, but also middleware and web applications. In late 2002, it was demonstrated that Visual FoxPro can run on Linux under the Wine Windows compatibility suite. In 2003, this led to complaints by Microsoft: it was claimed that the deployment of runtime FoxPro code on non-Windows machines violates the End User License Agreement. Visual FoxPro had a rapid rise and fall in popularity as measured by the TIOBE Programming Community Index. In December 2005, VFP broke into the top 20 for the first time. In June 2006 it peaked at position 12, making it (at the time) a "B" language. As of May 2025, Visual FoxPro holds position 29 on the TIOBE index. In March 2007, Microsoft announced that there would be no VFP 10, thus making VFP9 (released to manufacturing on December 17, 2004) the last commercial VFP release from Microsoft. Service Pack 2 for Microsoft Visual FoxPro 9.0 was released on October 16, 2007. The support of Version 9 ended on January 13, 2015. At the time of the end of life announcement, work on the next release codenamed Sedna (named after a recently discovered dwarf planet) which was built on top of the VFP9 codebase had already begun. "Sedna" is a set of add-ons to VFP 9.0 of xBase components to support a number of interoperability scenarios with various Microsoft technologies including SQL Server 2005, .NET Framework, Windows Vista, Office 2007, Windows Search and Team Foundation Server (TFS). Microsoft released Sedna under the Shared source license on the CodePlex site. Microsoft has clarified that the VFP core will still remain closed source. Sedna was released on January 25, 2008. As of March 2008, all xBase components of the VFP 9 SP2 (including Sedna) were available for community-development on CodePlex. In late March 2007 a grassroots campaign was started by the Spanish-speaking FoxPro community at MásFoxPro ("MoreFoxPro" in English) to sign a petition to Microsoft to continue updating Visual FoxPro or release it to the community as open-source. On April 3, 2007, the movement was noted by the technical press. On April 3, 2007, Microsoft responded to the petition with this statement from Alan Griver:

"We're very aware of the FoxPro community and that played a large part in what we announced on March 13th. It's never an easy decision to announce that we're not going to release another version of a product and it's one that we consider very carefully. "We're not announcing the end of FoxPro: Obviously, FoxPro applications will continue to work. By some of our internal estimates, there are more applications running in FoxPro 2.6 than there are in VFP and FoxPro 2.6 hasn't been supported in many years. Visual FoxPro 9 will be supported by Microsoft through 2015. "For Microsoft to continue to evolve the FoxPro base, we would need to look at creating a 64-bit development environment and that would involve an almost complete rewrite of the core product. We've also invested in creating a scalable database with SQL Server, including the freely available SQL Server Express Edition. As far as forming a partnership with a third-party is concerned, we've heard from a number of large FoxPro customers that this would make it impossible for them to continue to use FoxPro since it would no longer be from an approved vendor. We felt that putting the environment into open source on CodePlex, which balances the needs of both the community and the large customers, was the best path forward."

Version timeline All versions listed are for Windows.

Features

Programming language The Visual FoxPro programming language is a high-level general-purpose procedural language. As such it is broadly similar to BASIC, Pascal and Python. Its features include:

Structured programming constructs for branching (IF / ELSE / ENDIF, DO CASE / ENDCASE) and looping (FOR / ENDFOR, DO WHILE / ENDDO). Loosely-typed variables. Ability to call functions (both built-in and programmer-defined), with parameters passed by value or reference. Support for object-oriented programming (OOP), including inheritance, encapsulation and polymorphism. Structured Query Language (SQL). SQL code can be used interchangeably with native FoxPro code.

Code samples

IDE Visual FoxPro has an extensive integrated development environment (IDE), with tools to assist in application development, including:

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Visual FoxPro

Start with the simplest possible case. Write down what Visual FoxPro claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Visual FoxPro before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Visual FoxPro ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Visual FoxPro

In research
Visual FoxPro appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Visual FoxPro in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Visual FoxPro is common in secondary-school and first-year university syllabi. It links to neighbouring topics 1984 software, Data-centric programming languages, Desktop database application development tools, so understanding it makes those chapters shorter.
In everyday life
Look for Visual FoxPro outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Visual FoxPro” →

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study Visual FoxPro in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Visual FoxPro means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Visual FoxPro out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Visual FoxPro in simple terms?

Visual FoxPro is a programming language that was developed by Microsoft. It is a data-centric and procedural programming language with object-oriented programming (OOP) features.

Why does Visual FoxPro matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Visual FoxPro?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Visual FoxPro.

Tags

  • 1984 software
  • Data-centric programming languages
  • Desktop database application development tools
  • Discontinued Microsoft development tools
  • Discontinued Microsoft software
  • Fourth-generation programming languages
  • High-level programming languages
  • Microsoft database software
  • Microsoft development tools
  • Microsoft programming languages
  • Multi-paradigm programming languages
  • Object-oriented programming languages

Keep exploring