Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Escape from dataenvironment..
Message
De
10/03/2011 03:42:49
 
 
À
09/03/2011 17:26:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01502909
Message ID:
01503147
Vues:
108
>>Hi Viv,
>>
>>It didn't work. Because I have the autoopentables set to .t., it goes on to try to open a table that, say is missing, and then errors. And autoopentables is read only at run time, so I can't change the value. Any other ideas?
>
>IIRC, if you return .F. from BeforeOpenTables() then there will be no attempt to open.....

UPDATE: Guess not. Would have been logical but doesn't happen.
Maybe set AutoOpenTables to .F. , then in Form.Load():
IF THIS.DataEnvironment.BeforeOpenTables()
  THIS.DataEnvironment.OpenTables()
ELSE
  RETURN .F.
  * or carry on in some fashion.....
ENDIF
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform