Primary key when creating Interbase table

I am creating tables in runtime, but I have some problems defining
primary key for Interbase tables. Can anyone tell me how to do this?

When doing the following:
     aTable.IndexDefs.add('TableA', 'Name', [ixPrimary, ixUnique])
 I have set the primary key for a Paradox table, but when doing the
same using a Interbase table, i get an EDBEngineError with message
"Invalid array of index descriptors". If I drop the ixPrimary from the
statement, there is no problem with the statement, and a unique index
on the table is created.

The field is also defined as not Null.

Thank you in advance.

Alf Inge Lindtner