Foreign and primary key do not match
Hi all, here it is:
I try to dbiDoRestructure in order to add a new field. Nothing new, it
worked before quite nicely, using as template the example from help file or
one of the examples floating around.
The problem is that now, when using the same function that used to work OK,
it says "Foreign and primary key do not match" when calling the actual
dbiDoRestructure.
The table is Paradox, has already several indexes and is both referenced and
referred, tied with ref. integrity checks. No passwords. One memo field in
table. The table is quite loaded (8 Megs) but the structure is rather simple
(18 fields before the operation). The repair utility said the table is all
OK. When using DBD to make the same change on same table it succeeds without
comment.
Does anybody know what happens there?
Thank you, Florin
P.S. If relevant: When obtaining the FldDescs, the iFldNum (the one that
gets set from 1 to number of fields in every example) is COMING from
dbiGetFieldDescs in a very strange status (values way out of range and not
in order).
Is this normal (or nobody ever bothered to check :-) ?