foxpro

How can i interpret “FoxPro” dbf file date time field (eight-byte) in my c++ program?

时光毁灭记忆、已成空白 提交于 2020-01-15 11:12:35
问题 I am writing a c++ program to read DBF file of foxpro database .I stumbled upon this date time field of eight bytes.How can i interpret it ? Any help would be highly appreciated ? 回答1: The value is a double The integer part is the day since 1899/12/30 internal const double JulianDay_1899_12_30 = 2415019.0; double d = theValue; in c# return DateTime.FromOADate(d - JulianDay_1899_12_30); see http://msdn.microsoft.com/en-us/library/system.datetime.fromoadate.aspx 来源: https://stackoverflow.com

How can i interpret “FoxPro” dbf file date time field (eight-byte) in my c++ program?

▼魔方 西西 提交于 2020-01-15 11:12:02
问题 I am writing a c++ program to read DBF file of foxpro database .I stumbled upon this date time field of eight bytes.How can i interpret it ? Any help would be highly appreciated ? 回答1: The value is a double The integer part is the day since 1899/12/30 internal const double JulianDay_1899_12_30 = 2415019.0; double d = theValue; in c# return DateTime.FromOADate(d - JulianDay_1899_12_30); see http://msdn.microsoft.com/en-us/library/system.datetime.fromoadate.aspx 来源: https://stackoverflow.com

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

How to read FoxPro Memo with PHP?

若如初见. 提交于 2020-01-01 07:12:34
问题 I have to convert .DBF and .FPT files from Visual FoxPro to MySQL. Right now my script works for .DBF files, it opens and reads them with dbase_open() and dbase_get_record_with_names() and then executes the MySQL INSERT commands. However, some fields of these .DBF files are of type MEMO and therefore stored in a separate files ending in .FPT. How do I read this file? I have found the specifications of this filetype in MSDN, but I don't know how I can read this file byte-wise with PHP (also, I

how to get IIS to work with dbf files?

安稳与你 提交于 2019-12-31 03:55:23
问题 problem is the following: raised the IIS server on Windows XP, but when accessing the dbf files crashes exception. driver to work with files vfpoledb set. out of the visual studio everything works fine. could something else be done? 回答1: I don't know if its case sensitive or not, but the connection string should be something like String connString = "Provider=VFPOLEDB.1; Data Source= C:\Your\Path\OnIISMachine\YourDatabase.dbc;" If that's ok, then do you have the proper OleDB driver from

How to convert Visual Foxpro database into SQL Server database

巧了我就是萌 提交于 2019-12-30 04:35:40
问题 One of my clients has a Foxpro database ( .DBF file). I need to convert it into a SQL Server 2008 database. Does anyone have any idea how to do this? Kindly give me solution. Thanks in advance.... 回答1: Try the following steps: 1.Create ODBC Data Source to DBF file 2.Using SQL Server Import Data Wizard (right click to database in the SSMS) 3.Choose Data provider for ODBC as data source 4.Map and import your data 回答2: You can use the "Upsizing Wizard" from the Visual FoxPro program, it's

migrate method Rand(int) Visual Fox Pro to C#.net

百般思念 提交于 2019-12-27 05:35:23
问题 I'm migrating a Visual Fox Pro code to C #. NET What makes the Visual Fox Pro : generates a string of 5 digits ("48963") based on a text string (captured in a textbox), if you always enter the same text string will get that string always 5 digits (no reverse), my code in C #. NET should generate the same string. I want to migrate the following code (Visual Fox Pro 6 to C#) gnLower = 1000 gnUpper = 100000 vcad = 1 For y=gnLower to gnUpper step 52 genClave = **Rand(vcad)** * y vRound = allt(str