If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Enjoy an ad free experience by logging in. Not a member yet? Register.

Secondly I have a function to validate names but for some reason it is not being called anyway here is the function and also the method I am using to call it. Any suggestions would be greatly appreciated thanks:

The reason why the check function is never called is that in the clickEvent() function you return on the line that calls the valDate function so the code after it never gets executed because the program execution has left the clickEvent function.

You need to modify the click Event function to something like the following...