{"id":109,"date":"2011-02-07T21:01:00","date_gmt":"2011-02-08T03:01:00","guid":{"rendered":"https:\/\/www.chrystalsander.com\/blog\/?p=109"},"modified":"2011-02-07T21:01:00","modified_gmt":"2011-02-08T03:01:00","slug":"error-option-strict-on-disallows-operands-of-type-object-for-operator","status":"publish","type":"post","link":"https:\/\/www.chrystalsander.com\/blog\/?p=109","title":{"rendered":"Error:  Option Strict On disallows operands of type Object for operator &#8216;<>&#8216;."},"content":{"rendered":"<p>This is a fairly easy error to fix :<\/p>\n<p><span style=\"font-style: italic; color: rgb(255, 0, 0);\">Error      55           Option Strict On disallows operands of type  Object for operator &#8216;<>&#8216;. Use the &#8216;Is&#8217; operator to test for object  identity. <\/span><\/p>\n<p>Chances are, you have a line of code like this:<\/p>\n<p><span style=\"font-size: 9pt; font-family: &quot;Courier New&quot;; color: blue;\">If<\/span><span style=\"font-size: 9pt; font-family: &quot;Courier New&quot;;\"> (<span style=\"color: blue;\">Me<\/span>._item <> Value) <span style=\"color: blue;\">Then<\/p>\n<p><\/span><\/span>Change it to this:<\/p>\n<p><span style=\"font-size: 9pt; font-family: &quot;Courier New&quot;; color: blue;\">If<\/span><span style=\"font-size: 9pt; font-family: &quot;Courier New&quot;;\"> <span style=\"color: blue;\">Not<\/span> (<span style=\"color: blue;\">Me<\/span>._item <span style=\"color: blue;\">Is<\/span> Value) <span style=\"color: blue;\">Then<\/span><\/span><\/p>\n<p>Of course, you could always try setting <span style=\"font-style: italic;\">Option Strict off,<\/span> but that is usually not the best practice.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is a fairly easy error to fix : Error 55 Option Strict On disallows operands of type Object for operator &#8216;&#8216;. Use the &#8216;Is&#8217; operator to test for object identity. Chances are, you have a line of code like this: If (Me._item Value) Then Change it to this: If Not (Me._item Is Value) Then &hellip; <a href=\"https:\/\/www.chrystalsander.com\/blog\/?p=109\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Error:  Option Strict On disallows operands of type Object for operator &#8216;<>&#8216;.&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"_links":{"self":[{"href":"https:\/\/www.chrystalsander.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/109"}],"collection":[{"href":"https:\/\/www.chrystalsander.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.chrystalsander.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.chrystalsander.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.chrystalsander.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=109"}],"version-history":[{"count":0,"href":"https:\/\/www.chrystalsander.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/109\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.chrystalsander.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=109"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.chrystalsander.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=109"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.chrystalsander.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=109"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}