Difference between revisions of "Visual FoxPro"

From TheAlmightyGuru
Jump to: navigation, search
(45 intermediate revisions by the same user not shown)
Line 1: Line 1:
'''''Visual FoxPro''''' is a programming language from Microsoft. The primary use of the language is for database development. The programming syntax is similar to that of Visual BASIC. The language uses weak-typed variables that don't have to be declared before being used. It compiles to pseudo-code which is interpreted by the runtimes.
+
[[Image:Visual FoxPro 9.jpg|thumb|256x256px|Visual FoxPro 9.]]
  
Visual FoxPro is based off of FoxPro, based off of FoxBASE, based off of dBASE. The language is no longer being updated, though it is still supported by Microsoft.
+
'''Visual FoxPro''', or '''VFP''', is a [[Computer programming|programming language]] and IDE that was sold by [[Microsoft]], but is now defunct. The primary use of the language is for rapid database application development. The programming syntax is similar to that of [[Visual BASIC]] (not [[VB.NET]]). The language uses dynamic inferred structural typing. It compiles to pseudo-code which is interpreted by the runtimes which must be distributed along with the program.
  
Though I had seen FoxPro icons since my first days with Windows 3, I never knew what FoxPro was. I got my first taste of Visual FoxPro in 1999. It was the main programming language for the company I started working for. I was familiar with Visual BASIC, so it was pretty easy for me to pickup the syntax, and I had just developed an Access application for my school, so I knew enough about databases to secure my job. I've used VFP from version 6 to 9 for over 11 years now.
+
Visual FoxPro is based off of [[FoxPro]], which was the result of Microsoft buying FoxBase from Fox Software. FoxBase was derived from dBase III.
 +
 
 +
The last official release of Visual FoxPro was version 9, which was released in 2004 with a final service pack released in 2007. Microsoft officially discontinued support in 2015.
 +
 
 +
Though I had seen FoxPro icons since my first days with [[Windows 3]], I never knew what FoxPro was. I got my first taste of Visual FoxPro in 1999 because it was the main programming language used by the company I started working for. I was familiar with Visual BASIC, so it was pretty easy for me to pickup the syntax, and I had just developed an [[Access]] application for my high school, so I knew enough about databases to secure my job. I've used VFP from version 6 until its final release, version 9.0 SP2.
  
 
==Review==
 
==Review==
 
===Good===
 
