Path: csiph.com!eternal-september.org!feeder.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: James Martin Newsgroups: comp.lang.clipper.visual-objects Subject: Re: Mem2String Date: Sat, 6 Oct 2018 08:10:13 -0400 Organization: A noiseless patient Spider Lines: 54 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Sat, 6 Oct 2018 12:10:14 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="c643a92acadd137a885a535fbd8f6e06"; logging-data="24829"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18WfQKF3XDUglsM0O/sEH7n" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 Cancel-Lock: sha1:jcsblzr8m/WzV8ovcPkdumYNC38= In-Reply-To: Content-Language: en-US Xref: csiph.com comp.lang.clipper.visual-objects:12037 The driver is OK. It is used by Crystal reports and it works without a hitch there. It is a special driver for use by a server/client architecture called codebase from Alberta Canada. The company no longer supports the product, which is unfortunate since it works extremely fast and we have no problems in the accounting program that uses it. I expect that I will have to do some work to make it work, I already have to modify the numeric section of GetData to handle numerics which come across in base 16 instead of base 10. James On 10/05/2018 05:52 PM, Jamal wrote: > May be the problem then in the ODBC driver. Which driver are you using? > > Would this help https://www.devart.com/odbc/xbase They have a trial. > > Jamal > > "James Martin"  wrote in message news:pp8jk7$d4g$1@dont-email.me... > I don't have a handle fo how it all works, but GetData does not seem to > be the problem. It seems the data did not all get read it. Get data > works for a few fields beyond the memo field, but theye are empty. > > I would like to see the data Windows gets from the ODBC driver. > > James > > On 10/05/2018 03:41 PM, Jamal wrote: >> May be you can override the GetData() method and skip reading the >> field when you encounter the 198 ASCII value. >> >> Jamal >> >> "James Martin"  wrote in message news:pp6078$m99$1@dont-email.me... >> >> I am reading an unusual DBF via ODBC and the standard SQLSelect:GetData >> uses Mem2String(pTemp,UILen) to pass the buffer to a string. The first >> character of a memo field is ASCII 198 and this causes the routine to >> choke - at least I think so. The data is actually a reference to a memo >> field and is 4 characters long. I don't need the memo field information, >> but I do need all the other fields. >> >> What happens is that SQLSelect:GetData reads up to the memo field and >> then none of the rest of the record is read. The next record is read up >> to the memo field again, and so on. >> >> I have tried to change the fieldspec for the field to Character(4) but >> that does not work. I am fwriting information to a file and the >> nODBCType is -1. >> >> Any ideas of what I could do? >> >> James