Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to remove "." from the input value before I pass it to the DB

Status
Not open for further replies.

taree

Technical User
May 31, 2008
316
US
I have a text box for the user to enter a number and I would like to check if the user enter a number like this
212.3610/00020 and if there is a period found in the numbers they entered then I would like to remove it and pass like this to the database 2123610/00020. can someone show me how this can be done.
 
I think I got it.

(Trim(txtDescription.Text)).Replace(".", "")

Let me know if there is a better approach.

thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top