loObject = SYS(1270)
IF UPPER(loObject.Name) = "CMDCANCEL" && CMDCANCEL is the cancel button name
** Don't do stuff
ELSE
** Do Normal TextBox Valid Code
ENDIF
HTH:)
Terry Rooks
Software Systems Architect
Microsoft Certified Solution Developer.Net
If at first you don't succeed, then skydiving definitely isn't for you.