Questions tagged [foxpro]
FoxPro is a programming language and DBMS originally created by Fox Software, and later sold to Microsoft. It refers specifically to the procedural languages versions, up to 2.6a, released for DOS, and later MS-Windows, Macintosh, and SCO Unix, and not the 3.0 and later releases, called Visual FoxPro, which have object-oriented language features.
798
questions
0
votes
0answers
36 views
FoxPro program accessing shared files inside Windows VM keeps giving Extended Error 183
My host is Linux where i have created a shared folder for my files which are accessed by my VM which is running Windows 7. I am running a FoxPro program in the VM, which accesses the files from the ...
0
votes
0answers
24 views
Unprotect sheet in foxpro
I have an xlsm file that I need to insert data but my problem is that the xlsm in protected. I use the oWorkbook.Protect(,,.F.) to unprotect but the function is not working. I s there any way to ...
0
votes
0answers
51 views
How to append a text file line to a dbf table?
I'm trying append a text file line into a dbf table. I have to append using a tuple or dictionary or something any help?
if fnmatch.fnmatch(file,'*.txt'):
file = file.upper()
...
1
vote
2answers
88 views
Reading big xml file
I need to read big xml file in Microsoft Visual FoxPro 9 SP2 desktop application.
Created cursor result which contains desired columns and convert.xsl file to transform xml to format readably by ...
1
vote
2answers
113 views
Can I use WMI to read a printer spool file
My client has an old DOS-based application which sends formatted output to a printer. I have disabled printing so spooled files remain in the print queue. I would like to pick up these spool files and ...
1
vote
2answers
74 views
String Splitting in Foxpro Visual 9
I have a column of strings separated by comma.
Example: City, Zipcode
I want to make a column with only city populated so everything before the comma.
How has anyone else accomplished this? I know ...
0
votes
0answers
23 views
Clickable fields in wrong position in report FoxPro report preview
I tried to use Dougs Stonefield report previewer to create clickable reports.
If windows font scaling is greater than 100% , clickable areas are in different position than text in report.
Here ...
1
vote
2answers
139 views
How to insert multiple rows in Visual FoxPro?
I'm using Visual FoxPro on my Classic ASP website, and I want to achieve the SQL syntax below to FoxPro version 6.
INSERT into users (id, name)
VALUES
(1, 'john'),
(2, 'kim'),
(3, 'jake')
But this ...
0
votes
2answers
133 views
How to update multiple rows of same column in one query using FoxPro database?
I want to update the multiple balance according to their invoice number in just one query. But the code below seems like the FoxPro not accepting it.
PS: I'm only using Visual FoxPro 6 as a database ...
0
votes
1answer
54 views
What does the dot (period) mean before an object name?
I am converting a Foxpro 7 app and there is a statement I see in about 200 places in the code which says:
LOCAL LcAlias as string
LcAlias = .LcAlias && This is the line in question
SELECT(...
0
votes
0answers
100 views
'MySQL server has gone away' error from VFP connectivity
I have a hosting in hostinger.in, When I try to connect with MySQL database from Visual Foxpro 9 SP-2 it is successful, and shows all the data from table but just after 20 seconds it disconnects ...
0
votes
0answers
35 views
copy all text from a browser window with foxpro
Years ago, With FoxPro on IE, I was able to to search all browser windows and find the text I wanted. I now need to do that with FoxPro 9 and modern browsers. Just on the active window is fine. If I ...
0
votes
2answers
100 views
Select query for viewing data in specific data rang in FoxPro database
In foxpro database, how to write select query for viewing data in specific time range. Can anyone show an example.
0
votes
1answer
159 views
Convert Data from SQL Server to DBF file (Date Error)
I want to export data from sql server to dbf file. Below query is working without date. But when I add date it's not working. Please solve my issue, thanks in advance. [Error is : Error in INSERT INTO]...
0
votes
1answer
67 views
Disable fox pro table trigger from c# (.NET)
I need to add a row to a fox pro table and before inserting the row I need to disable the trigger applied on the fox pro table and enable it back after inserting the row.
Is there any way to disable ...
0
votes
1answer
89 views
Feature is not available exception thrown on inserting records to Visual Fox Pro db from c#(.NET)
The below code for insert to Fox pro db from c# works if I disable the insert trigger on fox pro table.
try
{
string query = @"insert into TERMS (VENDOR,TERMINAL,TERM) values(?,?,?)";
...
0
votes
2answers
634 views
How do you convert a Foxpro (prg file) code to Python
I currently have a quite big program written in FoxPro (prg file). Now FoxPro is actually really getting outdated, so what I want to ask is the following:
Is it possible to convert all the FoxPro ...
0
votes
1answer
681 views
Will VFP 9.0 and FPD 2.6 run on Windows Server 2019 or 2012?
We're in the process of converting our two FoxPro systems to new technology, but meanwhile we need to upgrade our server and I am trying to find out whether our legacy systems will run there. We'd ...
1
vote
2answers
373 views
Multiply and subtract values in previous row for new row in FoxPro
I'm trying to write command in fox pro that helps me calculate two variables in a table that looks like this
age death_rate alive dead
1 0.003 1000 3
2 0.001 997 ...
0
votes
1answer
103 views
FoxPro Command to VB.NET
I 'm running a FoxPro Command in Visual Studio 2017.
I want To execute the second command text pre-requisite To the first, And so on. Any help?
Dim a = "Provider=VFPOLEDB.1;Data Source=C:\temp;...
0
votes
1answer
49 views
Update a column name that starts with a number in a dbf-file with oledb
I'm trying to update a column named value in a dbf-file. Since value is a reserved word I need to add the tablename to the query. So this works:
UPDATE "C:\TEMP\TEST_PARAM.DBF" SET TEST_PARAM.value='...
0
votes
1answer
66 views
In FoxPro, data session window lost
Normally, I can use the command "SET" to view the Data Session window. The window doesn't show up anymore, even if I use the menus under Windows -> Data Session. I think I lost the window off the ...
0
votes
2answers
84 views
How to Improve - Multiple inserts with different Ids using multiple OledbConnections
currently the system is creating multiples OledbConnections and the process is taking a long time to finish, it sums up to this:
C# code:
Select all person from table A.
FOR EACH person: Do a SELECT ...
0
votes
1answer
117 views
How to check values in memo field of a table in visualfoxpro?
How we have to check values in memo field of a table, I have tried the code mentioned below kindly go through the code and suggest me the appropriate code to use, thanks in advance!
Local nCount
...
1
vote
1answer
376 views
How to successfully connect to Foxpro database files using SQL Server 2014?
I am trying to connect Foxpro (.dbf) files to a SQL Server 2014 database. I tried to use linked server option however unable to find the oledb provider enabled for Foxpro.
0
votes
2answers
2k views
How to convert json to FoxPro cursor
File contains invoice list in json format like:
{
"status": "OK", "statusCode": 200, "messages": null,
"data": [{
"payment_type": "banktransfer", "fine": "0.200000", "quote_id": null, ...
0
votes
1answer
1k views
Visual FoxPro: Delete row in grid
I have a grid that have 3 columns, column 1 and 2 are textbox, button in the 3rd (for delete).
What I wanted to achieve is when the grid have records, and I click the button in the 3rd column, the ...
0
votes
1answer
90 views
Ado.Net DBase driver truncates cells with tab character
I am trying to access to an old DBase file with Ado.Net C#. I successfully opened file but some string records in table has TAB character like "Some text/TABOther text". Ado.Net driver successfully ...
1
vote
1answer
700 views
How to Read a DBase File in Java or Oracle PL/SQL
I've been provided a Dbase file (.dbf) and have been asked to implement a parser to load the data into an Oracle DB. The only available tools I have on hand are Java 8 and Oracle PL/SQL. Having never ...
0
votes
0answers
67 views
How to call Cancel method of ActiveX control from FoxPro
Visual Studio Object Explorer shows that upt.ocx has Cancel method:
Visal Foxpo class is created based on this control.
Visual FoxPro properties window do not show Cancel method:
Callin upt.Cancel() ...
1
vote
2answers
89 views
How can I using SQL Select in FoxPro add a non existing column with NULL?
Can I using SQL Select in FoxPro add a non existing column with NULL?
I have tried this select and it didn't work :-(
SELECT ID, .NULL. AS SomeColName FROM SomeDBF
Any ideas?
0
votes
0answers
92 views
When a select cursor is created by foxpro, it shows the '1900-01-01' dates as null
I´m using vfp6 and iseries communicator. I have a table with a date field. This table have several records with the '1900-01-01' value but, when I make a select to that table from foxpro, those cells ...
0
votes
0answers
91 views
How to convert a code with select commands made in DOS foxpro into Visual Foxpro?
code converted from foxpro to visual foxpro does not use SELECT command properly. it use esc rather than return key
SELECT DISTINCT FNAME FROM FIRMS INTO ARRAY ARR
@ 1, 38 GET FN1 DEFAULT AWARDTY(1)...
0
votes
1answer
204 views
FOX pro undo - redo
Is there an undo/redo function on Visual Fox pro?
I have been using the previous version whenever I screw up, but I wondering if there was a way to do it from the command window
or is there a ...
1
vote
2answers
70 views
Browsing the year in a string
So I have a field containing dates; however not all years are the same. How do I browse for a specific year. I have tried the following, but it doesn't really work.
BROWSE FIELDS Lastcall FOR ...
0
votes
2answers
181 views
FoxPro Deleting after specific
I am trying to replace text after "/" on foxpro. Shelly Jones/Foundation Director, How to delete everything after the "/"?
1
vote
2answers
180 views
Foxpro VS SQL Logic
I couldn't think of a better title. If you have any suggestions, feel free to edit the title of my post.
I have a foxpro query that looks like this:
Sele
a.plan_enddt as enddt, a.plrevno, a.keyfld, ...
0
votes
2answers
305 views
How to convert syntax from Foxpro to SQL Server
LOCAL in_txt
in_txt='mohammad'
txt_len=LEN(in_txt)
rev_txt=''
FOR ii=1 TO txt_len
w_chr=SUBSTR(in_txt,ii,1)
w_asc=IIF(ASC(w_chr)=32,32,ASC(w_chr)+1)
* ?' #'+w_chr+'='+CHR(w_asc)+'*'+STR(ASC(...
0
votes
1answer
511 views
FoxPro SELECT statement slow network performance
SELECT statement of a database is very slow. Database table has 95.000 records.
I have a index listing, and the Index TAG is included. Tested the connection remote using VPN so I can see slow speeds.
...
0
votes
1answer
118 views
problem to open connection to dbase database only in specific project
I'm trying to connect to a dBase (.dbf) database by VB.Net, I installed vfpoledb provider and use connection string like bellow :
Dim cn As New OleDb.OleDbConnection With {.ConnectionString = "...
0
votes
0answers
246 views
Best way of python dbf querying datetime?
I have tried to make a datetime query on a table inside a *.dbf file using python 2.7 and dbf module, but have been unsuccessfull.
This is my code:
import dbf
from datetime import datetime
file = ...
0
votes
2answers
91 views
Foxpro Meaning Confusion
I couldn't think of a good title for this, so feel free to edit this for me.
I am very very new to Foxpro. We decided to use it because we are trying to upgrade database platforms and wanted ...
0
votes
2answers
780 views
Foxpro Between Clause
I am currently looking at foxpro queries, aka if SQL where drunk and I need help understanding how something works as I am completely new to foxpro.
SELECT keyfld, SUBSTR(CCB_SERIAL,11,2) AS a ;
FROM ...
0
votes
1answer
412 views
Visual foxpro table name with variable
I have to modify an old software wrote in visual foxpro (latest version)
My goal is to create some temporary tables with a non-fixed name (it depends on some variable).
How can I write something ...
1
vote
1answer
96 views
Using date parameters in a FoxPro query through Microsoft Query/Excel
I've got a external data source setup in Microsoft Excel which queries an external FoxPro database via Microsoft Query.
One of the lines in the query is WHERE (ihead.ih_date>={d '2018-10-01'}) but ...
1
vote
0answers
426 views
Group by missing or invalid. FoxPro 9
I am using OLEDB accessing FoxPro DBF files and keep getting a SQL: GROUP BY clause is missing or invalid. error when adding another field to the SELECT command.
This works fine...
SELECT SUM(...
-1
votes
1answer
149 views
Problem dealing with deleted records in a foxpro dbf file
I get always the following message :
is_deleted() is not defined
This is my python program.
What am i doing wrong?
import dbf
tableDirsync = dbf.Table("o:/python/dirsync.dbf")
tableDirsync.open()...
0
votes
1answer
64 views
Microsoft Visual FoxPro Driver not fitering
Hello i have a strange issue.
I am trying to filter a .dbf file and it seems i just can't.
Whenever i try to apply some kind of Criteria it bombs out..
For example :
oCmd.CommandText = "select VAL(...
0
votes
3answers
2k views
Getting the value of checked checkbox in vfp
The title says it all, i want to get the value of a checked checkbox whether it is numeric or character so i can save it to a table.
0
votes
1answer
238 views
How to migrate a DB from Fox Pro to MySQL?
i have to move mi DB from Fox Pro to Mysql. So i want to know how to migrate the data to a new one and if the data can be refresh automatically. I have a software ERP that uses Fox Pro but wanna move ...