visual-foxpro

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

Function to know that a variable is string or number on foxpro

旧城冷巷雨未停 提交于 2019-12-25 08:52:43
问题 I am having a difficult time telling that a variable is string or number on foxpro 6 or other version. I am new in this languages. 回答1: You can use the VARTYPE or TYPE functions - these are slightly different and you should review the documentation before deciding which to use. 回答2: Have a look at the Vartype() function - it will return 'N' for numeric, 'C' for character and so on. 来源: https://stackoverflow.com/questions/7563907/function-to-know-that-a-variable-is-string-or-number-on-foxpro

How do I use the VFPOLEDB Provider to make use of the .NDX/.CDX indexing when I read a huge FoxPro .DBF?

跟風遠走 提交于 2019-12-25 06:13:07
问题 I am writing a .NET application in C# that reads a FoxPro .DBF using the Visual FoxPro OLE DB provider (VFPOLEDB.1). The problem is the .DBF is 900MB, so a simple read takes way too long, compared to the instantaneous reading from FoxPro (we use the DOS FoxPro). The difference between the provider and and a native FoxPro search is that I assume FoxPro makes use of the indexing files (we use .CDX and .NDX) and the provider does a kind of linear search with the given SQL statement. public

Visual Fox Pro, ODBC - I can't see .DBF tables in Visual Studio 2010

喜欢而已 提交于 2019-12-25 04:22:29
问题 I'm making integration with application that is using ODBC Data Source - Visual Fox Pro Driver. In its dirrectory structure I've got two dirrectories (DANE and TRANS) which contains .DBF files. When I am using Visual Studio 2010 Server Explorer -> Data Connections to connect to DATA .DBF files, everything work fine. The problem occurs when I'm trying to use TRANS dirrectory - I don't see any tables (When I am using DBF Viewer - there are around 30-40 tables). When I try to connect to them

No table is open in the current work area

让人想犯罪 __ 提交于 2019-12-25 01:35:05
问题 While trying to create CDX file on existing DBF file using below code, I'm getting an exception saying " No table is open in the current work area" . Language - C# Exception Details - Message - No table is open in the current work area. Source - Microsoft OLE DB Provider for Visual FoxPro Below is code snippet: public void CreateIndex() { var cdxExpressions = new List<CDXExpression> { new CDXExpression { expression = "ENTRY_DATE", name = "cdx_p1"}, new CDXExpression { expression = "ENTRY_CODE

“DLL caused an exception” when calling a method that references another DLL

我与影子孤独终老i 提交于 2019-12-24 14:07:50
问题 I developed a DLL, let's call it DomainLogic.dll , with some public methods through [DllExport] annotation. Some of those methods make calls to another DLL, let's call it Utils.dll . I developed a demo WinForm application with some buttons that call methods of DomainLogic.dll and everything works as expected. Currently we have a partner which wants to call our DomainLogic.dll from their existing Visual FoxPro application. They were able to successfully call dll methods that receive and return

How to pass a named parameter to an Visual FoxPro OLE DB Command?

泄露秘密 提交于 2019-12-24 13:41:29
问题 I recently accessed some DBF in VS.NET, using Visual FoxPro OLE DB Provider. Everything worked fine until I found that I could not figure out how to pass a parameter to the query. I used this as query Select `group`, `i_name`, `j_name`, ... From `mytable` Where `valid` AND `group` IN (@`group1`, @`group2`); And added two parameters named group1 and group2 , with string values, to the parameter collection (ie. IDbCommand.Parameters ). Then I received an OleDbException, telling me Syntax error.

Visual FoxPro - Table Grid

我们两清 提交于 2019-12-24 07:59:10
问题 How can I achieve this kind of grid? What controls/tools I should use? Any idea? This screen cast is from the Baplie Viewer application. I guess it was done by the captain using visual foxpro while he was sailing. [Edit] It is ready-only and column widths will be fixed. It is a kind of reporting generated in a tabular format similar to Grid, but I think we cannot use the native Grid control. And it may be needed to generate dynamically. I mean we would not be able to use shape tools, line

Text copied from JTextArea have broken encoding after paste in FoxPro application

与世无争的帅哥 提交于 2019-12-24 04:12:45
问题 I have encountered one very strange problem with Java clipboard. I have JTextArea with text containing accents (e.g. "Žluťoučký kůň"). When I select the text and press CTRL+C and paste it into Notepad or Microsoft Word everything is OK. But when I paste it into some third party application made in VisualFoxPro (I know it is ancient, but our user needs this application) all accents letters are broken due to encoding problem. Java app uses UTF-8 and FoxPro application uses Windows-1250. When I