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

SQL query on VFP DB: how to get data from row corresponding to the grouping and aggregation of another

background: Using OLEDB driver to connect to a VFP database. Scripting: php below is a sample set of data item purchases: partno purch_date price A 04/02/2012 95 A 04/01/2012 100 B 02/28/2012 55 B 03/15/2012 …
AKINGA
  • 1
  • 1
0
votes
1 answer

updating data several times trough webservice

I want to ask about webservices. Consider a scenario : I entry my data in a vfp desktop apps. When I hit 'save', the apps saved my data in local database, and send it as xml to a webservice ( a php file ) in remote location. The web service then…
wong chung yie
  • 175
  • 1
  • 4
  • 14
0
votes
2 answers

registering a dll, in visual foxpro 7, windows 7

i have an application written in VFP 7, somewhere in the application i call a function in a dll using the following : declare long FunctionName in DLL_NAME.dll string@, string@ . . . RETURN FunctionName( StringParam1, StringParam2) calling this…
user1327073
  • 1,004
  • 6
  • 14
  • 20
0
votes
3 answers

.DBF File Cannot Open in Shared Mode

I'm currently trying to debug an issue with a legacy system at my company. The original project was developed in the mid 90's, and everyone who knew the system has left the company. Currently we're seeing an error with one of the .DBF files, a…
Corey
  • 398
  • 1
  • 4
  • 18
0
votes
1 answer

ask for a faster and more secure webservice using php and vfp

I'm not sure whether these are programming questions, but I'm sure lots of new programmer like myself has been asking the same questions. I've created a webservice to update data to a vfp free tables using php.I use VfpOledb to connect php and the…
wong chung yie
  • 175
  • 1
  • 4
  • 14
0
votes
3 answers

vfp query much faster in command window than compiled

Here's my query: SELECT solGroup,; SUM(IIF((; SELECT COUNT(*) FROM cgift c2; WHERE c2.solgroup != c1.solgroup AND c1.donor == c2.donor; ) > 0; ,1,0)); countgaveother; …
DanielST
  • 13,783
  • 7
  • 42
  • 65
-1
votes
1 answer

Writing dbf file in C#(.net6) from Scratch

i want to save DataTable as dbf file but i don't know how to do that... i googled it but result was old and didn't work in .net 6. can anybody guide how do that please?
-1
votes
1 answer

How MS Access 64 bit import or link from Visual FoxPro database?

before I use MS Access 2010 32 bit link to Visual FoxPro through ODBC driver. after I upgrade to MS Access 2016 64 bit. the ODBC driver does not show Visual FoxPro databases. and Access cannot connect to VFP. anyone can advise?
-1
votes
2 answers

How can I copy data from a cursor file in Visual FoxPro to an Excel template?

How can I copy data from a cursor file in Visual FoxPro to an Excel template?
-1
votes
1 answer

How i can fix: "OLE error Unknown COM status code" in foxpro

I have the code > lc_nmfp = GETFILE() IF LEN(ALLTRIM(lc_nmfp)) < 1 then > MESSAGEBOX("ôàéë íå âûáðàí") RETURN endif ln_w = > GETWORDCOUNT(lc_nmfp,"\") lc_nmf = GETWORDNUM(lc_nmfp,ln_w,"\") lc_f = > GETWORDNUM(lc_nmf,1,".") lc_p = "" ln_i…
-1
votes
3 answers

Visual FoxPro 9. Set Grid.RecordSource to the result of SELECT

I have 2 grids and 2 tables. I want the second one to display elements that are related to the selected enement of first grid. This can probably be done in 2 ways: either have a filer on grid2 that changes according to my selection in grid1, or…
-1
votes
1 answer

How to find the eof of a Visual Foxpro dbf file in python?

So I'm opening a visual foxpro dbf file in python. I'm trying to make a statement: if eof(): Do something else: Do something As I recall Python 3 doesn't use Eof so is there any solution on how I know if I reached the end of…
user13470314
  • 27
  • 1
  • 8
-1
votes
1 answer

is IIF function realeted to if in foxpro?

ExportCus = IIF(GetControlValue("QBCUSTXFER", "Cnt", "Code") = "YES", .T., .F.) can someone explain the diffrence between if and iif, i have tried if insted of iif and thats not working. help me
-1
votes
1 answer

How to access PInvoke DLL from DLL COM C# Project¿?

need to acces manually functional DLL (C++) with PINVOKE method, i don't how to access to signatures, this functional DLL is make for extern developers. exists another pinvoke method to return all values? Visual Fox Pro 9.0 bug: This problem is…
Ignacio_aa
  • 318
  • 2
  • 8
-1
votes
1 answer

How can I verify a handle that is active in advantage dataserver 11 with VFP

How can I verify if my connection to the database is active? I make the connection but I want to know at a certain moment if the connection is active. In SQL server I can do sqlexec(lnHandle, "select @@version"), but I need it in Advantage…