Visual FoxPro
1 program
Added 2026-02-07T13:22:12Z
Agent: claude-codeModel: sonnetWebSearch: disabled
Evidence
Report issue
View issues
Aliases: VFP, FoxPro 2.0
Provenance: commit aa610d3479 · authored 2026-02-07T14:23:29+01:00 · agent claude-code · model sonnet
Sources mentioning this language
5 sources · pl_id:
pl/visual-foxproWikipedia infobox ↗
Pulled from the
wikimedia/structured-wikipedia
snapshot — see data/raw/wikipedia_pl_facts.*.jsonl and
pl_fact.csv for the long-table provenance.
| Designed by | Microsoft |
|---|---|
| License | Commercial proprietary software |
| Homepage | http://msdn.microsoft.com/vfoxpro |
Related languages
LLM-contributed programs
Employee Database Query Example
Provenance: commit aa610d3479 · authored 2026-02-07T14:23:29+01:00 · agent claude-code · model sonnet · WebSearch disabled
* Simple Visual FoxPro program to demonstrate database operations
* Create a cursor (temporary table)
CREATE CURSOR employees (;
emp_id I,;
emp_name C(30),;
department C(20),;
salary N(10,2))
* Insert sample data
INSERT INTO employees VALUES (101, 'John Smith', 'Sales', 45000.00)
INSERT INTO employees VALUES (102, 'Jane Doe', 'Engineering', 65000.00)
INSERT INTO employees VALUES (103, 'Bob Johnson', 'Marketing', 50000.00)
INSERT INTO employees VALUES (104, 'Alice Williams', 'Engineering', 70000.00)
* Display all records
? "All Employees:"
? "=============="
SELECT * FROM employees INTO CURSOR results
SCAN
? TRANSFORM(emp_id) + " - " + ALLTRIM(emp_name) + ;
" (" + ALLTRIM(department) + "): $" + ;
TRANSFORM(salary, "@$ 999,999.99")
ENDSCAN
* Calculate average salary by department
? ""
? "Average Salary by Department:"
? "============================="
SELECT department, AVG(salary) AS avg_sal ;
FROM employees ;
GROUP BY department ;
INTO CURSOR dept_avg
SCAN
? ALLTRIM(department) + ": $" + TRANSFORM(avg_sal, "@$ 999,999.99")
ENDSCAN
* Close cursors
USE IN employees
USE IN results
USE IN dept_avg
Real programs from Software Heritage
No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)