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

Database connectivity error in Visual FoxPro 9 application [DBNETLIB]ConnectionRead (recv())

I have a Visual FoxPro 9 application which loads a large amount of data from text files into a small number of tables in a SQL Server database. The VFP9 application is not running on the same machine as the SQL Server. I can not reproduce the error…
DWRoelands
  • 4,878
  • 4
  • 29
  • 42
0
votes
2 answers

Syntax error in an insert on dbf table

i am trying to make an insert on a dbf table using jdbc, but every time that i execute the system give me this error: Exception in thread "main" java.sql.SQLException: [Microsoft][ODBC Visual FoxPro Driver]Syntax error. at…
hidura
  • 681
  • 3
  • 11
  • 36
0
votes
2 answers

Multiple users accessing VFP App / dbase database over network - slow issues

I'm currently running a VFP9 application that uses a database which is basically a folder of multiple DBF, FPT and CDX files. Now this database is basically shared on the network (1GB network/switch/PCs) for over 50 users to access. Now at times we…
Ryan
  • 3
  • 1
  • 6
0
votes
1 answer

Visual foxpro 9: dump a Microsoft SQL Server varbinary field to a file

I have a program written in VF9 that uses a MS Sql 2008 Database. Here the problem: I have a SQL Table which have some files in a varbinary format. Where can I find a function that dump those fields to files in the local machine of the user that…
LuciferSam
  • 313
  • 5
  • 20
0
votes
1 answer

Visual Foxpro 9 - Tapix sample

suddenly charged with trying to out why a form which uses TAPIEx is no longer working I find my self lacking in using the Tapi OLEControl Can anyone offer sample VFP code to help me gain an insight into how the control works my foxpro is pretty…
Hugh CB
  • 31
  • 2
0
votes
1 answer

FoxPro SQL - Want to return rows based on certain row numbers - OLEDB C# ASP.NET

I've read several other threads that point towards this article http://msdn.microsoft.com/en-us/library/y7tz3hhk%28v=vs.80%29.aspx However the example doesn't lend itself to what I want very well. I looked at a few other SQL statements, and I'm not…
Evan Parsons
  • 1,139
  • 20
  • 31
0
votes
3 answers

Non auto increment primary keys in a legacy Visual Fox Pro application

First let me say I can't modify the database schema at all. I do not have access to any of the existing code which interacts with the database. Its a compiled assembly and I can't decompile. I have database tables with a value which functions as a…
John Farrell
  • 24,673
  • 10
  • 77
  • 110
0
votes
2 answers

Scripting.FileSystemObject returns only partial result

From a visual foxpro 9 application we use the filer.fileutils activeX object to retrieve a list of all files in a folder. This worked fine for several years. But now we only get some of the files from the folder, when we run it on the server with…
André Schild
  • 4,592
  • 5
  • 28
  • 42
0
votes
1 answer

System.AccessViolationException error when accessing COM DLL written in Visual FoxPro

I have a C# WinForms .NET 3.5 application that I need to call a COM DLL written in Visual FoxPro 7. I have added the COM object to the C# project fine, and can view the objects and its members in the object browser fine. However when I attempt to…
0
votes
1 answer

How to print the content in RichTextBox in FoxPro

I have searched the web about the topic but all I have found is the VB and C# solutions. Does anybody know if there is a way in VFP 9 to print out the content in the RichTextBox?
0
votes
2 answers

Link to Visual Foxpro 9 from Access 2010

I want to read some data from VFP 9 database using Access 2010. I have tried downloading the ODBC driver but I am told to use the OLEDB driver instead on the MS site. How do I link to a VFP table from Access 2010.
Paul
  • 757
  • 3
  • 10
  • 38
0
votes
2 answers

Execute Visual Fox Pro Commands from Java

I want to execute Visual Fox Pro Commands from my Java application. What is the best way to do so (preferably open source)?
user1912404
  • 386
  • 4
  • 11
  • 26
0
votes
0 answers

Why does xp_msver return unicode on some installations of SQL Server?

Looking at various installations of SQL Server, sometimes the 4th column returned by xp_msver will sometimes be nvarchar and sometimes it will be varchar. This appears to have no bearing on the version of SQL Server, since I see some copies of SQL…
jveazey
  • 5,398
  • 1
  • 29
  • 44
0
votes
2 answers

Trying to access field using textmerge command

I am coding a program on Visual FoxPro that is retrieving data from .DBF files and I have some trouble with a SQL query. My program receives some input from the user, mainly some start and end time and dates. My trouble is that I use the TEXTMERGE()…
Philippe K
  • 81
  • 1
  • 13
0
votes
3 answers

Replace " with nothing in textfile via Foxpro

I've created a program in FoxPro that takes a CSV file with limited data and assigns values and other things and then exports it to a comma delmited text file. The problem I've run into is that there are 2 dates in a row in this file, each of which…
Lordv8r
  • 90
  • 1
  • 2
  • 9