{"id":5183,"date":"2014-03-30T19:31:24","date_gmt":"2014-03-30T19:31:24","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/textbox-that-accepts-all-the-characters-but-returns-only-numbers-collection-of-common-programming-errors\/"},"modified":"2014-03-30T19:31:24","modified_gmt":"2014-03-30T19:31:24","slug":"textbox-that-accepts-all-the-characters-but-returns-only-numbers-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/textbox-that-accepts-all-the-characters-but-returns-only-numbers-collection-of-common-programming-errors\/","title":{"rendered":"Textbox that accepts all the characters but returns only numbers-Collection of common programming errors"},"content":{"rendered":"<p>I need the code to filter the data entered in a textbox. Although it accepts all the characters during runtime, the code should remove all the strings and alpha numeric characters except the numbers (which would be my output). I tried the following code but guess it won&#8217;t do:<\/p>\n<pre><code>a = Textbox1.text\nDim value As Decimal = CDec(Regex.Replace(a, \"[\\D]\", \"\"))\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>I need the code to filter the data entered in a textbox. Although it accepts all the characters during runtime, the code should remove all the strings and alpha numeric characters except the numbers (which would be my output). I tried the following code but guess it won&#8217;t do: a = Textbox1.text Dim value As [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-5183","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5183","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=5183"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5183\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=5183"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=5183"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=5183"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}