Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Which comes first
Message
 
To
26/01/2004 16:20:31
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00870624
Message ID:
00870800
Views:
8
Interesting!

>Hi Tom,
>
>I sometimes do this. If I setup the table in the init then it goes before the dodefault(). Then after the dodefault() I assign the value to the form property. Of course that typically requires a refresh following...
>
>
>>Perhaps I did not understand your reply. I thought that placing the open table code should go in the form Load. The data source of the control must exist before the form Init fires or an error will be produced.
>>
>>>Load comes first, but the form control's don't yet exist. Controls are INITed from inner most to outer most, meaning the controls are INITed before the form. You'll want to set the control source of the textbox in the Form.Init. I would open the table in the Form.Init and read the value from there.
>>>
>>>
>>>>Which comes first on a form Init or Load?
>>>>
>>>>I want to open a table, store a value to a memvar and use trhat memvar as teh control source for a text box.
>>>>
>>>>When should I do that?
Previous
Reply
Map
View

Click here to load this message in the networking platform