txtDate = Null will clear the date already in the field.
txtDate.SetFocus will set the focus back on the field.
txtDate.SelStart = 0 will place the cursor at the start of the Input Mask and display it.
Kevin Yip
@Reply 2 years ago
Hi Andrew, do you want to clear the field or undo the user entry? Your code indicates that you want to undo, and that is done differently. If the Undo function "isn't available," it needs to be done some other way, such as using the .OldValue property.
Sorry, only students may add comments.
Click here for more
information on how you can set up an account.
If you are a Visitor, go ahead and post your reply as a
new comment, and we'll move it here for you
once it's approved. Be sure to use the same name and email address.
This thread is now CLOSED. If you wish to comment, start a NEW discussion in
Visitor Forum.