Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Opening Data Files
Message
 
À
23/06/1998 09:31:46
Paulo Hakme
Otto Bock Do Brasil Ltda.
Campinas, Brésil
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00110905
Message ID:
00110944
Vues:
28
first, in network environment, set exclusive off so tables can be shared. secondly, to exit a form when an error like this occurs, return .f. at the end of the init method.


>Hello!
>
>I'm a begginer user of VFP 5.0 and I have one problem:
>
>How do you control the opening of the .DBF's file in your applications running under Network?
>
>In my class FORMBASE (AS form), I had set the autoOpenTable and autoCloseTable to false.
>In the Init method of FORMBASE I called THISFORM.dataenvironment.opentables
>
>The table (customer.DBF) was opened by another user with EXCLUSIVE. The VFP produce an error 1705 (Access to Table Denied). I intercepted the error in Error Event of FORMBASE, then I called THISFORM.release/THISFORM.unload to abort the execution of FORM.
>
>The problem is the system return to next line of the FORM.init instead close the form.
>
>Thanks a lot,
>
>--------------------------------------------------------
>Paulo Hakme - Brasil
>Member of Group Fox Brazil
>ottobock@lexxa.com.br
>paulohakme@caixapostal.com.br
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform