{"id":1520,"date":"2019-08-09T11:46:50","date_gmt":"2019-08-09T18:46:50","guid":{"rendered":"https:\/\/doubleecpu.com\/?page_id=1520"},"modified":"2019-08-09T11:48:09","modified_gmt":"2019-08-09T18:48:09","slug":"operators","status":"publish","type":"page","link":"https:\/\/doubleecpu.com\/index.php\/microsoft\/visual-basic-for-applications\/operators\/","title":{"rendered":"Operators"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\">Numeric Operators<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\"> &lt;  Less Than<\/h4>\n\n\n\n<p>Is the value of the first expression less than the value of the second?<br>23 &lt; 33 = True<br>23 &lt; 23 = False<br>23 &lt; 12 = False<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"> >  Greater Than <\/h4>\n\n\n\n<p> Is the value of the first expression greater than the value of the second?<br>23 > 33 = False<br>23 > 23 = False<br>23 > 12 = True<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"> = Equality<\/h4>\n\n\n\n<p>Is The value of the first expression equal to the value of the second?<br>23 = 33 = False<br>23 = 23 = True<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"> &lt;> Inequality<\/h4>\n\n\n\n<p>Is The value of the first expression unequal to the value of the second?<br>23 = 33 = True<br>23 = 23 = False<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"> &lt;=  Less Than or Equal To<\/h4>\n\n\n\n<p>Is the value of the first expression less than the value of the second?<br>23 &lt; 33 = True<br>23 &lt; 23 = True<br>23 &lt; 12 = False<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"> >  Greater Than  or Equal To<\/h4>\n\n\n\n<p> Is the value of the first expression greater than the value of the second?<br>23 > 33 = False<br>23 > 23 = True<br>23 > 12 = True<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Strings<\/h4>\n\n\n\n<p>The numeric operators allow you to compare string values based on their sort order<br>&#8220;73&#8221; &lt; &#8220;9&#8221; = True<br>The equality of strings using the equality operator<br>&#8220;734&#8221; = &#8220;734&#8221; = True<br>If one string is a prefix of another such as &#8220;aa&#8221; and &#8220;aaa&#8221;, the longer string is considered to be greater than the shorter string<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Like  <\/h4>\n\n\n\n<p>string is compared against the pattern, and if it matches , the result is True. Otherwise, the result is false<br>&#8220;aa&#8221; Like &#8220;a&#8221;<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Is and IsNot<\/h4>\n\n\n\n<p>Compares two object reference variables to determine if two reference variables refere to the same object instance<br>x as Object <br>y as Object<br>set x = y<br>x Is y = True<br>x isNot y  = False<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">TypeOf&lt;objectexpression>Is&lt;type name><\/h4>\n\n\n\n<p>When typename is a class type, then the expression returns True if the object is an instance of the specified class or of a class that derives from the specified class.<br>Dim x as System.Windows.Form.Button<br>set x = New System.Windows.Form.Button<br>TypeOf(x) Is  System.Windows.Forms.Control = True (type of x is Button which inherits from Control [is a control]) <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Numeric Operators &lt; Less Than Is the value of the first expression less than the value of the second?23 &lt; 33 = True23 &lt; 23 = False23 &lt; 12 = False > Greater Than Is the value of the first expression greater than the value of the second?23 > 33 = False23 > 23 = &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/doubleecpu.com\/index.php\/microsoft\/visual-basic-for-applications\/operators\/\" class=\"more-link\">Read more<span class=\"screen-reader-text\"> &#8220;Operators&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":591,"menu_order":5,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1520","page","type-page","status-publish","hentry"],"featured_media_urls":[],"_links":{"self":[{"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/pages\/1520","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/comments?post=1520"}],"version-history":[{"count":0,"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/pages\/1520\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/pages\/591"}],"wp:attachment":[{"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/media?parent=1520"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}