Have to agree with Sergey, I just tried this in the VFP7 command window and it works fine, I used the labels.dbf table for the second procedure.
>I think this may be a bug in VFP 7, but I was wondering if anyone else has run into it?
>
>Try this in VFP 7:
>
>(From the command window)
>CREATE CURSOR binky (field1 C(10))
>ALTER TABLE binky ADD COLUMN field2 C(15)
>(should work fine)
>
>Now try this:
>DIMENSION laStru[1]
>USE anytable
>=AFIELDS(laStru)
>CREATE CURSOR newCursor FROM ARRAY laStru
>ALTER TABLE newCursor ADD COLUMN NewField C(8)
>(boom!)
>This last statement generates the error "Invalid operation for the cursor". It worked fine in VFP 6.
>
>TIA for any help.
>
>-Matt
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement