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
3
votes
1 answer

OleDbTransaction RollBack does not work with FoxPro Data

I am using OleDb in a C# program that can work with either SQL or foxpro. I noticed that when I run statements in a transaction with foxpro data and then try calling RollBack it does not revert the data. The rollback works fine when running with…
Hagelt18
  • 828
  • 1
  • 10
  • 21
3
votes
2 answers

fox pro query to return sequential row number

Is there any function like ROW_NUMBER() of sql server to return the sequential number of a row in visual fox pro?Actually i am using oledb command in c# to retrieve data from fox pro. I need something like row_number() function to select few rows…
arjun
  • 625
  • 10
  • 27
3
votes
4 answers

Programming/Databasing with Visual FoxPro

I work for a company that uses a program that uses Foxpro as its database. I'm actually a little bit confused if Visual FoxPro is just a DB or its a programming lagnauge + database combined. I want to create some software to integrate with it, but I…
Michael
  • 8,229
  • 20
  • 61
  • 113
2
votes
3 answers

What problems do you encounter with VFP apps in a 64 bit environment?

I know that there are issues with the VFP OLEDB provider on 64 bit machines. ... but what issues do you encounter while actually running a VFP application - on a 64 bit machine? Has anyone had any experience in this area? My first thought was that…
Clinemi
  • 906
  • 6
  • 20
  • 33
2
votes
3 answers

FoxPro string returned from procedure is truncated

I am VERY new to FoxPro so please pardon what is most likely a very silly question. I am trying to wrap my brain around several FoxPro 9 programs that were written by a non-programmer and, having never looked at FoxPro code before in my life, am…
dscarr
  • 1,830
  • 2
  • 17
  • 21
2
votes
1 answer

Php, odbc & vfp

I'm trying to connect a dbf database with php. I've tried several different ways, with no luck. PHP: 5.3.8 File: C:\xampp\htdocs\work\vcabdoc.dbf 1rst way: created data source dbvfp, driver C:\Windows\system32\vfpodbc.dll used $odbc = odbc_connect…
João
  • 53
  • 1
  • 4
2
votes
2 answers

Visual FoxPro (VFP) CTOBIN and BINTOC Functions - Equivalent In .Net

We are rewriting some applications previously developed in Visual FoxPro and redeveloping them using .Net ( using C# ) Here is our scenario: Our application uses smartcards. We read in data from a smartcard which has a name and number. The name…
Kev
  • 743
  • 2
  • 14
  • 32
2
votes
2 answers

Visual FoxPro with Mercurial?

Could someone please tell any resources or links to learn usage of Mercurial with Visual FoxPro 9.0?
Ganapathy
  • 174
  • 1
  • 3
  • 11
2
votes
4 answers

What is the most recent official development IDE/Compiler for Visual Foxpro?

In a recent project, part of the assignment is replacing a Visual Foxpro application with a more modern web-app. As an intermediate step I may need to run and alter the old Foxpro application. What is the most recent development environment or IDE…
Mark Rogers
  • 96,497
  • 18
  • 85
  • 138
2
votes
2 answers

RPC_E_SERVERFAULT when calling Visual FoxPro COM object (out-of-process) from .Net?

I need to call a Foxpro (VFP 8) COM object from C# The vfp code looks like this: Define Class x2 As session OlePublic Function testInteropServer() ENDFUNC Enddefine The C# code looks like this: [TestFixture] public class TestFixture { …
CarbonMan
  • 4,350
  • 12
  • 54
  • 75
2
votes
2 answers

Help with a really strange COM+ callstack

We have a legacy COM+ dll that is called by an old ASP application. It is periodically crashing, and the call stack is very strange looking It appears that a call to DllUnregisterServer and to CoInstall appear within the call stack (we don't…
JMarsch
  • 21,484
  • 15
  • 77
  • 125
2
votes
1 answer

Creating XML file of folder directory hierarchy

I am trying to create an XML file that represents the hierarchical directory structure with an unknown amount of nested directories and files. This question relates to a previous one asked by myself, How to loop through nested directories in Foxpro…
DizzleBeans
  • 173
  • 6
2
votes
2 answers

How can I execute a custom function in Microsoft Visual FoxPro 9?

Using Microsoft Visual FoxPro 9, I have a custom function, "newid()", inside of the stored procedures for Main: function newId parameter thisdbf regional keynm, newkey, cOldSelect, lDone keynm=padr(upper(thisdbf),50) cOldSelect=alias() lDone=.f. do…
Trock
  • 33
  • 3
2
votes
2 answers

How can I use 'update where' select in FoxPro?

I am totally new to FoxPro (and quite fluent with MySQL). I am trying to execute this query in FoxPro: update expertcorr_memoinv.dbf set 'Memo' = (select 'Memo' from expertcorr_memoinv.dbf WHERE Keymemo='10045223') WHERE Keydoc like "UBOA" I got…
yarek
  • 11,278
  • 30
  • 120
  • 219
2
votes
2 answers

Cannot export all rows from foxpro to excel?

I'm trying to export tables from foxpro to excel, But it didn't export all rows from foxpro. I have 82377 rows in forxpro table, after I exported to excel, I found only 65534 rows in excel. I tried another foxpro table which had 67548 rows, but…
Alwayz Change
  • 225
  • 1
  • 4
  • 13