===Good===
* The language has a built-in database creator, editor, and viewer, the best I've ever seen.
+
* The IDE has a bunch of built-in editors for databases, forms, reports, menus, and more. Though none of them aren't without their problems, it's one of the most complete I've ever used.
* It has a full SQL interpreter as well as many additional database features, and they're very easy to use.
+
* The IDE uses an vastly superior MDI (multiple document interface) instead of the inferior, and, unfortunately, now industry standard, TDI (tabbed document interface). Unlike in a TDI, you can easily open and view several different code segments and designers at the same time. You can even open multiple widows from the same code source which is extremely helpful, something I wish every other IDE would adopt (I'm looking at you [[Visual Studio]]).
* The SQL speed is lightning fast, even to the point of outpacing SQL Server at times.
+
* It has a full [[SQL]] interpreter as well as many additional database features not found even in modern databases, and they're very easy to use.
 +
* The SQL speed is lightning fast, and highly optimization, even to the point of outpacing many other professional SQL programs.
 +
* Some of the table field types are quite useful like the currency with 4-digit decimal precision, and the numeric which is based on length of digits rather than bytes.
 +
* Unlike most earlier versions of [[Visual BASIC]], VFP had several built-in variable types like datetime and logical with assorted functions to work with them.
  
==Bad==
+
===Bad===
* The database format is way out of date and doesn't support any of the new data types, or even some primitives. You can't store a short or double long integer, there is no support for unsigned integers, no Unicode support, etc.
+
* The database format is way out of date and doesn't support any modern formats like Unicode.
 +
* Numeric variables (and likewise, table fields) are divorced from most other languages. There is no support for unsigned values at all, and there are no primitive types like byte, int, long, etc. Instead, all numbers are treated as either signed double integers or floats, and even then, their type is always implied.
 
* Functions that affect file names like ''Copy File'' don't preserve text case.
 
* Functions that affect file names like ''Copy File'' don't preserve text case.
* The UI does a poor job of storing the position of windows and the code block you last viewed.
+
* The UI tries to remember the position of windows and the code block you last viewed, but usually fails.
 
* Although VFP is mostly object oriented, it has a lot of legacy commands and functions that are procedural. This lack of standards creates confusion.
 
* Although VFP is mostly object oriented, it has a lot of legacy commands and functions that are procedural. This lack of standards creates confusion.
 +
* While text fields longer than 254 characters are possible, they require the use of "memos" which are especially cumbersome to work with.
 +
* VFP's help has a poor index which is missing dozens of commands. For example, Type "ALEN" in the Index tab and you get a page for "_ALen() API library routine," but there isn't an entry for the ALEN() Function, even though a page exists and can be found in the Search tab.
 +
* VFP's help is seriously lacking on SQL examples and only shows you the most basic of queries.
  
==Ugly==
+
===Ugly===
 
* VFP has really poor ActiveX and OLE support, often to the point of crashing the UI.
 
* VFP has really poor ActiveX and OLE support, often to the point of crashing the UI.
* VFP has really poor array support. Arrays must be 2D (to resemble tables). Single dimensional arrays, or three or more dimensional arrays are not possible.
+
* VFP has really poor array support and only supports 2D arrays (to resemble tables). Single dimensional arrays and arrays with three or more dimensions are not possible.
  
 +
==Tricks==
 +
* [[Visual FoxPro Tricks]]
  
 
==Links==
 
==Links==
* [http://en.wikipedia.org/wiki/Visual_Fox_Pro en.wikipedia.org/wiki/Visual_Fox_Pro] - Wikipedia.
+
{{Link|Wikipedia|http://en.wikipedia.org/wiki/Visual_Fox_Pro}}
 +
 
  
[[Category:Programming Language]]
+
[[Category: Software]]
 +
[[Category: Windows Software]]
 +
[[Category: Windows 3 Software]]
 +
[[Category: Database Software]]
 +
[[Category: Programming Languages]]

Revision as of 16:51, 7 November 2019

Visual FoxPro 9.

Visual FoxPro, or VFP, is a programming language and IDE that was sold by Microsoft, but is now defunct. The primary use of the language is for rapid database application development. The programming syntax is similar to that of Visual BASIC (not VB.NET). The language uses dynamic inferred structural typing. It compiles to pseudo-code which is interpreted by the runtimes which must be distributed along with the program.

Visual FoxPro is based off of FoxPro, which was the result of Microsoft buying FoxBase from Fox Software. FoxBase was derived from dBase III.

The last official release of Visual FoxPro was version 9, which was released in 2004 with a final service pack released in 2007. Microsoft officially discontinued support in 2015.

Though I had seen FoxPro icons since my first days with Windows 3, I never knew what FoxPro was. I got my first taste of Visual FoxPro in 1999 because it was the main programming language used by the company I started working for. I was familiar with Visual BASIC, so it was pretty easy for me to pickup the syntax, and I had just developed an Access application for my high school, so I knew enough about databases to secure my job. I've used VFP from version 6 until its final release, version 9.0 SP2.

Review

Good

  • The IDE has a bunch of built-in editors for databases, forms, reports, menus, and more. Though none of them aren't without their problems, it's one of the most complete I've ever used.
  • The IDE uses an vastly superior MDI (multiple document interface) instead of the inferior, and, unfortunately, now industry standard, TDI (tabbed document interface). Unlike in a TDI, you can easily open and view several different code segments and designers at the same time. You can even open multiple widows from the same code source which is extremely helpful, something I wish every other IDE would adopt (I'm looking at you Visual Studio).
  • It has a full SQL interpreter as well as many additional database features not found even in modern databases, and they're very easy to use.
  • The SQL speed is lightning fast, and highly optimization, even to the point of outpacing many other professional SQL programs.
  • Some of the table field types are quite useful like the currency with 4-digit decimal precision, and the numeric which is based on length of digits rather than bytes.
  • Unlike most earlier versions of Visual BASIC, VFP had several built-in variable types like datetime and logical with assorted functions to work with them.

Bad

  • The database format is way out of date and doesn't support any modern formats like Unicode.
  • Numeric variables (and likewise, table fields) are divorced from most other languages. There is no support for unsigned values at all, and there are no primitive types like byte, int, long, etc. Instead, all numbers are treated as either signed double integers or floats, and even then, their type is always implied.
  • Functions that affect file names like Copy File don't preserve text case.
  • The UI tries to remember the position of windows and the code block you last viewed, but usually fails.
  • Although VFP is mostly object oriented, it has a lot of legacy commands and functions that are procedural. This lack of standards creates confusion.
  • While text fields longer than 254 characters are possible, they require the use of "memos" which are especially cumbersome to work with.
  • VFP's help has a poor index which is missing dozens of commands. For example, Type "ALEN" in the Index tab and you get a page for "_ALen() API library routine," but there isn't an entry for the ALEN() Function, even though a page exists and can be found in the Search tab.
  • VFP's help is seriously lacking on SQL examples and only shows you the most basic of queries.

Ugly

  • VFP has really poor ActiveX and OLE support, often to the point of crashing the UI.
  • VFP has really poor array support and only supports 2D arrays (to resemble tables). Single dimensional arrays and arrays with three or more dimensions are not possible.

Tricks

Links

Link-Wikipedia.png