Questions tagged [visual-foxpro]

Questions tagged with Visual FoxPro should be specifically about the Windows based versions of FoxPro, from 3.0 through the final 9.0 version. Earlier versions, and the versions for the Mac and SCO UNIX are not "Visual", and shouldn't be tagged as such, nor should the tag FoxPro be included on questions about Visual FoxPro.

Visual FoxPro (VFP) is a data-centric, object-oriented, procedural, programming language from Microsoft. The last released version, 9 Service Pack 2, was in 2007. Microsoft has since discontinued the product, but it still has active use in business to this day, due to its low cost of deployment and fairly rapid development.

Visual FoxPro is a descendant of (originally FoxBASE), which in turn was based on of the family of file-based databases. In 2007 Microsoft confirmed that there will be no release of Visual FoxPro 10 or a .NET version of Visual FoxPro.

In 2008 Microsoft released a set of add-ons for VFP's xBase components to allow interoperability with various Microsoft technologies. These were developed under the codename Sedna and made available on the site under the shared source license.

The following versions of VFP have been released:

  • 1995 (VFP 3.0)
  • 1996 (VFP 5.0)
  • 1997 (VFP 5.0a)
  • 1998 (VFP 6.0)
  • 2001 (VFP 7.0)
  • 2001 (VFP 7.0 Service Pack 1)
  • 2003 (VFP 8.0)
  • 2003 (VFP 8.0 Service Pack 1)
  • 2004 (VFP 9)
  • 2005 (VFP 9 Service Pack 1)
  • 2007 (VFP 9 Service Pack 2)

Features

  • Database engine, using the format. Supports reading and writing dBase and FoxBASE files. While it retains this backwards-compatibility support, in later versions it included new features that, when used, made the table FoxPro-specific.
  • A built-in query optimizer called Rushmore. The FoxPro implementation of Rushmore made use of existing indexes when an index definition had a matching expression in the issued command.
  • SQL support, in the form of a limited ANSI SQL dialect, although it does have FoxPro extensions here and there.
  • OOP design. FoxPro has reasonable support for classes, class libraries, inheritance, etc.
  • Procedural support. The original FoxBASE was non-OOP and a procedural-oriented language that worked closely with internal data bindings. For backwards compatibility, this was retained.
  • GUI designers for Forms, Reports, and other controls.
  • Access to third-party databases was added in later versions. Tables in an outside database (say, PostgreSQL, Microsoft  SQL Server, MySQL, Oracle, or some other ODBC or OLEDB - connected database) could be added to a data session and made to appear like local FoxPro tables.

Resources

Please note that FoxPro has long since been discontinued by Microsoft, with the last version being version 9 SP 2.

1228 questions
0
votes
1 answer

How to get pending quantity using SQl Select in Visual Foxpro

I am having two tables one for purchase and second for sale. I want to create a query to get pending quantity. Ex. In Purchase Order File (2 records exsits) OrderID Party Quality Qty. 1 A AA 10 2 B BB 5 In Sale Order…
0
votes
1 answer

Integrating HTML & Web Browser OLE control got a blank page

I have a problem while integrating HTML into my VFP app. I attached the simulated form: http://www.foxite.com/uploads/879e1e57-8b72-4ac8-9453-c8839f2d051e.zip My app loads HTML into the web browser control by clicking a button. It is OK for the…
Sithu
  • 4,752
  • 9
  • 64
  • 110
0
votes
3 answers

Understanding Visual Foxpro 8.0 runtime

I don't know too much about Foxpro but I need it to review DBF files. On my PC, I have installed a client file: "Visual FoxPro 8.0 client.msi". Now I'm able to run an exe file of Visual Foxpro 8.0 from a folder where is copied: I haven't installed…
Delmonte
  • 411
  • 2
  • 9
  • 33
0
votes
1 answer

XMLTOCURSOR error in VFP

