On Thu, 23 Apr 2009, Adam Lubszczyk wrote:

Hi,

> > Because Harbour checks if all index expressions (KEY/FOR) are valid when
> > index is open. It helps to detect problem immediately. IMHO it's much
> > better then later pseudo random RTE like in Clipper.
> Can I switch this feature (checks when _OPEN_ index ) to OFF ?

You can change it in the RDD source and remove the RTE call but for CDX
is very bad idea. In CDX format key expression type is not stored inside
index header file and can be determinated only by key evaluation.
Without expression type RDD will not know how to convert keys for some
operations like seek so they can give incorrect results.

> I must often read existing bases and indexes. I am aware of limitations.
> Sample, I want open base from VFP and index with many TAGs, but
> I use only one TAG correct read by Harbour and I use only seek and skip.

seek will not work for indexes like the one you sent few days ago
because user value will have to be hashed by windows API function
before used inside index. Try the example I sent with ordKeyVal()
using current SVN Harbour code. It shows that keys in index are not
stored directly but modified by not revertible function. See in MSDN
what LCMapString() with LCMAP_SORTKEY does in Windows.

best regards,
Przemek
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to