foxpro

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

writing from datatable to foxpro via oledb fails after X records

为君一笑 提交于 2019-12-25 06:22:29
问题 Unhandled Exception: System.Data.OleDb.OleDbException: SQL: Column 'Q578P5' is not found... I've written an app in VS2010 C#.net that reads data from an SQL table into datatable and then writes that into foxpro tables. On the Inventory table if fails as above at record 578. On the Customer table it fails at record 'Q617P78' I have tested for data issues by removing some records from the SQL table but the error still occurs at the same record number in spite of that record number not being the

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

StelsDBF java.lang.OutOfMemoryError: Java heap space

不羁岁月 提交于 2019-12-25 05:24:08
问题 I am using a evaluation version of StelsDBF JDBC Driver 5.2 I have a dbf file with 8302 rows and 43 cols 5mb and StelsDBF seems not working. StelsDBF works fine with other smaller files. My query select codi,descrip from \"DATA.DBF\" limit 10 When I try to get the results I get the following Exception in thread "'DATA.DBF' producer" java.lang.OutOfMemoryError: Java heap space at jstels.database.b.d.if(Unknown Source) at jstels.database.b.e.do(Unknown Source) at jstels.jdbc.dbf.a.b.a(Unknown

Any tools for Understanding Existing Foxpro Database Model?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-25 03:56:30
问题 I have some dbf files of foxpro database. However, I have no idea about what are relationship between tables regarding foreign key, what tables are inter related and so on. Is there any tool which can help me to learn relationships easily. I mean which can draw relationship instead of me figuring out by hit and try.? I want to export this database to Microsoft SQL Server. So I want to learn whole database schema to learn tables logic. Thanks 回答1: Is this just a set of VFP free tables or is

“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.

FoxPro Database and asp.net

情到浓时终转凉″ 提交于 2019-12-24 10:45:52
问题 I have a website that uses asp.net 3.5 and Sql server 2008 as backend data store . now we want to add a new page to our website . but the data that we want to share in this page is already being created and saved by a FoxPro software in one of our local systems. I've no experience in FoxPro . is there any way to use this data in our site ? specially without being have to create a new database in server and importing or writing all records all over again ? what is the best way in such a

Find a Specific Character in a Field and Replace it with a Phrase

﹥>﹥吖頭↗ 提交于 2019-12-23 05:12:07
问题 I've been searching around the internet for an answer to this question for a few hours and I'm not able to find anything. My experience with FoxPro is quite limited. This will probably be 2 questions in one. First question: I have a list of items and some of these items may contain a comma which is not allowed in the program I'm transferring the data to. I basically need sort of a statement like this: REPLACE ALL Field1 with STRTRAN(field1, "," , "<break time='250ms' />" Is something like

How to Read a DBase File in Java or Oracle PL/SQL

倖福魔咒の 提交于 2019-12-23 03:17:15
问题 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 written a parser or dealt with this data format before, I'm completely lost as to how to go about the whole thing. Any help or guidance would be most appreciated. Thank you, 回答1: After tearing my hair out for some time, I think I've finally found an answer. Seemed a little crass to answer my