I try to use XMLTOCURSOR() in VFP 9.2. There is an error 'xml parse error xml document must have a top level element. Line 0, position 0 (null)' if I use ?XMLTOCURSOR('your.XML', 'test', 512), it returns one row here is my file, your.xml:
user1188125
  • 677
  • 2
  • 13
  • 21
0
votes
2 answers

How to get utf-8 chars from mysql to visual fox pro

I have a MYSQL table with a single column. The database, table and column collation are set to: utf8_general_ci. Using a browser, I insert strings in that field. If I insert chars like: şţăîâ or ŞŢĂÎÂ, it is inserted ok. I can see them ok using…
gavroche
  • 249
  • 3
  • 12
0
votes
1 answer

Passing parameters to VFP 9 form

I have a form in VFP 9 that is usually called from another form with 2 parameters. I've got a strange thing happening: when I execute DO FORM jobless_add in command window, the first parameter is always set to "2", while no parameters were added.…
kirias
  • 48
  • 5
0
votes
6 answers

Foxpro compiler

I have a legacy FoxPro 2.6 application and I would like to compile it using a newer FoxPro version so I can run it on Windows 7 x64 systems (through x32 compatibility) and distribute it commercially. Is there any way of doing this in a legal way…
Cosmin SD
  • 1,467
  • 3
  • 14
  • 21
0
votes
2 answers

Testing For The Existence of a Primary Key in Visual Foxpro 9

In my code, I have a routine does some database maintenance upon startup and I use the following code to drop a primary key from a table. USE Students EXCLUSIVE ALTER TABLE Students DROP PRIMARY KEY Life is good if this runs only once and the key…
Hank Wilson
  • 509
  • 12
  • 31
0
votes
2 answers

Select Within A Select

I have a table in my database that contains all the records for a group of individuals, both male and female plus their offspring. Each record has that individuals place of birth. I'm trying to create a cursor to display all births between a…
Hank Wilson
  • 509
  • 12
  • 31
0
votes
1 answer

Turning off Autocommit in Visual Fox Pro?

I begin my transactions in VFP9 with BEGIN TRANSACTION and end them with ROLLBACK but the changes persist anyway. I'm using a free table directory and I think maybe the issue might have something to do with buffering but I don't know how to apply…
leeand00
  • 25,510
  • 39
  • 140
  • 297
0
votes
1 answer

Error installing software "cannot locate microsoft visual foxpro support library windows xp"

When I try to install software on my Windows XP machine, it is looking for Microsoft Visual foxpro support libraries, and I'm getting this error: cannot locate microsoft visual foxpro support library. Googled and got some suggestions which did not…
Raja
  • 9
  • 1
  • 1
  • 3
0
votes
2 answers

Find a Specific Character in a Field and Replace it with a Phrase

I've been searching around the internet for an answer to this question for a few hours and I'm not able to find anything. My experience with FoxPro is quite limited. This will probably be 2 questions in one. First question: I have a list of items…
Lordv8r
  • 90
  • 1
  • 2
  • 9
0
votes
1 answer

Visual Foxpro 8.0 not responding when site is hosted in Windows7 IIS 6.0

I created an ASP.Net 4.0 website and make an OLEDB connection with Visual Foxpro 8.0 databse for selecting data from a table. Used code is written below... string strConnString = "Provider=vfpoledb;Data…
Shoeb
  • 652
  • 9
  • 17
0
votes
2 answers

Insert/Select data in foxpro database using c# .net

I want to use FoxPro database in backend and c# .net in front end but i don't know how to connect with foxpro database in .net For connectivity what code i use, please suggest...
Shoeb
  • 652
  • 9
  • 17
0
votes
1 answer

c++ dll for FoxPro

I have program compiled with FoxPro that calls d1.dll functions. d1.dll was developed with Delphi 2007. I need to develop d1.dll that will replace existing one using c++. After several tests FoxPro application crashes in random places with random…
vico
  • 17,051
  • 45
  • 159
  • 315