Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Forms cursors
Message
From
06/08/2008 11:40:40
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01336796
Message ID:
01336932
Views:
16
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)
  • Previous
    Next
    Reply
    Map
    View

    Click here to load this message in the networking platform