Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Which comes first
Message
From
26/01/2004 16:20:31
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00870624
Message ID:
00870769
Views:
14
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?
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform