{"id":2180,"date":"2012-09-25T10:30:42","date_gmt":"2012-09-25T14:30:42","guid":{"rendered":"http:\/\/www.iowawebnet.com\/ein\/?p=2180"},"modified":"2012-09-28T10:31:18","modified_gmt":"2012-09-28T14:31:18","slug":"count-number-of-charcters-in-a-string-vb-net","status":"publish","type":"post","link":"https:\/\/www.iowawebnet.com\/ein\/2012\/09\/count-number-of-charcters-in-a-string-vb-net\/","title":{"rendered":"Count number of charcters in a string &#8211; VB.NET"},"content":{"rendered":"<pre>\r\nCode Behind\r\n<code>\r\nDim count As Integer = 0\r\nDim CharCount As String = \"Today is sunny day\"\r\n\r\nFor Each c As Char In CharCount\r\n   If Char.IsLetter(c) Or Char.IsNumber(c) Then\r\n        count += 1\r\n    End If\r\n Next\r\nLblCharCount.Text = \"Total number of characters is \"& count.ToString()\r\n<\/code>\r\nMarkup Page\r\n<code>\r\n&lt;asp:Label ID=\"LblCharCount\" runat=\"server\" \/>&lt;\/asp:Label>\r\n<\/code>\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Code Behind Dim count As Integer = 0 Dim CharCount As String = &#8220;Today is sunny day&#8221; For Each c As Char In CharCount If Char.IsLetter(c) Or Char.IsNumber(c) Then count += 1 End If Next LblCharCount.Text = &#8220;Total number of characters is &#8220;&#038; count.ToString() Markup Page &lt;asp:Label ID=&#8221;LblCharCount&#8221; runat=&#8221;server&#8221; \/>&lt;\/asp:Label><\/p>\n","protected":false},"author":35,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[],"class_list":["post-2180","post","type-post","status-publish","format-standard","hentry","category-applications"],"_links":{"self":[{"href":"https:\/\/www.iowawebnet.com\/ein\/wp-json\/wp\/v2\/posts\/2180"}],"collection":[{"href":"https:\/\/www.iowawebnet.com\/ein\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.iowawebnet.com\/ein\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.iowawebnet.com\/ein\/wp-json\/wp\/v2\/users\/35"}],"replies":[{"embeddable":true,"href":"https:\/\/www.iowawebnet.com\/ein\/wp-json\/wp\/v2\/comments?post=2180"}],"version-history":[{"count":5,"href":"https:\/\/www.iowawebnet.com\/ein\/wp-json\/wp\/v2\/posts\/2180\/revisions"}],"predecessor-version":[{"id":2185,"href":"https:\/\/www.iowawebnet.com\/ein\/wp-json\/wp\/v2\/posts\/2180\/revisions\/2185"}],"wp:attachment":[{"href":"https:\/\/www.iowawebnet.com\/ein\/wp-json\/wp\/v2\/media?parent=2180"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.iowawebnet.com\/ein\/wp-json\/wp\/v2\/categories?post=2180"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.iowawebnet.com\/ein\/wp-json\/wp\/v2\/tags?post=2180"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}