Click to See Complete Forum and Search --> : Creating a function to remove a commas
Elpeak
April 27th, 2006, 04:11 PM
I've created a web page linked to a database. The user loggs in and inputs their numeric data. I want to remove any commas prior to inserting the data. Can I create a function or would it be better to put some code in the click event to do the job?
vaughnk
April 27th, 2006, 10:36 PM
Trimming some commas out of a string is a pretty simple operation so you don't really need to create a function to do it... Unless you need to perform the operation for a variety of reasons, in which case it would be simpler to call a function than retype all the code.
kebo
April 27th, 2006, 11:57 PM
To remove commas from a string use
Dim NewString as String = OldString.Replace(",", "")
kevin
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.