Hi Antonio
I changed to this
oDb:CreateIndex(alltrim(oIndex:datafile),alltrim(oIndex:tagname),alltrim(oIndex:key),{||if(!empty(oIndex:cond),alltrim(oIndex:cond),oIndex:cond)})
the indexes are created but when I use an index which has a condition it does not work.
Regards
Colin