Kishore Kumar
June 3rd, 1999, 09:17 AM
Hello ,
I am Kishore Kumar. I am working in a VC++ Project. I am having a strange problem in validating the data. My Dialog is having Four Edit boxes ( Number,Name,Place,Zipcode). I wrote the code for validation in the killfocus of corresponding control. My problem is Initially all the edit boxes are empty (Invalid). When the user enters number and pressed tab then focus is set to Name and Killfocus of number is called. If the number is invalid then I am showing a message and setting the focus back to Number. But the focus is alresdy on the Name its calling the Killfocus of Name and validating the name. Obviously name is empty(Invalid). So its going into an Infinite loop. Please help me.
Thanks - Kishore.
Kishore Kumar D
Bangalore.
India.
I am Kishore Kumar. I am working in a VC++ Project. I am having a strange problem in validating the data. My Dialog is having Four Edit boxes ( Number,Name,Place,Zipcode). I wrote the code for validation in the killfocus of corresponding control. My problem is Initially all the edit boxes are empty (Invalid). When the user enters number and pressed tab then focus is set to Name and Killfocus of number is called. If the number is invalid then I am showing a message and setting the focus back to Number. But the focus is alresdy on the Name its calling the Killfocus of Name and validating the name. Obviously name is empty(Invalid). So its going into an Infinite loop. Please help me.
Thanks - Kishore.
Kishore Kumar D
Bangalore.
India.