Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can not remove objects in the Form's Load?
Message
 
 
À
03/03/2000 11:37:46
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00341285
Message ID:
00341295
Vues:
26
Bill,

>> I have a form, which has two grids, only one of them is really used, and other should be removed. The removing code was in Form's Init method and it works just fine. When I put the same code into Load method, it failes. Both grids have all columns controlsource set in design-time.
>>
>> I'm thinking about put NODEFAULT in Grid Init method, if certain conditions are met. Is there simpler approach?
>>
>>TIA
>
>Couple of thoughts. I believe the objects are not yet instantiated when the form Load fires, hence, your error. I think you should be able to test in the grid Init and just return .F. from the Init to keep the grid from instantiating.

Right. I would try it. Thanks much.
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