visual-foxpro

Can I extract a file from a foxpro general field?

随声附和 提交于 2019-12-07 13:22:51
问题 I'm porting a VFP 9 application to SQL Server. The VFP app has some tables with "general" fields in them. I get a byte array when query the field, and when I save it to disk, I can look inside and see it's a word document, or a Paint BMP, etc. From reading around, I've found that the general field is a proprietary format and contains a thumbnail image of the preview of the document (amongst other things, I'm sure). Can somebody point me to some code that would extract firstly the type of file

SQL Join Tables

我怕爱的太早我们不能终老 提交于 2019-12-07 03:11:42
问题 Table one contains ID|Name 1 Mary 2 John Table two contains ID|Color 1 Red 2 Blue 2 Green 2 Black I want to end up with is ID|Name|Red|Blue|Green|Black 1 Mary Y Y 2 John Y Y Y Thanks for any help. Thanks for the responses. I'm going to re-post this with some additional info about exactly what I'm trying to do that may complicate this. Can someone close this? 回答1: If you use T-SQL you can use PIVOT (http://msdn.microsoft.com/en-us/library/ms177410.aspx) Here is query I used: declare @tbl_names

Reading Visual Foxpro Data From Java using ODBC

给你一囗甜甜゛ 提交于 2019-12-06 11:29:42
问题 I am trying to query a dbf table from my Java application. I put in reference this thread I created a system data source using the ODBC Data Source Administrator, I set the data source name to be VFPDS and set the database type to .DBC finaly i set the path to the .dbc file. the following is my java code: import javax.swing.* ; import java.awt.* ; import java.awt.event.* ; import java.sql.Connection; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.SQLWarning; import

Working with the Visual Fox Pro OleDb

烂漫一生 提交于 2019-12-06 07:15:22
问题 I am trying to pull data from DBF files into my program using C#. I am using the Visual FoxPro OLE DB Provider. It works fine on my local machine but I want to package up my program into dll that clients can use. The problem is when they run the program from their machine it says that the Visual FoxPro OLE DB Provider isn't registered on their machine. Is there any way to use this without having the client install the Visual FoxPro OLE DB Provider on their machine? 回答1: The short answer is no

Can I extract a file from a foxpro general field?

旧巷老猫 提交于 2019-12-06 02:30:20
I'm porting a VFP 9 application to SQL Server. The VFP app has some tables with "general" fields in them. I get a byte array when query the field, and when I save it to disk, I can look inside and see it's a word document, or a Paint BMP, etc. From reading around, I've found that the general field is a proprietary format and contains a thumbnail image of the preview of the document (amongst other things, I'm sure). Can somebody point me to some code that would extract firstly the type of file, and then the actual file data that I can save as the original file. (Getting the preview image out

Visual FoxPro driver for 64 bit Windows 7

余生颓废 提交于 2019-12-05 17:29:54
问题 I've installed Visual FoxPro driver from this link on my 64 Bit Windows 7 Home Premium OS and tried to register vfpoledb.dll using REGSVR32. I could able to register this dll but when run my application which accesses VFP database is throwing the following error: System.InvalidOperationException: The 'VFPOLEDB.1' provider is not registered on the local machine. The same application is working fine in 32 bit Windows 7 Home Premium OS without any issues. I have googled for 64 bit VFP driver and

SQL Join Tables

那年仲夏 提交于 2019-12-05 06:06:06
Table one contains ID|Name 1 Mary 2 John Table two contains ID|Color 1 Red 2 Blue 2 Green 2 Black I want to end up with is ID|Name|Red|Blue|Green|Black 1 Mary Y Y 2 John Y Y Y Thanks for any help. Thanks for the responses. I'm going to re-post this with some additional info about exactly what I'm trying to do that may complicate this. Can someone close this? If you use T-SQL you can use PIVOT ( http://msdn.microsoft.com/en-us/library/ms177410.aspx ) Here is query I used: declare @tbl_names table(id int, name varchar(100)) declare @tbl_colors table(id int, color varchar(100)) insert into @tbl

VFP networking issues with Windows 10 1803

久未见 提交于 2019-12-04 21:07:28
We are experiencing some huge issues with multi-user network file sharing on version 1803 of Windows and VFP9 SP2. Here are a few of the issues we see: Blank records written to the database. A system will write a complete record with values in all fields, but the record is blank in the table. Records that are written but don't appear for other users until the table is closed. If session A opens a table and adds 5 records, session B will see that the extra 5 records are there, but they will either be blank or will appear to have data from a previous record in them. Once session A closes the

Reading Visual Foxpro Data From Java using ODBC

旧街凉风 提交于 2019-12-04 17:16:48
I am trying to query a dbf table from my Java application. I put in reference this thread I created a system data source using the ODBC Data Source Administrator, I set the data source name to be VFPDS and set the database type to .DBC finaly i set the path to the .dbc file. the following is my java code: import javax.swing.* ; import java.awt.* ; import java.awt.event.* ; import java.sql.Connection; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.SQLWarning; import java.sql.Statement; // Import custom library containing myRadioListener import java.sql.DriverManager;

How to decrypt a string encrypted by V FoxPro

不想你离开。 提交于 2019-12-04 06:20:08
问题 I have a program built in Visual Fox Pro which read and write information in a database, but the information is encrypted. I have the source code so, I have the key (same key to encrypt and dencrypt) use to encrypt/decrypt. But I cannot get the algorithm used to encrypt/dencrypt. I need this in order to create a new program with C# which can read the information and save it in another DB. Below you have some examples of the information encrypted: ùœ¢Qa³•ù¼?- pJ´’ˆò»Æ8-skYIÞµ§¬†Œ‚„Šç ëŸ