Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DataEnvironment
Message
 
 
À
31/07/2000 13:08:36
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00398881
Message ID:
00398882
Vues:
14
>In the DataEnvironment I delete a table (the first, primary cursor) and then add a view in its place. Problem is, it's not recognized as the first cursor. How can I move it up? Since the other tables in the dataenvironment are read-only, at run-time I get a message that it's read-only. The only way I know to correct the problem was to delete everything in the DataEnvironment and then start over again, adding the View first then the read-only tables (and then re-bind them), and then presto, the message went away. Isn't there a better way?

Set InitialSelectedAlias to the name of this view. You can add this in Load event of your form:
Thisform.DataEnvironment.InitialSelectedAlias='MyViewName'
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform