{"id":843,"date":"2020-09-03T11:22:00","date_gmt":"2020-09-03T17:22:00","guid":{"rendered":"https:\/\/www.great-white-software.com\/blog\/?p=843"},"modified":"2020-08-27T09:34:50","modified_gmt":"2020-08-27T15:34:50","slug":"2020r1-desktop-changes","status":"publish","type":"post","link":"https:\/\/www.great-white-software.com\/blog\/2020\/09\/03\/2020r1-desktop-changes\/","title":{"rendered":"2020r1 Desktop changes"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">2020r1 introduces lots of changes. Some seem to be in the category of change for the sake of change.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The clipboard has changes to the names of parameters.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>- Public Function RawData(macType As String) As String\n+ Public Function RawData(dataType As String) As String\n- Public Function RawDataAvailable(macType As String) As Boolean\n+ Public Function RawDataAvailable(dataType As String) As Boolean\n- Public Function RawData(macType As String, Assigns value As String) As String\n+  Public Sub RawData(dataType As String, Assigns value As String)<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Probably not a big hit for anyone and likely done for clarity in the tooltip in the IDE.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you happened to switch your code to using API 2 then you&#8217;ll find a few small changes where you will have to update your code. This will break backwards compatibility since older frameworks \/ iDE&#8217;s will have a different definition for the values in the enumeration<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Enum HashAlgorithms \n- \t\tSHA = 1\n+ \t\tSHA1 = 1\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">MenuItem LastRowIndex has switched form being a method, to being a property. This shouldn&#8217;t cause issues UNLESS you happened to subclass MenuItem and implemented that method (in which case now you have to shadow it carefully)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">POP3 Secure sockets have had several events removed &#8211; again this will break any chance of being backwards compatible.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>- \tEvent LoginSucceeded()\n- \tEvent RollbackSucceeded()\n- \tEvent ServerReplied(command As string, data As string)\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">PopupMenu had several of its method signatures altered. Again this wont affect you unless you had subclassed any of these and implemented these methods in your subclass.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>- \tPublic Sub AddAllRows(rows() As String)\n+ \tPublic Sub AddAllRows(items() As String)\n+ \tPublic Sub AddAllRows(ParamArray items() As String)\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">PrinterSetup has had a few properties deprecated in favor of new API 2 versions<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>PrinterSetup\n- \tPublic Property IsLandscape As Boolean\n+ \tAttributes( \"Deprecated\" = \"Landscape\" ) Public Property IsLandscape As Boolean\n- \tAttributes( \"Deprecated\" = \"IsLandscape\" ) Public Property Landscape As Boolean\n+ \tPublic Property Landscape As Boolean\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>2020r1 introduces lots of changes. Some seem to be in the category of change for the sake of change. The clipboard has changes to the names of parameters. Probably not a big hit for anyone and likely done for clarity in the tooltip in the IDE. If you happened to switch your code to using &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.great-white-software.com\/blog\/2020\/09\/03\/2020r1-desktop-changes\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;2020r1 Desktop changes&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[1],"tags":[],"class_list":["post-843","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.great-white-software.com\/blog\/wp-json\/wp\/v2\/posts\/843","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.great-white-software.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.great-white-software.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.great-white-software.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.great-white-software.com\/blog\/wp-json\/wp\/v2\/comments?post=843"}],"version-history":[{"count":1,"href":"https:\/\/www.great-white-software.com\/blog\/wp-json\/wp\/v2\/posts\/843\/revisions"}],"predecessor-version":[{"id":844,"href":"https:\/\/www.great-white-software.com\/blog\/wp-json\/wp\/v2\/posts\/843\/revisions\/844"}],"wp:attachment":[{"href":"https:\/\/www.great-white-software.com\/blog\/wp-json\/wp\/v2\/media?parent=843"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.great-white-software.com\/blog\/wp-json\/wp\/v2\/categories?post=843"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.great-white-software.com\/blog\/wp-json\/wp\/v2\/tags?post=843"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}