{"id":502,"date":"2024-08-31T00:29:47","date_gmt":"2024-08-31T00:29:47","guid":{"rendered":"http:\/\/basicwebsitesolutions.com\/blog\/?p=502"},"modified":"2024-08-31T00:29:47","modified_gmt":"2024-08-31T00:29:47","slug":"delphi-tip-how-to-get-the-value-from-tqrexpr-quick-report-component-solved","status":"publish","type":"post","link":"https:\/\/basicwebsitesolutions.com\/blog\/2024\/08\/31\/delphi-tip-how-to-get-the-value-from-tqrexpr-quick-report-component-solved\/","title":{"rendered":"Delphi Tip : How to get the value from TQrExpr Quick Report Component [solved]"},"content":{"rendered":"\n<p>Hi guys,<\/p>\n\n\n\n<p>Just wanted to post this quick tip for those who are still using Delphi and wanted to get the value whether double or int when computing using TQrEXPR.<\/p>\n\n\n\n<p>I remember already seeing this before and now I might need to post it here for posterity sake.<\/p>\n\n\n\n<p>Hope it helps someone else out there. The concept is QREXPR1.Value.DblResult or IntResult.<\/p>\n\n\n\n<p>case QRExpr1.Value.Kind of<br>resInt : Total := QRExpr1.Value.IntResult;<br>resDouble : Total := QRExpr1.Value.DblResult;<br>else<br>Total := 0.00;<\/p>\n\n\n\n<p>Yeah it&#8217;s that easy. <\/p>\n\n\n\n<p>Take care and stay safe<\/p>\n\n\n\n<p>Coffee Cup<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to get the value from TQrExpr Quick Report Component<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,3],"tags":[321,36,322,320],"class_list":["post-502","post","type-post","status-publish","format-standard","hentry","category-day-to-day-life","category-delphi-and-interbase","tag-dblresult","tag-delphi","tag-intresult","tag-tqrexpr"],"_links":{"self":[{"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/posts\/502","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=502"}],"version-history":[{"count":1,"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/posts\/502\/revisions"}],"predecessor-version":[{"id":503,"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/posts\/502\/revisions\/503"}],"wp:attachment":[{"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=502"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=502"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=502"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}