Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid - controlsource secondary table don't works
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00307064
Message ID:
00307302
Vues:
25
>Pablo,
>
>The grid is created before the form's INit runs (the Form's Init is the LAST thing that runs sduring the creation of a form)

Yes,

>. If you opne the table in teh Form's Init then it is not open when teh grid is created and its Init runs so you get the error, alias is not found because the alias doesn't exist yet.

No Jim, I open all the tables in my form baseclass, in the Load, and this is done before creating the grid.

A moment!, I revised this again:

1. I have a form baseclass that has a pageframe and in the second page the grid

2. stopping execution of as the first line in the Load Event of my frmclients, I also got created obly the pageframe and the grid!!!! No more, nor other textbos and nothing who his parent is frmclients. It's likely if you baseclass has you have even in the load! goodness! That's why it was important to ask you this. I must solve this.

>
>
>By waiting to set teh column's controlsource until after the table has been open you don't get the error because the alias does exist.

Yes, but my opening is from the Codebook (cdataenv) and I get the grid created in the load!

Many thanks for this.
Pablo Roca
Clavo Congelados, S.A. (La Coruna - Spain)
Sysop of PortalFox

Join MasFoxPro campaign
http://www.masfoxpro.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform