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
-1
votes
1 answer

how to connecting a variable to .caption in VB.NET

i want to make a variable can be used in .caption, so i can get the value and used it to make something. last experiment, i use it in foxpro and it can work pretty well. like this. foxpro code mix variable with system tmbl =…
-1
votes
1 answer

Bitwise XOR (exclusive OR) in PHP

I need a function in PHP which does the same as BITXOR(ASC("a"), 9) does in Visual FoxPro 9 (the result is 104). I don't code PHP ever, but the function XOR doesn't the same, I do: ord($lcCaract) xor $lnKey where $lcCaract = "a" and $lnKey = 9 and…
Alf
  • 67
  • 1
  • 1
  • 9
-1
votes
5 answers

In SQL, how to write a query such that the table is in wide format and not in long format?

I have two sql software that i am using, Visual Foxpro 7 and MS Access 2007. I wanna know if a query can be written in each of these which will give me a table in wide format. I know it involves subqueries which VFP 7 doesnt support, as far as i…
ijhaqqani
  • 71
  • 7
-1
votes
1 answer

update move mouse

I met a question about the efficiency of GDI+. There are several variables and methods as below: 1.Points, such as A(Represents a coordinate point, such as X Y Z), B, C, D, E, etc. 2 List named Cmd1, used to add points by thread 3.Paint method, in…
xuyunhai
  • 27
  • 5
-1
votes
1 answer

Foxpro query to select a single record from each group

I am hoping to find a simple SQL solution to my question. I have searched for one, but have been unable to find anything that works for my situation. I have a .dbf with client data, consisting of customer names, addresses and other information, to…
Herb
  • 636
  • 1
  • 15
  • 29
-1
votes
3 answers

Do you know VFP report library for developers?

I'm looking for good report library for Visual FoxPro, but it seems that there is lot "old" solutions with bad documentation. Does anyone have experience with some VFP report library?
-1
votes
2 answers

Pass parameters from BAT file OR VBS to Visual Fox Pro (.prg files)

I have many .prg files which I'm currently using daily. One of the parameters which I have to type in manually is todays date. The idea is that, as example, date will be as parameter in .bat or .vbs file and when I run bat or vbs... it will pass…
Denis
  • 79
  • 2
  • 13
-1
votes
1 answer

How to append CSV file into dbf?

Do you know how to append a .csv file into DBF by using FoxPro command , instead of using import wizard? I have tried the code below, but it is not working. Code: Append from getfile() Delimited With ,
CTC Yi
  • 1
  • 1
  • 1
-1
votes
1 answer

FoxPro My using .prg(coding) move fields

I would like toalter the table to move fields from one place to another. ABS1 ABS2 ABS4 ABS8 ABS3 So I would like to move ABS3 after ABS2, but not move the physicly. Would like the code do it for me.
user6105633
-1
votes
2 answers

ODBC Connection Dynamic From Clause

ODBC;DSN=Test;UID=;PWD=;SourceDB=\\server\folder\Test\prime.dbc;SourceType=DBC;Exclusive=No;BackgroundFetch=Yes;Collate=Machine;Null=Yes;Deleted=Yes; Then the functional static query that uses that connection. There are 5 tables in…
Kaw4Life
  • 209
  • 2
  • 17
-1
votes
2 answers

Formulas in Fox Pro

I am new to Visual Fox Pro so if anybody could help me I would really appreciate it. How do the formulas below can be written in fox pro, Prev_Pay=-pmt(rate%/12,30*12,Loan) New_Mod=Sum(Loan*90%) New_Pay=-pmt(2%/12,30*12,New_Mod) I need to find the…
pevstek
  • 1
  • 1
-1
votes
1 answer

oledb for vfp error : invalid path or file name when run asp.net on webserver

i develop web application asp.net connect to visual fox pro database free table(.dbf) with microsoft oledb for visualfoxpro driver. when i run program with vs2013 while developing connection is working fine. but when my website run on webserver it…
-1
votes
1 answer

convert following visual foxpro query to mysql query

I have the following statement that works in Visual Foxpro: SELECT distinct auvcov.covtyp,aucoty.des,auvcov.vehnbr FROM auvcov INNER JOIN aucoty ON UPPER(aucoty.covtyp) = UPPER(auvcov.covtyp) WHERE between(STR(anumber,11,3)+STR(bnumber,2,0),STR(" &…
-1
votes
1 answer

Export data to multiple Excel sheets?

How can I export data from Visual FoxPro into Excel file I know. I something like this: USE tableName EXPORT TO (fileName) TYPE XL5 AS CPDBF() I get Excel file with one sheet. Does anybody know how can export second table to the same excel file…
Shixx
  • 49
  • 7
-1
votes
3 answers

insert a new line of row into grid without recordsource

I've some problem to insert a new row line into record without insert into cursor and then append into recordsource. That said i've five record already in existing grid list but i need to add a new line into next row under grid list. Here is my…
koklimabc
  • 53
  • 2
  • 12