Hello: good afternoon. I attached an incomplete example of an indexing routine that works fine in Clipper and gives a runtime error in Xbase++. There you'll see an workaround. Beling Best regards