Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Order of Instantiation
Message
From
04/03/2008 22:40:48
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
04/03/2008 22:26:54
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01298749
Message ID:
01298771
Views:
21
>>>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)
  • Previous
    Reply
    Map
    View

    Click here to load this message in the networking platform