From: ralph h. <1st...@1I...> - 2004-04-22 14:42:07
|
If have a loseFocus event coded as follows: def on_SSN_loseFocus(self, event): ssnn=self.fmtString(string.replace(self.components.SSN.text,"-",""),'^^^-^^-^^^^') if len(ssnn) == 11: self.components.SSN.text = ssnn else: msg='SSN Must contain all 9 digits!' result=self.showAlert(msg,'SSN Validation Error') I am validation the SS number and if it's "invalid" I report an error in an alert. I want to "refocus" to the same textfield. What is the "get focus" event? _____________________________________________________________ ======================================= www.StrictlyEmail.com ...our name says it all! |