09-26-2000, 08:17 PM
I'm currently developing a project using ADO and I wanted to mask a date field with a masked edit box or a masked date control. The problem that I am having is that when the tables are empty the masked edit boxes attempt to bind to the empty data and return an error message. I have been unable to catch any of these errors, and was wondering if there is a way to trap a binding error? I have been unable to find a way to do so within the MSDN help library. Any help would be appreciated.
Another very good reason never to bind anything to a datasource. You lose control. Does the masking work if you don't bind it? ie. by just handing it a value? Excuse my ignorance but I try not to have my programming dictated by the mob at MS. If I didn't write it, or don't have the source, then I won't use it.
Masking can be done manually. Ever thought about making your own Control that does the job?
Sorry for not being any use!
09-26-2000, 08:47 PM
not a problem. I've just been experimenting with ADO with this project and I did what I was told in MSDN and with the controls. The project is quite big and it would be a lot of re-coding to create my own control, etc. I will be sure to remember that for future endeavors.
09-27-2000, 01:43 PM
ahsile, give me the exact error message and how you are binding the data and how you are setting the mask. Then lets see what we can do
09-27-2000, 11:06 PM
Error message is: "Unable to bind to field or datamember: 'StartDate'"
The control is a DTPicker from common controls 2.