Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MultiAcceso a DBC
Message
De
23/01/2003 20:02:12
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
20/01/2003 16:30:34
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00743573
Message ID:
00744941
Vues:
10
>Soy nuevo en VFP...
>Estoy con VFP5 y 6
>En un entorno multi acceso a base de dato .dbc de vfp 5 o 6
>como debo manejar para mantener la consistencia y la integridad de datos ?
>Con el buffering de table y tipo de DataSession en Private se puede lograr?

Sí.

Recomiendo usar buffering optimista (tabla o registro, es decir, opción 5 ó 3).

Con TableUpdate() guardas los datos. VFP detectará si otro usuario hizo cambios hasta mientras, y - con la opción adecuada en TableUpdate() - no te dejará guardar los cambios.

Recuerda verificar el valor de retorno de TableUpdate(). Puedes verificar la causa de la no-actualización con aerror(). Algo así:


if not TableUpdate()
aerror(MiArrayDeError)
MessageBox("Error de actualización" + chr(13) + chr(10);
+ "Error #" + trans(MiArrayDeError(1));
+ MiArrayDeError(2))
endif
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
Répondre
Fil
Voir

Click here to load this message in the networking platform