>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)