{"id":430,"date":"2004-12-16T08:42:59","date_gmt":"2004-12-16T06:42:59","guid":{"rendered":"http:\/\/10.0.0.2\/wordpress\/?p=430"},"modified":"2004-12-16T08:42:59","modified_gmt":"2004-12-16T06:42:59","slug":"delphi-pascal-vs-c","status":"publish","type":"post","link":"https:\/\/www.switchbl8.nl\/blog\/2004\/12\/delphi-pascal-vs-c\/","title":{"rendered":"Delphi (Pascal) vs C#"},"content":{"rendered":"<p>Yesterday I fooled around with the <a href=\"http:\/\/www.oracle.com\/technology\/tech\/windows\/odpnet\/index.html\">ODP.NET<\/a> drivers from Oracle. Just to create a simple thing to proof the drivers worked, I dropped a OracleConnection and two buttons on a form, named one Connect and the other (guess what) Disconnect. I double-clicked on the Connect button, added a try-open-except-errormessage. At that time I didn&#8217;t notice the red underlining the .close statement had. I double-clicked on the Disconnect button and added a try-close-except-errormessage. F9. Delphi gave me an error on the open-property (duh, it&#8217;s not a property, it&#8217;s a procedure) of the Oracle-connection. I placed the cursor on the dot, removed the word &#8220;open&#8221; and the semicolon, and pressed Ctrl-Space. Hey, I thought, let Delphi do the work. I choose &#8220;procedure Close&#8221;, and pressed enter. Again, red underlining and still compiling did not work. WTF!?<\/p>\n<p>Close all, save? No!<\/p>\n<p>New C# project. Add Oracle-connection, and two buttons. No rename, just double-click. F*CK! (Excuse my French) C# needs () after a procedure with no arguments. F9. It works. I can connect and disconnect to my Oracle database.<\/p>\n<p>WTF!?!?!?! Is Borland pushing us to use its C# to outphase Delphi???? \ud83d\ude41<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Yesterday I fooled around with the ODP.NET drivers from Oracle. Just to create a simple thing to proof the drivers worked, I dropped a OracleConnection and two buttons on a form, named one Connect and the other (guess what) Disconnect. I double-clicked on the Connect button, added a try-open-except-errormessage. At that time I didn&#8217;t notice <a href='https:\/\/www.switchbl8.nl\/blog\/2004\/12\/delphi-pascal-vs-c\/' class='excerpt-more'>[&#8230;]<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[34,39,6,41,8,19],"tags":[],"class_list":["post-430","post","type-post","status-publish","format-standard","hentry","category-net","category-c","category-databases","category-delphi","category-development","category-oracle","category-34-id","category-39-id","category-6-id","category-41-id","category-8-id","category-19-id","post-seq-1","post-parity-odd","meta-position-corners","fix"],"_links":{"self":[{"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/posts\/430","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/comments?post=430"}],"version-history":[{"count":0,"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/posts\/430\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/media?parent=430"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/categories?post=430"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/tags?post=430"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}