Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is this new in VFP 9 or it was always this way?
Message
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01044798
Message ID:
01044907
Views:
16
>>>>>What I changed now is I instantiate the container in the INIT method of the form, rather than dropping it on the form.
>>>>>
>>>>>This way, I have no problem.
>>>>
>>>>Perhaps in the former case you don't have the table (or cursor) open when your container initializes. If that would be the case, you would receive run-time errors.
>>>
>>>I thought something along those lines too. But the cursor is initialized in LOAD method. And the way I discovered the problem was when I was setting very bogus values in the ControlSource of the textboxes of the container. But I would never get a run-time error.
>>
>>Something is resetting the ControlSource. Did you try to put some test messagebox for the controlsource in question?
>
>No, I didn't put any messagebox() because I don't know how to put a messagebox to check the ControlSource. That is, ControlSource is a property and you can only put a messagebox into a method.

Right. Put it in the Init event of the form.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform