Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Forms cursors
Message
De
06/08/2008 11:40:40
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01336796
Message ID:
01336932
Vues:
15
This message has been marked as a message which has helped to the initial question of the thread.
>Hilmar
>
>Thanks for your code :)
>
>But I wanted it in dataenvironment because I would like to create objects from it,
>as combos, listboxes, etc

I think that it should be possible in the DataEnvironment, but I don't remember which is the correct event. But as Nadya said, Form.Load() is appropriate. It is important to know the order in which events are invoked, especially the following:
  • Form.Load()
  • Init() for objects contained on the form
  • Form.Init()

    This means that Form.Load() is the correct place to prepare data that will be used on TextBoxes, etc. On the other hand, in Form.Init() you might conditionally enable/disable controls on the form - because these controls already exist. In Form.Load(), they don't.

    Form.Init() is also the method that accepts parameters.
    Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
  • Précédent
    Suivant
    Répondre
    Fil
    Voir

    Click here to load this message in the networking platform