Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Mysterious ControlSource
Message
 
 
To
12/02/2016 16:44:06
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01631406
Message ID:
01631409
Views:
110
This message has been marked as the solution to the initial question of the thread.
>>>Hi, I have a TextBox with a ControlSource that doesn't exist - no table is open; there is no table in the DataEnvironment, Form.Load() and Form.Init() are empty, and the form is not based on any class other than "Form" itself.
>>>
>>>And yet, instead of getting the expected error message about the non-existant field, the data I type in mysteriously gets saved - when I get back to the form, it is right there.
>>>
>>>Is this something with the Registry that I didn't know about?
>>>
>>>I just type some text as the ControlSource; for example, "aaa".
>>
>>Did you try closing VFP and re-opening? If you do so, are the data you typed still there?
>
>Indeed, the data disappears after closing VFP.

Ok, so I suspect that a private variable being created that holds your data.

You can add

=messagebox(vartype(aaa))

in the form's Init.
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