RegenIndexes doesn't works with Primary Keys

Hi Folks !

I've implemented DbiRegenIndexes function in my maintenance routines.
(Delphi 2.01,BDE 3.0).
It works well with secondary indexes,while this isn't true with primary indexes.
I found that RegenIndexes hasn't any effect in a table having primary index out of date.
In this case,the only solution is delete the corresponding *.PX file and then re-create it...!
Is there anybody that can suggest me a better solution ??

Enrico Gherardo