Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Order of Instantiation
Message
De
04/03/2008 22:40:48
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
04/03/2008 22:26:54
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01298749
Message ID:
01298771
Vues:
22
>>>If I create a cursor in the form's LOAD, shouldn't it be available in the INIT of a class on the form? I have a property on the class container (CurrentAlias) but it seems that the cursor is not there when the container is created.
>>
>>I have the impression that things you put on the property sheet are instantiated earlier. How about transferring that to the .Init() event? I mean, in case you are trying to do things through the Property Sheet right now.
>
>I am doing it that way. It gets frustrating; I thought that's one of the reasons there was a property sheet.

Well, as a general rule, if it doesn't work in the Property Sheet, try Form.Init(). It usually works, but there do seem to be some differences:
  • Instantiation order (not so sure about this one).
  • AFAIK, no way to use #DEFINEd constants.
    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
    Répondre
    Fil
    Voir

    Click here to load this message in the networking platform