{"id":406,"date":"2019-01-25T11:08:28","date_gmt":"2019-01-25T16:08:28","guid":{"rendered":"http:\/\/techref.camellarry.com\/?p=406"},"modified":"2019-01-25T11:11:12","modified_gmt":"2019-01-25T16:11:12","slug":"trimend-like-in-vb-net","status":"publish","type":"post","link":"http:\/\/techref.camellarry.com\/?p=406","title":{"rendered":"TrimEnd &#038; Like in VB.NET"},"content":{"rendered":"<p>This example illustrates trimming the &#8220;!&#8221; character from the end of the string<\/p>\n<pre> \r\n    Dim str As String = \"This is a string, with a comma!\"\r\n    str = str.TrimEnd(CChar(\"!\"))\r\n    MsgBox(str)\r\n<\/pre>\n<p>This example look for 4 numbers after 2 specific characters<\/p>\n<pre> \r\n    Dim phoneNum As String = \"CT8964\"\r\n    If (phoneNum Like \"CT####\") Then\r\n      MsgBox(\"Found it\")\r\n    Else\r\n      MsgBox(\"Nope\")\r\n    End If\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>This example illustrates trimming the &#8220;!&#8221; character from the end of the string Dim str As String = &#8220;This is a string, with a comma!&#8221; str = str.TrimEnd(CChar(&#8220;!&#8221;)) MsgBox(str) This example look for 4 numbers after 2 specific characters Dim phoneNum As String = &#8220;CT8964&#8221; If (phoneNum Like &#8220;CT####&#8221;) Then MsgBox(&#8220;Found it&#8221;) Else MsgBox(&#8220;Nope&#8221;) End [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[9],"tags":[29,45,58,72,76,77,78],"class_list":["post-406","post","type-post","status-publish","format-standard","hentry","category-vb-net","tag-example","tag-microsoft","tag-programming","tag-syntax","tag-vb","tag-vb-net","tag-visualbasic"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9t3oE-6y","_links":{"self":[{"href":"http:\/\/techref.camellarry.com\/index.php?rest_route=\/wp\/v2\/posts\/406","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/techref.camellarry.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/techref.camellarry.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/techref.camellarry.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/techref.camellarry.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=406"}],"version-history":[{"count":2,"href":"http:\/\/techref.camellarry.com\/index.php?rest_route=\/wp\/v2\/posts\/406\/revisions"}],"predecessor-version":[{"id":409,"href":"http:\/\/techref.camellarry.com\/index.php?rest_route=\/wp\/v2\/posts\/406\/revisions\/409"}],"wp:attachment":[{"href":"http:\/\/techref.camellarry.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=406"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/techref.camellarry.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=406"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/techref.camellarry.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=406"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}