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
2 answers

Working with the Visual Fox Pro OleDb

I am trying to pull data from DBF files into my program using C#. I am using the Visual FoxPro OLE DB Provider. It works fine on my local machine but I want to package up my program into dll that clients can use. The problem is when they run the…
jumbojs
  • 4,768
  • 9
  • 38
  • 50
3
votes
1 answer

Decode/decrypt string | FoxPro 9

I have an old Visual FoxPro 9 application which stores data in dbf files. There is encrypted/encoded name of the company stored in this format…
3
votes
2 answers

'Not enough memory for file map' when attempting update to linked server using VFP ODBC driver

I have a linked server in SQL Server 2008 that's using the MDASQL provider to access a Visual Fox Pro ODBC DSN. I'm receiving the below errors when attempting to perform simple queries: OLE DB provider "MSDASQL" for linked server "odbclinkedserver"…
WT_W
  • 235
  • 1
  • 3
  • 11
3
votes
3 answers

String Splitting in Foxpro Visual 9

I have a column of strings separated by comma. Example: City, Zipcode I want to make a column with only city populated so everything before the comma. How has anyone else accomplished this? I know with Foxpro you can usually accomplish the same…
3
votes
2 answers

Visual Fox Pro and Python

I'm working with a visual fox pro database (.dbf file) and I'm using the dbf python module. Heres an example: myDb = VfpTable('table.dbf'); Now I can exclude deleted items with this by doing the following: myDb._use_deleted = None; My…
Dalton Conley
  • 1,599
  • 2
  • 28
  • 36
3
votes
2 answers

Should I use WCF for a simple textual wire protocol?

I need to write a program that will communicate with other .NET programs ... but also a legacy VFP program over TCP. I need to choose a fairly simple TCP message format that the VFP programmer can use. It could be as simple as a sequence of small…
Qwertie
  • 16,354
  • 20
  • 105
  • 148
3
votes
1 answer

Python DBF: How to associate a .cdx index with a .dbf table

I have been given an ambiguous task of automating a data extraction from various Visual FoxPro tables. There are several pairs of .DBF and .CDX files. With the Python dbf package, I seem to be able to work with them. I have two files, an ABC.DBF…
Lorem Ipsum
  • 4,020
  • 4
  • 41
  • 67
3
votes
3 answers

Is there any way we can connect to document databases like Visual Fox pro using TCP tunneling

My requirement is I should be able to connect to different databases which are not in my network. I should be able to establish connection by passing Firewall,Nat.We have tried Ngrok which is a tool that can in be installed in machine out of my…
Mahesh
  • 823
  • 1
  • 11
  • 29
3
votes
2 answers

Can I extract a file from a foxpro general field?

I'm porting a VFP 9 application to SQL Server. The VFP app has some tables with "general" fields in them. I get a byte array when query the field, and when I save it to disk, I can look inside and see it's a word document, or a Paint BMP, etc. From…
Craig Shearer
  • 14,222
  • 19
  • 64
  • 95
3
votes
3 answers

NHibernate configuration to connect to Visual FoxPro 8.0?

Curious if anyone out there has ever connected NHibernate to Visual Foxpro 8.0? I'm looking to hook into a legacy data store, and would prefer to use NHibernate vs. having to hand-code all of the ADO.Net. If anyone has an example of the…
Bob Palmer
  • 4,714
  • 2
  • 27
  • 31
3
votes
4 answers

Visual FoxPro Compact Index File Format

I am trying to understand the file format of a Visual FoxPro compact index (*.IDX). I am currently referring to Microsoft's documentation for guidance. The index is a B-tree of 512-byte nodes. Each leaf ("exterior") node contains multiple entries.…
Adam Paynter
  • 46,244
  • 33
  • 149
  • 164
3
votes
1 answer

What's Visual FoxPro's string lt(<)/gt(>)/lte(<=)/gte(>=) comparison rule?

?"ABC">"A" returns .F. ?"ABC">"B" returns .F. ?"ABC">"a" returns .T. This seems not an ASCII comparison (as in other common programming languages). I'v searched MSDN, however Relational Operators only explained comparison across numeric type or…
Jamesits
  • 612
  • 7
  • 18
3
votes
1 answer

Unable to read visual foxpro dbf table using PHP (ole db)

I am trying to read visual foxpro .dbf files using php and getting the following error: Fatal error: Uncaught exception 'com_exception' with message 'Source: Microsoft OLE DB Provider for Visual FoxPro
Description: Invalid path or…
aiiwa
  • 591
  • 7
  • 27
3
votes
1 answer

If I change an ODBC DSN from the registry in Windows 7, will my linked tables in MS Access need refreshed?

If I update the ODBC DSN registry entries to reflect server migration changes, will the linked tables that use these in local MS-Access databases need refreshed, or will they just automatically point to the linked tables on the other server? Or…
leeand00
  • 25,510
  • 39
  • 140
  • 297
3
votes
3 answers

URLEncode in FoxPro

I couldn't quickly find a google answer, and I don't have the help in front of me (long story), so, my question is: Is there an easy way to URL-encode a string in MS Visual FoxPro 8
Bozho
  • 588,226
  • 146
  • 1,060
  • 1,140