Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why lock() fails.
Message
De
21/10/2001 11:36:23
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
19/10/2001 16:14:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00570423
Message ID:
00571443
Vues:
25
I must be missing something here.

If you create a temporary cursor, you are the only one that accesses it. No need to LOCK(), or anything similar.

If you want an updatable cursor, where changes go back to the underlying tables, use views. TableUpdate() and TableRevert() work just like with normal tables. Or very similar, at least.

HTH, Hilmar.

>I cannot use TABLEUPDATE() since this is temporary cursor. I use this cursor to collect document rows.
>For saving document, I use COPY TO and TABLEREVERT()
>
>I added LOCK() command because without lock command, the same error occurs in REPLACE command. Using LOCK() I can output a friendly error message. However, error still occurs.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform