Hello,
Could someone check if IsEmail still works ? Some old code won't work anymore by me and new projects show an error.
It could be on my side.
The error is something, translated : "Exception thrown but not handled"
Thanks
Hello,
Could someone check if IsEmail still works ? Some old code won't work anymore by me and new projects show an error.
It could be on my side.
The error is something, translated : "Exception thrown but not handled"
Thanks
Hello Samuel,
This works for me:
Hello David,
Thanks a lot for your quick reply. You are right in this case it works. What won't work on my side is when associated with the change event (sample attached).
Before some time (I don't remember when), I had to set the control's content inside a String and then I could check if that string was an Email (not directly from the control). Now I can't. Please, is it something I am doing wrong ?
EDIT : it still works with the Text control and not the Email one. :)
Many thanks David
Hello Samuel,
Certainly you find something curious (at least I don't know about this before). Apparently the Input Email control can store an "undefined" value if the email is not valid. This is similar to the Input Date control, which also do not store a regular string, but a Date variable. For that reason you get the error, because the validator library expect and string and not an "undefined" value.
You can change your code by this and see how is working. Note I set "false_2" just for your information:
P.S. As you refer in your previous post, certainly, if we use an Input Text control, your code works as expected, because in this case the value of that control is an string, even when it's empty. So the validator library can deal with that string without problems.
Super :D
Thanks a lot again, David
Hello Samuel,
Super :D
Thanks a lot again, David
Always thanks to you. We learn at least one thing new everyday! :)
Everybody can read the DecSoft support forum for learning purposes, however only DecSoft customers can post new threads. Purchase one or more licenses of some DecSoft products in order to give this and other benefits.
This website uses some useful cookies to store your preferences.