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
6
votes
5 answers

SQL Join Tables

Table one contains ID|Name 1 Mary 2 John Table two contains ID|Color 1 Red 2 Blue 2 Green 2 Black I want to end up with is ID|Name|Red|Blue|Green|Black 1 Mary Y Y 2 John Y Y Y Thanks for any…
Harley
  • 79
  • 1
  • 4
6
votes
3 answers

Access Visual FoxPro database from Java

I've been trying to access a Visual Fox Pro database from Java for a week now. I'm getting desperate because my project is in a very tied budget and timeframe. (As any other project, I guess, hahaha) I have a .dbf, a .cdx and a .fpt files. I need to…
elysch
  • 1,846
  • 4
  • 25
  • 43
6
votes
3 answers

SQL query to select a column with expression of non-aggregate value and aggregate function

Tables used: 1) v(date d, name c(25), desc c(50), debit n(7), credit n(7)) name in 'v' refers name in vn table 2) vn(date d, name c(25), type c(25), obal n(7)) name in 'vn' is a primary key and different names are grouped by type ex: names abc,…
Ganapathy
  • 174
  • 1
  • 3
  • 11
5
votes
2 answers

How to release inprocess COM Server object from Excel VBA

How do you force Excel (2007) VBA to release references to a COM server object? I have written an inprocess (Single instance DLL) COM Server in Visual Foxpro 9 SP2 which is instantiated from Excel 2007 VBA code on my development machine. Excel seems…
Caltor
  • 2,538
  • 1
  • 27
  • 55
5
votes
3 answers

How do I read a Foxpro 8.0 database from c#?

I need to import tables from foxpro 8.0 to sql server. How do I read the tables & schema from a foxpro directory/files in C# so I can create the tables in SQL Server and copy the data over?
cabgef
  • 1,398
  • 3
  • 19
  • 35
5
votes
1 answer

c# how to properly write into a .dbf (foxpro)

I am trying to insert new data into an old .dbf database created with foxpro. The database has a lot of columns and I dont need to fill every single one. The connection itself works. But now im getting the exception "Field XY does not allow null…
Sandmaann
  • 95
  • 1
  • 7
5
votes
1 answer

Where can I download Visual Foxpro? MSDN?

We have a legacy application written in Visual FoxPro I just inherited. We are unable to figure out where to download Visual FoxPro. We have an MSDN subscription which I have been told should get my a license for it as needed but I literally…
benstpierre
  • 32,833
  • 51
  • 177
  • 288
5
votes
1 answer

OleControl instantiated to wrong type - only when using in Reg Free COM?

I have an ActiveX control (created using C#) that I am adding to a form in Visual FoxPro using late binding. It works without problems when I register the control. I want to use reg free COM and created necessary manifest files. Now it load and…
embnut
  • 121
  • 5
5
votes
1 answer

How to approach whitelisting an app/exe

We have an application that auto-installs upgrades of itself on our customers' (Windows OS/PCs) computers. It is lightweight (650K) and does a very specific task for our customers in helping us collect data for them as part of our overall service to…
4
votes
6 answers

Download file (HTTP) with FoxPro

Today I was asked for help with a FoxPro issue, about how to download a file via HTTP. I found two things: one was a paid ActiveX, and the other one requires libcurl. Is there a way to do that without anything additional (VFP 8), something like…
Bozho
  • 588,226
  • 146
  • 1,060
  • 1,140
4
votes
3 answers

Create unique ID's in VFP

I need to create unique record id's in VFP based on mailing information: zip5, address, lastname, firstname. Once created, relational tables will be loaded in SQL server 7 with the unique ID's. Any suggestinos?
user67994
  • 41
  • 1
  • 2
4
votes
3 answers

VB.NET - Visual Foxpro OLE DB Problem with Numeric Decimal Column

In Short: I'm using VB.NET 2008 to connect to a Visual Foxpro 6 Database using the vfpoledb.1 driver. When I attempt to fill an OleDbDataAdapter with a dataset table that contains one of the numeric columns, I get the following error message: The…
HK1
  • 11,941
  • 14
  • 64
  • 99
4
votes
1 answer

Cannot locate the Microsoft Visual FoxPro support library

I have recently updated the Requests package for Python (I also installed WireShark around the same time, but I'm not sure if that's relevant). Since doing this, whenever I try and execute a Python file from the command line that imports the…
Mr. Pickles
  • 89
  • 1
  • 3
  • 7
4
votes
3 answers

How do I extract the data in a FoxPro memo field using .NET?

I'm writing a C# program to convert a FoxPro database to XML, and everything works except the memo field is blank. Is there something I'm missing to convert that bit? I'm using C# .Net 3.5 SP1, Visual FoxPro 9 SP 1 OLE DB Driver. Connection string…
4
votes
2 answers

Open FoxPro Table in VB.net 2005

I need to open foxpro free tables in vb.net using the oledb connection. But... I only need to get the column names. I don't really need to 'select' anything. I am trying to dynamically browse through all our free tables and set up a listing of every…
dna123
  • 268
  • 3
  • 12
1
2
3
81 82