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

Javascript equivalent of visual foxpro gomonth()

I'm tasked with writing a web portal for a legacy application that was written in Visual Foxpro. I have to validate a pregnancy due date. The rule is that it can't be more than 9 months from the current date. I've already tried to argue that this is…
Nathan
  • 1,080
  • 7
  • 16
0
votes
1 answer

PHP to VFP. Error: Could not convert string to unicode

I have written a code to get images from instagram and saving data to DB using the code below: Calling this PHP file from the command line, I am getting this error: Warning: Unknown: Could not convert string to Unicode: 'No mapping for the Unicode…
chetan
  • 129
  • 1
  • 2
  • 12
0
votes
1 answer

Unable to save data in vfp dbf thourgh php

What im doing wrong, My code is in php and i want to save data into dbf. I have tested this code in vfp and it is working vfp code hh='INSERT INTO instadb.db(pic_nm,user_pic,hashtag,usernm)…
chetan
  • 129
  • 1
  • 2
  • 12
0
votes
1 answer

visual fox pro recno() function

The recno() function work only with a single table. When there are joins it doesn't work. Since my data are huge I want to retrieve few rows at a time using row number. Is there other way to do this without using store procedure but oledb.
arjun
  • 625
  • 10
  • 27
0
votes
2 answers

oledb, visual fox pro and c#

I have visual fox pro database with thousands of rows. I am using oledb to fetch data from fox pro and export(after doing some calculation and fomatting) it to sql server.I have used dataset to populate 2-3 datatable(related table) at a time. First…
arjun
  • 625
  • 10
  • 27
0
votes
2 answers

Source Table Structure Changes in SSIS Data Source

I am importing a FoxPro table into SQL Server 2008 using SSIS. The source data is a proprietary database that I have no control over. Let call the table I am importing Customers. Sometimes, the structure for Customers looks like this: ID…
0
votes
2 answers

Running 32 bits compiled Visual Foxpro App in Win 7 64 bit machine

Good afternoon I have a inherited (from programmer abroad) Visual FoxPro 32 bits app and I have to make it run in a Windows 7 64 bits PC, once I try to run it it displays a message that says ("The version of this program is different from the…
eddyraz
  • 41
  • 1
  • 1
  • 7
0
votes
1 answer

Visual Studio 10 DataGridView and DatePicker on Where clause

I am loading a visual fox pro database table into a data grid view in visual studio. On the form there is also a date picker and I need to add what date is currently selected in my dataset query. Can someone point me in the right direction? Here…
0
votes
3 answers

Visual FoxPro OLE DB Performance issues looping on DBF file

I have a .DBF file (Well, 6 DBF files with the same structure) that have over a million and a half rows. I also have a C# app that is migrating this data into a SQL database using an API we made. The program starts quickly, being able to process 30…
Thoth2020
  • 21
  • 10
0
votes
3 answers

Vertical Scrolling Marquee for foxpro

Could anyone could point me to some code/give me ideas on how to create a smooth scrolling vertical marquee for VFP 8 or 9? Any help is appreciated.
nmarmol
  • 813
  • 1
  • 10
  • 10
0
votes
1 answer

Using Foxpro tables and Advantage Data Architect

I mainly want to use advantage to be able to access Fox tables larger than 2 gig. My programs are simple and are run from the command window. I have Adv Data Archetect installed and have the ODBC driver installed. I'm not very knowledgeable with…
KEV KNOX
  • 1
  • 1
0
votes
1 answer

VFP 9.0 writing the status window out to a file

Is it possible to write out the status window in VisualFoxPro 9? Not talking about the command window, but the base window of the program that generates text when you use: ? "SomeTextHere" I want to be able to write out all the text to a txt…
Kris Gruttemeyer
  • 872
  • 7
  • 19
0
votes
2 answers

VFP insert, index updating

So the main program is in C#. Inserting new records into a VFP database table. It was taking too long to generate the next ID for the record via select max(id)+1 from table , so I put that code into a compile dll in VFP and am calling that COM…
user136366
0
votes
1 answer

Foxpro program need to understand

I have never used Foxpro before. Can you convert the following Foxpro code into c# so that I can understand the logic. I am mainly interested in the password logic. Also what is spac()? can_p is the .dbf file where username password is stored. but…
jeff
  • 684
  • 1
  • 11
  • 30
0
votes
2 answers

Problems Converting Visual FoxPro Stored Procs to equivalent MS SQL Server

We are having some serious issues migrating Visual FoxPro to SQL Sever.. I don't know much about FoxPro.. Anybody who have done this migration could please help me with my question below How do I write an equivalent SQL statement to SET…
rock
  • 585
  • 3
  • 10
  • 26