Re: [Harbour] Clipper incompatibilities

2009-01-30 Thread Przemyslaw Czerpak
On Fri, 30 Jan 2009, Mindaugas Kavaliauskas wrote: Hi, > I'm sure I do not reopen tags with empty key expression. We can add key > expression check for expression loaded from index file. I've not tested, > but I guess this check already exists. See dbfcdx1.c line 3581: > pTag->RootBlock =

Re: [Harbour] Clipper incompatibilities

2009-01-30 Thread Mindaugas Kavaliauskas
Hi, Please note that this can be used only for temporary indexes. When index is reopened then it needs valid key and for expressions. It means that we create corrupted indexes in such way. I'm sure I do not reopen tags with empty key expression. We can add key expression check for expression

Re: [Harbour] Clipper incompatibilities

2009-01-29 Thread Przemyslaw Czerpak
On Thu, 29 Jan 2009, Mindaugas Kavaliauskas wrote: Hi, > Yes, I think we had no problem with some Harbour version in the past. Now > the problem is: what should we put into key expression, if indexing should > be done using codeblock? Using NIL parameter for key expression generates > run time

Re: [Harbour] Clipper incompatibilities

2009-01-28 Thread Mindaugas Kavaliauskas
Hi, 1) negative julian dates SET(4, "-mm-dd") dDate := CTOD("") - 1 ? dDate // Clipper: "1449-02-15", Harbour: "- - " ... So at beginning we should not expect that the date converted to string should will be non empty if date is not empty. It isn't even with Clipper. ? ct

Re: [Harbour] Clipper incompatibilities

2009-01-28 Thread Mindaugas Kavaliauskas
Hi, Index is not created due to invalid index key expression: "" Current DBFCDX detects it and do not create index but RT error is not generated. Clipper does not validate key expression. I do not remember why exactly we added stringed key expression validation but it was done in last few months

Re: [Harbour] Clipper incompatibilities

2009-01-28 Thread Przemyslaw Czerpak
On Thu, 29 Jan 2009, Mindaugas Kavaliauskas wrote: Hi, > my friends showed a few more Clipper incompatibilites. > 1) negative julian dates > SET(4, "-mm-dd") > dDate := CTOD("") - 1 > ? dDate // Clipper: "1449-02-15", Harbour: "- - " > I would suggest to fix a code for samples

[Harbour] Clipper incompatibilities

2009-01-28 Thread Mindaugas Kavaliauskas
Hi, my friends showed a few more Clipper incompatibilites. 1) negative julian dates SET(4, "-mm-dd") dDate := CTOD("") - 1 ? dDate // Clipper: "1449-02-15", Harbour: "- - " I would suggest to fix a code for samples like this, but sometimes this Harbour behaviour can lead to