Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MultiAcceso a DBC
Message
From
23/01/2003 20:02:12
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
20/01/2003 16:30:34
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00743573
Message ID:
00744941
Views:
7
>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)
Previous
Reply
Map
View

Click here to load this message in the networking platform