Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17



Visual FoxPro (VFP), and its predecessor FoxPro, is a data-centric, object-oriented, procedural, database programming language and IDE from Microsoft last released in 2007 that still has some active use due to its low cost of deployment and fairly rapid development. In 2008, Microsoft released a set of add-ons for VFP's xBase components to allow interoperability with various Microsoft technologies. It allows data processing against its native file-based data tables or database servers such as SQL Server.

Share tech news, updates, or what's on your mind.

Sign up to Post

Hello Experts!

So I'm working on converting some programs over from Inserting data into FoxPro to now inserting that same data into MS Access 2013...because lets face it FoxPro is gone.

Now comes my issue, in FoxPro I had a field set to character length of MS Access same field text set to length of 4.
However there are times I get data in the file that is longer than 4 and when importing that data into FoxPro it would just truncate the data from say 6 to 4 and insert it...however in MS Access it doesn't strip it from 6 to 4 it throws an error.

"The field is too small to accept the amount of data you attempted to add."

Is there a way to set MS Access (property of some kind) that will just truncate (ignore the length) the data if it is longer than 4?
Or do I need to change my program to pull all fields from left to right and truncate all the fields in my program?

Linux Academy Android App Now Supports Chromecast
Linux Academy Android App Now Supports Chromecast

We have some fantastic news for our Android fans. We’re so excited to announce that the Linux Academy Android app is now available with Chromecast support. That’s right – simply download the latest update of the Linux Academy App and start casting your favorite course videos!

Hi Experts,

i need suggestion to convert .xlsx or .csv file in to .dbf format , in my machine i had installed Visual FoxPro - Access - Excel. please help me out .

Hi Guys,

Here's a beginner style question. I have never done anything in Databases nor have I worked on GUIs. We are running FoxPro 2.6 for Payroll since the boonies and want to convert to Access with a GUI .. Eventually we will get an ERP

I know how to convert dbf files to access, that is not the issue. The problem is, I do not know the process of how to start building the GUI. User accounts, Data, Printing, employee info, we have a lot of databases. I know it will be a timely process .. any ideas where I can start?

Would love some help here.. if you guys know any company that does this conversion and building of GUI in access, let me know as well.


I've got a third-party DLL file that I want to access from within VFP. The DLL file is called GIQ.DLL; the function within that is called ConvertCoordinates().

I've got a DECLARE statement that seems to work : after I've run this, when I do DISPLAY STATUS, the function andd the DLL are both reported.

But when I try to run the function, I get the error message

    Cannot load 32-bit DLL ...\giq.dll

I've tried moving the DLL into the same folder as the rest of my program.

I've tried unzipping the file afresh.

Any suggestions?
I suspect the answer to this question is "Windows 10 update" like so many others I've had to deal with.

I'll describe how the problem manifests. What I'm after is a way of zeroing in on the culprit.

Took me several days to realise I had the problem. I had wrongly assumed that I was requiring VFP to perform a more arduous task than I'd anticipated.  It almost doesn't matter what the task was but I'll describe it anyway.

I was running a report involving 32k records but requiring a summed calculation based on a quantity held in the current table and a cost held in a related table.  The kind of thing we've all done a zillion times.

Some of mine can take a few minutes to run, especially if they're sucking out 2 years worth of data and performing a detailed year on year comparison, so I wasn't too perturbed when this particular report was taking longer than I expected.

But then it got ridiculous. Last night I had to leave it running while it churned through just 32k records (and only 8k in the related table) and check in from home to find it had finished about 20 minutes after I'd left. WTF?

So today I've been troubleshooting. Frequent culprit has been Zonealarm. If you don't specify certain programs as being safe, it performs a paranoid check every time you run them. But the program had been correctly tagged. Didn't fully trust that, so I uninstalled zone alarm. Rinse and repeat. Problem behaviour still there.  I should specify that it's actually Zone Alarm …
Hi Experts,

