Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP6 pass form parameter to open table
Message
 
 
À
07/09/2000 14:24:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00413715
Message ID:
00414874
Vues:
27
>There is nothing stoping you from opening the table with USE in the Init() of >the second form. However, if some fields should be bounded to this table, you >will have to bound them programmaticaly in the Init() of your form.

When you have a lot of cuntrols in complex structures, like containers and pageframes, it is like a pain. Much more simple way is create temporary cursor in form.load method by 'CREATE CURSOR' command. By this way alias will exist with fields required to initialize controls without errors. Than in Init you may close temporary cursor and open table. When you have a grid based on this table, be sure to assign empty string to grid's RecordSource before close of temporary cursor to do not damage it's columns.
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform