{"id":51,"date":"2008-09-25T21:13:36","date_gmt":"2008-09-25T20:13:36","guid":{"rendered":"http:\/\/bergatrollet.se\/blog\/?p=51"},"modified":"2009-01-10T15:24:07","modified_gmt":"2009-01-10T14:24:07","slug":"delphi-2009","status":"publish","type":"post","link":"http:\/\/bergatrollet.se\/blog\/2008\/09\/delphi-2009\/","title":{"rendered":"Delphi 2009"},"content":{"rendered":"<p>I just downloaded the demo of Delphi 2009 and installed it. Watched a few demonstration videos.<\/p>\n<p>Quite a few to watch:<\/p>\n<p>http:\/\/dn.codegear.com\/article\/38478<\/p>\n<p>A good pick:<\/p>\n<p>http:\/\/windemo1.codegear.com\/Tiburon\/LaunchReplays\/Delphi2009Launch\/Delphi2009Launch.htm<\/p>\n<p>Was reminded that the Logitech camera interferes with Delphi. I think it still does actually<\/p>\n<p>http:\/\/bdntv.borland.com\/pix\/nickhodges\/Camtasia\/Logitech\/Logitech.html<\/p>\n<p>Did another piece of code that wouldn&#8217;t compile (here commented out) &#8211; The Pos wouldn&#8217;t work!<\/p>\n<p>\/\/ PROBLEM WITH DELPHI 2009<\/p>\n<p>\/\/\u00a0 with TCustomADODataSet(SelectGrid.DataSource.DataSet) do<br \/>\n\/\/\u00a0 begin<br \/>\n\/\/\u00a0\u00a0\u00a0 if (Pos(Column.Field.FieldName, Sort) = 1) and (Pos(&#8216; DESC&#8217;, Sort)= 0) then\u00a0\u00a0 \/\/&lt;- It stops here!<br \/>\n\/\/\u00a0\u00a0\u00a0\u00a0\u00a0 Sort := Column.Field.FieldName + &#8216; DESC&#8217;<br \/>\n\/\/\u00a0\u00a0\u00a0 else<br \/>\n\/\/\u00a0\u00a0\u00a0\u00a0\u00a0 Sort := Column.Field.FieldName + &#8216; ASC&#8217;;<br \/>\n\/\/<br \/>\n\/\/\u00a0\u00a0\u00a0 If Column.Field.FieldName = &#8216;MCC&#8217; then<br \/>\n\/\/\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 ADO_Progress.Sort := &#8216;MCC ASC, MNC ASC&#8217;<br \/>\n\/\/\u00a0\u00a0\u00a0 else<br \/>\n\/\/\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 ADO_Progress.IndexFieldNames := sort; \/\/\/ TEST!<br \/>\n\/\/\u00a0 end;<\/p>\n<p>[EDIT]<\/p>\n<p>&#8230; which I got to work using a RawByteString() typecast &#8230;<\/p>\n<p>with TCustomADODataSet(SelectGrid.DataSource.DataSet) do<br \/>\nbegin<br \/>\nif (Pos(RawByteString(Column.Field.FieldName), Sort) = 1) and (Pos(RawByteString(&#8216; DESC&#8217;), Sort)= 0) then<br \/>\nSort := Column.Field.FieldName + &#8216; DESC&#8217;<br \/>\nelse<br \/>\nSort := Column.Field.FieldName + &#8216; ASC&#8217;;<\/p>\n<p>If Column.Field.FieldName = &#8216;MCC&#8217; then<br \/>\nADO_Progress.Sort := &#8216;MCC ASC, MNC ASC&#8217;<br \/>\nelse<br \/>\nADO_Progress.IndexFieldNames := sort; \/\/\/ TEST!<br \/>\nend;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I just downloaded the demo of Delphi 2009 and installed it. Watched a few demonstration videos. Quite a few to watch: http:\/\/dn.codegear.com\/article\/38478 A good pick: http:\/\/windemo1.codegear.com\/Tiburon\/LaunchReplays\/Delphi2009Launch\/Delphi2009Launch.htm Was reminded that the Logitech camera interferes with Delphi. I think it still does &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"more-link\" href=\"http:\/\/bergatrollet.se\/blog\/2008\/09\/delphi-2009\/\"> <span class=\"screen-reader-text\">Delphi 2009<\/span> Read More &raquo;<\/a><\/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":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[3,4],"tags":[14,13],"class_list":["post-51","post","type-post","status-publish","format-standard","hentry","category-code","category-delphi","tag-coding","tag-delphi2009"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/pkM6p-P","jetpack_likes_enabled":true,"_links":{"self":[{"href":"http:\/\/bergatrollet.se\/blog\/wp-json\/wp\/v2\/posts\/51","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/bergatrollet.se\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/bergatrollet.se\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/bergatrollet.se\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/bergatrollet.se\/blog\/wp-json\/wp\/v2\/comments?post=51"}],"version-history":[{"count":6,"href":"http:\/\/bergatrollet.se\/blog\/wp-json\/wp\/v2\/posts\/51\/revisions"}],"predecessor-version":[{"id":114,"href":"http:\/\/bergatrollet.se\/blog\/wp-json\/wp\/v2\/posts\/51\/revisions\/114"}],"wp:attachment":[{"href":"http:\/\/bergatrollet.se\/blog\/wp-json\/wp\/v2\/media?parent=51"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/bergatrollet.se\/blog\/wp-json\/wp\/v2\/categories?post=51"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/bergatrollet.se\/blog\/wp-json\/wp\/v2\/tags?post=51"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}