Need a help to edit .dbf file or say create .dbf file, i have Excel 2016 but i can't find any option to save file as .dbf format. actully i have one .dbf file and opened in excel change whole data and try to save but excel error...... it missing some data while open again. is there any way out to open .dbf file and edit data and save as .dbf file ?  or is there any way if i create one .csv file and convert to .dbf file.?

We are looking at the future of a VFP9 ERP app. In testing one path, a C++ programmer is finding it more of a challenge than he expected to convert the database to SQL Server 2014. So far there seems to be no way around retyping all the field names after exporting. I know nothing about SQL Server--but figure I'd better start to learn! Is this the case? No straighforward migration of a VFP9 database to SQL Server 2014? (No fancy triggers or rules)
Hello Experts some antivirus and other applications report our app as unsafe or propose delete...
what is the procedure to register it properly so no other software will see it as a threat?
We use visual studio (basic and c#) but we also still have some legacy visual fox pro apps working just fine.
In it appears it rounds my number when I don't want it to...

Amount = $110.00
Percent = 0.1791

In FoxPro when you multiply Amount * Percent you get = 19.695543
In when you multiply Amount * Percent you get = 19.701

I want the same result as I get in can I get the decimal places out farther in

Hi All,


According to my work, pdf files will be get merged in a specific path. I need to give dynamic file names to the mergedOutPut File.
1. Is there any way to pass parameters to the file name?
2.Or I can give fixed file name to the mergedOutput file through my code.After that Can I  rename it into dynamic naming conversion?

I saw RENAME command in Foxpro. But I am not sure whether I can pass parameters to it

Any help regarding this would be highly appreciated.

Thanks in Advance.
Free Tool: SSL Checker
LVL 10
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

I have found a strange performance issue with xBase++.
Essentially, client performance is very good until database files in the same database are opened locally on the server (see graph.)
Details are below.

Test Setup
•      Three client platforms and two server platforms, all under controlled conditions.
•      Clients: Win7 10/100, Win7 gb, Win Server 2008 R2 via XenApp
•      Servers: Win Server 2012 R2, Win Server 2008 R2 (VMware virtual machine)
•      xBase++: 2.00.785
•      Dbe: FOXCDX (see dbesys.prg example)
•      Client test function: representative function that creates a DBF/CDX file on the client C: drive from data assembled from multiple open data files residing on the server.

Test Procedure
1.      Reboot the server
2.      On a client map a drive to the server database share
3.      Run the app from the client c: drive, starting it in the mapped server folder – performance is good for multiple simultaneous clients
4.      Run an app locally on the server and open files in the same database folder as the client
5.      As the number of files opened locally on the server increases the client performance degrades significantly for all clients, even new instances on different machines (see graph)
6.      Close the locally opened files on the server
7.      Client performance remains degraded

•      The performance is poor for all subsequent clients once a database folder has files opened locally on the server
•      The performance …
I have a foxpro data table having files name and fname. Now i want to create a foxpro form having text box on it  and i press a alpha bates key from keyboard like A all the name starting with a will listed for making selection and when i press second key b all the name stared with ab will be listed and so on.   Is it possible please help
I had to reinstall Windows 7 and Access 2013 and now I cant find my ODBC drivers to Link with Foxpro from Access?
FoxPro  FoxPro 2.6
I have a customer Master with Code & Name Fields. While entering data through Input screen I will type customer name and the program will go on filtering the name of the customer from the Master Data File and when I press Enter Key it will select the exact record from the master with Code. If there is any program in foxpro 2.6 kindly mail me at rajesh.ranjan@modernajyoti
Delete command
Hi Experts

Could you point how to programatically force a grid to present the first row content?

After a grid line deletion it presents the last line content at the top of the grid, obligating to click in the cursor top advance arrow to get the first line in top position.

Thanks in advance.
Hi Experts

Does a VFP app correctly runs on a wifi network?

I'm not certain I read here that it's not a good choice, since errors arises. The only option is by cable.

Could you clear?

Thanks in advance.
I have a foxpro v9 memo field and i want to update that in oracle table blob field
Below sample code

--Open foxpro table
lcAlias = Sample.dbf
Use Sample.dbf

-- read memo field
lcBin = &lcAlias..blobdata

--convert to Blob
pcBin =  CAST(lcBin as Blob)

--Connect oracle
odb = sqlstringconnect("Driver={Oracle in OraClient11g_home1};Dbq=XXXXX;")
lcSQLString = "UPDATE oracletable SET m_blob = " + pcBin + " where id = 1;"
lresult=sqlexec(odb, lcSQLString, "Result")
IF lresult>0 THEN
  *-- Collect error info
  *-- Display error info on the screen
  *-- or save the error info into text file

Am getting below error message - might be becoz i didnt pass the single quotes for pcBin
[Oracle][ODBC][Ora]ORA-00972: identifier is too long

If i put quotes for pcBin, foxpro prg hang at sqlexec
lcSQLString = "UPDATE oracletable SET m_blob = '"+ pcBin +"' where id = 1;"
lresult=sqlexec(odb, lcSQLString, "Result")

Tried below code, then also it freeze
lcBin = &lcAlias..blobdata
lcSQLString = "UPDATE oracletable SET m_blob = '"+ lcBin +"' where id = 1;"
lresult=sqlexec(odb, lcSQLString, "Result")
Important Lessons on Recovering from Petya
LVL 10
Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Hi Experts

Could you point how to correctly use vfpencryption71.fll ?

The "in general"  strategy I planned is:
When an user logs the app with password and read a record it's automatically decrypted to be readed - just the record.
During the CRUD - the line remains decrypted.
After the register is encrypted and saved.

Is it a correct approach?

Reading the examples that came with the library, it's not very clear to me the encryption/ decryption operations:

1. Define a key (that could varies depending on the encryption method adopted)
2. Encrypt the value and save.

1. Give the user the decryption key when login the app.
2. Every  CRUD operation will use the key to decrypt what is needed.

Is it OK?

Could you give me an example on how to do this ?  (you could use whathever encryption/decryption method as you desires)

Sorry so basic doubts.

Thanks in advance.
Hi Experts

Could you point a way (if it's possible) on how to install an automation component (.OCX) during a NULLSOFT instalation?

For the system correctly work this operation is needed:

REGSVR32  C:\Windows\System32\comdlg32.ocx

Is it possible to make it automatic?

Thanks in advance.
Hi Experts

Could you point what's needed to run a vfpcompression.fll under Windows 8?

I downloaded a fresh new vfpcompression.fll

Tryed to register it like it is a .dll (no success)

It used to run perfectly under Win7.
A similar issue is occuring with vfpencryption71.fll too...

Any workaround ?
Thanks in advance
Hi Experts

Could you point the better way to encrypt/ decrypt a text file content "on the fly" by using VFP?

Thanks in advance.
I know very little about Foxpro (9), but I can get around in it and understand the basic principles.
All I need is to export a database to a CSV file then set that up on task scheduler (to run every night) with an .exe or .bat.
I would need as much detail as possible, but I'll understand it quickly.
No form is needed - just simple export statements, but as I understand it, they have to be run inside FoxPro.
Hi Experts

Could you point the better way to mantain long texts vinculated to a VFP line register?

Using a word file with OLE ? or a traditional FPT - is it possible to have a small text editor called inside the app?

Then the text must to be used in a report.

Thanks in advance.


Visual FoxPro (VFP), and its predecessor FoxPro, is a data-centric, object-oriented, procedural, database programming language and IDE from Microsoft last released in 2007 that still has some active use due to its low cost of deployment and fairly rapid development. In 2008, Microsoft released a set of add-ons for VFP's xBase components to allow interoperability with various Microsoft technologies. It allows data processing against its native file-based data tables or database servers such as SQL Server.

Top Experts In