visual-foxpro

How do I extract the data in a FoxPro memo field using .NET?

核能气质少年 提交于 2020-01-13 05:29:31
问题 I'm writing a C# program to convert a FoxPro database to XML, and everything works except the memo field is blank. Is there something I'm missing to convert that bit? I'm using C# .Net 3.5 SP1, Visual FoxPro 9 SP 1 OLE DB Driver. Connection string is okay, as all other data is being pulled properly. When I converted the FoxPro database to SQL Server, the memo field is also blank there, so I can't convert twice. 回答1: Ended up having to do some work myself, but maybe it can help someone else

which method is equivalent Rand (int) in Visual Fox Pro to C #

谁说胖子不能爱 提交于 2020-01-07 09:55:08
问题 occupy a method made ​​in migrating Visual Fox Pro emigrarlo to C #, the problem I have is how to know if the method in Visual Fox Pro: Rand(intValue) method is equal to dotNet: Random r = new Random (intValue); r.Next return (); assuming that intValue = 971 the result generated in dotNET is 2027119, but I need to be equal to that return FoxPro. Primary question : how I can make sure I get the same result? Secondary question : Do you know of any online tool fox pro to prove that this method

How to query a Foxpro .DBF file with .NDX index file using the OLEDB driver in C#

大憨熊 提交于 2020-01-06 14:58:35
问题 I have a Foxpro .DBF file. I am using OLEDB driver to read the .DBF file. I can query the DBF and utilize its .CDX index file(cause it is automatically opened). My problem is that I want to query it with the .NDX index file (which is not automatically opened when the .DBF is opened). How can I open the .NDX file in C# using OLEDB driver cause the DBF is really big to search for a record without the index? Thanks all! Here is the code I am using to read the DBF. OleDbConnection oleDbConnection

How to query a Foxpro .DBF file with .NDX index file using the OLEDB driver in C#

风流意气都作罢 提交于 2020-01-06 14:58:19
问题 I have a Foxpro .DBF file. I am using OLEDB driver to read the .DBF file. I can query the DBF and utilize its .CDX index file(cause it is automatically opened). My problem is that I want to query it with the .NDX index file (which is not automatically opened when the .DBF is opened). How can I open the .NDX file in C# using OLEDB driver cause the DBF is really big to search for a record without the index? Thanks all! Here is the code I am using to read the DBF. OleDbConnection oleDbConnection

Run UPDATE and DELETE statements on VFP DBF files on SQL Server

送分小仙女□ 提交于 2020-01-06 03:55:47
问题 We're migrating our legacy system based Visual FoxPro to Java, and we need to configure the SQL Server to CRUD the DBF files of the system, because we'll rewrite the system in parts. So the employees will use both interfaces in the same time and we need real-time updates in both systems. Right now, I'm able to INSERT and SELECT data on SQL Server but I can't UPDATE and DELETE. I've run the following command to create the linked server: sp_addlinkedserver @server = 'DEN', @srvproduct = 'foxpro

How do I read asterisk (***) fields from .DBF data base?

Deadly 提交于 2020-01-05 08:25:30
问题 I'm trying to read a .DBF data base using VB.NET... the code is working until I reach a column on one of the tables that is supposed to be Decimal but it is instead filled with asterisks. The connection string and reader I'm using go like this: Using SDBconnection As New OleDbConnection("User ID=;" & _ "DSN=;" & _ "Cache Authentication=False;" & _ "Data Source=""" & TextBox_DBLoc.Text & """;" & _ "Provider=""VFPOLEDB"";" & _ "Collating Sequence=MACHINE;" & _ "Mask Password=False;" & _

TFS MSSCCI Provider with Visual Fox Pro 9 SP2 - cannot update project from project metafile

点点圈 提交于 2020-01-03 08:07:47
问题 I have existing project in Visual Fox Pro 9 SP2. I added this project to source control over VFP IDE with MSSCCI provider integrated, then I added files to source control. Everything was ok, but then I update project list and error "cannot update project from project metafile" occurs. Same error is shown when I try join source controlled project to other workspace. There is problem with PJM file (error description on msdn), but I don't know how solve it. I did not change file manually, there

Dynamically change database type, source etc in Crystal Reports (for Visual Studio 2012)

删除回忆录丶 提交于 2020-01-01 19:57:06
问题 I've researched many different ways of how to dynamically change the datasource connection here on StackOverflow. I used and verified almost every c# and vb.net example I could find, but somehow things won't work out as they should. The idea of our project is to change the datasource connections from the old reports - that are using an xBase dll - to crdb_ado.dll with the VFPOLEDB-provider to connect to Visual Foxpro DBF files (each file representing one table). I've downloaded the latest

File access is denied

自古美人都是妖i 提交于 2019-12-31 03:03:05
问题 I'm using SQL command within FoxPro 6.0 command window, and encountered the "File access is denied." My SQL command is: SELECT * FROM main.dbf WHERE Client = "ABC" Situation: Windows 7 Pro FoxPro 6.0 main.dbf is shared to many users. main.dbf is not hidden and is not write only Any comments will be greatly appreciated! 回答1: Is this DBF file on a shared drive? If so, another user may have the file open Exclusive, or you are trying to open the file Exclusive. By default, Foxpro tries to open

File access is denied

自古美人都是妖i 提交于 2019-12-31 03:03:00
问题 I'm using SQL command within FoxPro 6.0 command window, and encountered the "File access is denied." My SQL command is: SELECT * FROM main.dbf WHERE Client = "ABC" Situation: Windows 7 Pro FoxPro 6.0 main.dbf is shared to many users. main.dbf is not hidden and is not write only Any comments will be greatly appreciated! 回答1: Is this DBF file on a shared drive? If so, another user may have the file open Exclusive, or you are trying to open the file Exclusive. By default, Foxpro tries to open