Information générale
Catégorie:
Codage, syntaxe et commandes
>If you index the cursor BEFORE re-opening it as
>a writable cursor, then the index plus the cursor
>will be deleted automatically! That is,
>
> create cursor C_XXX ...
> index on cfield1 tag cfield1
> m.dbf = dbf()
> use (m.dbf) again in 0 shared alias C_YYY
> use in C_XXX
> select C_YYY
> index on cfield2 tag cfield2
> index on cfield3 tag cfield3
> ....
>
>The SEQUENCE of actions is critical. Build at least
>one index before you re-open will guarantee FoxPro
>to delete them automatically.
>
>I think Visual FoxPro should behave like Foxpro
>2.6.
That's very important information - thanks for that! I just knew they weren't always deleted automatically and always programmed for it (ERASE doesn't give an error if the file doesn't exist).
Again, thanks
Précédent
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