Ok, I see the deal:
It works in VFP 6.0, not in VFP 5.0
Thanks for all your help!
Mark
>>Bob & Randy,
>>Here's a sample code (not the actual one I'm using, but much more readable):
>>
>>
CREATE DATA datTest
>>CREATE TABLE tblTest (cKey C(1))
>>ALTER TABLE tblTest ADD PRIMARY KEY cKey TAG cKey FOR .NOT.EMPT(cKey)
>>
>>Switching the order of the TAG/FOR clauses makes no difference.
>
>This works for me:
>
>CREATE DATA datTest
>CREATE TABLE tblTest (cKey C(1))
>ALTER TABLE tblTest ADD PRIMARY KEY cKey FOR NOT EMPT(cKey) TAG cKey
"It hit an iceberg and it sank. Get over it."
Robert Ballard, dicoverer of the Titanic wreckage.