Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Including Tables into the Project
Message
 
À
15/06/1997 19:26:14
Renato De Giovanni
Via Fractal Information Systems
São Paulo, Brésil
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00036447
Message ID:
00036488
Vues:
45
>In our application here, there're some tables that cannot be changed by the users (we only put information in it during design time).
>So, there's no need to have these tables available into the Data directory if I include them into the Project, isn't that right?
>
>Well, I've tried to do this last week and I came to the following problem:
>
>All our Forms have Private DataSession and they need to have a look at the information stored into these tables. What happens is that if I have one of these tables opened in a DataSession, the function USED() within ANOTHER DataSession returns .F.. But if I try to use the table I get the error *File is in use*!?!?
>
>Is this behaviour expected? Did anyone else also face this before?
>
>regards,
>
>Renato
Renato,

You need to incldue the AGAIN keyword in your use command as in;

USE MyTable AGAIN

This is because the table is used in another area but not one that is part of the current form's Datasession. The USED() function is only looking in the current data session for a work area with the specified alias name.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform