{"id":2115,"date":"2015-03-11T16:44:07","date_gmt":"2015-03-11T08:44:07","guid":{"rendered":"http:\/\/blog.qdac.cc\/?p=2115"},"modified":"2015-03-11T16:44:07","modified_gmt":"2015-03-11T08:44:07","slug":"dataset-%e7%9a%84-findfirstfindnextfindpriorfindlast-%e7%94%a8%e6%b3%95","status":"publish","type":"post","link":"https:\/\/blog.qdac.cc\/?p=2115","title":{"rendered":"DataSet \u7684 FindFirst\/FindNext\/FindPrior\/FindLast \u7528\u6cd5"},"content":{"rendered":"<p>\u5728\u5199 QDataSet \u7684\u65f6\u5019\uff0c\u51fa\u4e8e\u91cd\u8f7d\u7684\u9700\u8981\uff0c\u7814\u7a76\u4e86\u4e0b TDataSet \u7684\u4e0a\u8ff0\u65b9\u6cd5\uff0c\u53d1\u73b0\u5f88\u4e0d\u9519\uff0c\u7279\u610f\u4ecb\u7ecd\u7ed9\u5927\u5bb6\u3002<\/p>\n<p>\u8fd9\u7ec4\u51fd\u6570\u4e0e\u4f7f\u7528\u8fc7\u6ee4\u7684\u533a\u522b\u662f\u5b83\u4e00\u6b21\u53ea\u627e\u5230\u4e00\u6761\u8bb0\u5f55\uff0c\u5982\u679c\u6210\u529f\uff0c\u5b83\u5c06\u5176\u5b9a\u4f4d\u5230\u8be5\u8bb0\u5f55\u3002\u5b83\u4f7f\u7528 Filter \u8868\u8fbe\u5f0f\uff0c\u800c\u4e0d\u9700\u8981\u8bbe\u7f6e Filtered \u4e3a True\uff0c\u8fd9\u6837\u5b50\uff0c\u5b83\u5c31\u53ef\u4ee5\u4f7f\u7528 Filter \u8868\u8fbe\u5f0f\u5f97\u5230\u7c7b\u4f3c Locate \u7684\u6548\u679c\uff0c\u800c\u4e14\u66f4\u597d\u7684\u662f\uff0c\u5b83\u76f8\u5bf9\u4e8e Locate\uff0c\u63d0\u4f9b\u4e86\u904d\u5386\u67e5\u627e\u7ed3\u679c\u7684\u65b9\u5f0f\u3002<\/p>\n<p>\u6b63\u5e38\u4f7f\u7528\u7684\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n<p>1\u3001\u8bbe\u7f6e Filter \u8fc7\u6ee4\u8868\u8fbe\u5f0f\uff1b<\/p>\n<p>2\u3001\u8c03\u7528 FindFirst \u67e5\u627e\u7b2c\u4e00\u6761\u8bb0\u5f55\uff0c\u5982\u679c\u627e\u5230\uff0c\u5b83\u8fd4\u56deTrue\u3002<\/p>\n<p>3\u3001\u8c03\u7528 FindNext \u67e5\u627e\u4e0b\u4e00\u6761\u8bb0\u5f55\uff0c\u5982\u679c\u627e\u5230\uff0c\u5b83\u8fd4\u56deTrue\u3002<\/p>\n<p>\u5982\u679c\u8981\u4ece\u5f53\u524d\u8bb0\u5f55\u7684\u4e0b\u4e00\u6761\u5f00\u59cb\u67e5\u627e\uff0c\u76f4\u63a5\u8c03\u7528 FindNext \u5c31\u53ef\u4ee5\u3002\u5982\u679c\u60f3\u4ece\u7279\u5b9a\u8bb0\u5f55\u5f00\u59cb\u67e5\u627e\uff0c\u8bbe\u7f6e RecNo \uff0c\u7136\u540e FindNext \u5c31\u641e\u5b9a\u4e86\u3002<\/p>\n<p>\u5982\u679c\u8981\u4ece\u540e\u5f80\u524d\u67e5\u627e\uff0c\u5c31\u8c03\u7528 FindLast + FindPrior \u7684\u7ec4\u5408\u5373\u53ef\u3002\u81f3\u4e8e Filter \u8868\u8fbe\u5f0f\u7684\u683c\u5f0f\uff0c\u5404\u5bb6\u7ec4\u4ef6\u5b9e\u73b0\u4e0d\u5b8c\u5168\u4e00\u81f4\uff0cTQDataSet \u7684 Filter \u5c5e\u6027\u7684\u76f8\u5173\u652f\u6301\u60c5\u51b5\uff0c\u8bf7\u53c2\u8003\u6587\u7ae0\uff1a<a href=\"https:\/\/blog.qdac.cc\/?p=2080\" target=\"_blank\">[QDB] TQDataSet \u8fc7\u6ee4\u8868\u8fbe\u5f0f\u652f\u6301\u7684\u64cd\u4f5c\u7b26\u8be6\u89e3<\/a>\u3002<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u5199 QDataSet \u7684\u65f6\u5019\uff0c\u51fa\u4e8e\u91cd\u8f7d [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[69,8,21],"tags":[349,198],"class_list":["post-2115","post","type-post","status-publish","format-standard","hentry","category-c-builder","category-delphi","category-misc","tag-findfirst","tag-198"],"views":5143,"_links":{"self":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/2115","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2115"}],"version-history":[{"count":1,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/2115\/revisions"}],"predecessor-version":[{"id":2116,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/2115\/revisions\/2116"}],"wp:attachment":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2115"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2115"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2115"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}