Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Same old problem again
Message
 
 
To
15/12/2005 10:52:21
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01078218
Message ID:
01078305
Views:
36
Ok, here is what we found with my colleague Ambrish, who is a great programmer:

When I start my form, I have all controls (except for two date controls, it's another thread's topic) bound. In the form's init I have the following code:
	if empty(m.tcBatch_Imports_pk)
		.setall('controlsource','')		
The reason I did it was the behavior of the combobox when its RowSource is an array. If the value of the combobox is empty and it's not in the list, it adds the blank line as the last item in the list. My manager noticed this and objected. Thus I unbound my controls in run-time and put lots of extra-logic to handle them properly.

But now the editbox starts to show the behavior I noted. In other words, if the editbox was once bound and you try to programmatically set its controlsource to "", it now doesn't save the value. I would consider this behavior as a bug.

Thanks for listening and your consolations/ condolenses are warmly accepted <g>
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