{"id":31,"date":"2007-12-05T10:12:03","date_gmt":"2007-12-05T10:12:03","guid":{"rendered":"http:\/\/pblog.ru\/lab\/?p=180"},"modified":"2007-12-05T10:12:03","modified_gmt":"2007-12-05T10:12:03","slug":"games354","status":"publish","type":"post","link":"http:\/\/pblog.ru\/lab\/?p=31","title":{"rendered":"\u041f\u043e\u0438\u0441\u043a \u0444\u0430\u0439\u043b\u043e\u0432 \u0432\u043e \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0445 \u043f\u0430\u043f\u043a\u0430\u0445"},"content":{"rendered":"<p>\u041a\u0430\u043a \u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0441\u0442\u0438 \u043f\u043e\u0438\u0441\u043a \u0444\u0430\u0439\u043b\u043e\u0432 \u0432\u043e \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0445 \u043f\u0430\u043f\u043a\u0430\u0445?<br \/>\n<!--more--><\/p>\n<pre class=\"alt2\" style=\"margin:0px; padding:6px; border:1px inset; width:580px; height:320px; overflow:auto\"><div>procedure findfile(s:string); \/\/\u043a\u0430\u0442\u0430\u043b\u043e\u0433, \u043e\u0442\u043a\u0443\u0434\u0430 \u043d\u0430\u0447\u0430\u0442\u044c \u043f\u043e\u0438\u0441\u043a\nvar SearchRec:TSearchRec;\nres:integer; \/\/\u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043f\u043e\u0438\u0441\u043a\u0430 (0 \u0438\u043b\u0438 \u043d\u0435\u0442)\nbegin\nres:=FindFirst(s+'*.*',faAnyFile,SearchRec);\nres:=findNext(SearchRec);\nWhile res=0 do\nbegin\nif (SearchRec.Attr=faDirectory) and ((SearchRec.Name='.')or(SearchRec.Name='..')) then\n begin\n Res:=FindNext(SearchRec);\n Continue;\n end;\nif (SearchRec.Attr=faDirectory) then\/\/\u0435\u0441\u043b\u0438 \u043d\u0430\u0448\u043b\u0438 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e, \u0442\u043e \u0438\u0449\u0435\u043c \u0444\u0430\u0439\u043b\u044b \u0432 \u043d\u0435\u0439\n begin\n findfile(s+SearchRec.Name+'\\');\/\/\u043f\u043e\u0438\u0441\u043a \u0432\u043e \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u043e\u0439 \u043f\u0430\u043f\u043a\u0435\n Res:=FindNext(SearchRec);\n Continue;\n end;\nform1.ListBox1.Items.Add(Sea.Name);\/\/\u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432 Listbox:Tlistbox \u0438\u043c\u044f \u0444\u0430\u0439\u043b\u0430\nRes:=FindNext(SearchRec);\nend;\nFindClose(SearchRec);\nend;\n<\/div><\/pre>\n<p><a href=\"http:\/\/www.programmersforum.ru\/member.php?u=5\">zetrix<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041a\u0430\u043a \u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0441\u0442\u0438 \u043f\u043e\u0438\u0441\u043a \u0444\u0430\u0439\u043b\u043e\u0432 \u0432\u043e \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0445 \u043f\u0430\u043f\u043a\u0430\u0445?<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[16,365],"tags":[197,276,285,345],"_links":{"self":[{"href":"http:\/\/pblog.ru\/lab\/index.php?rest_route=\/wp\/v2\/posts\/31"}],"collection":[{"href":"http:\/\/pblog.ru\/lab\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/pblog.ru\/lab\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/pblog.ru\/lab\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/pblog.ru\/lab\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=31"}],"version-history":[{"count":0,"href":"http:\/\/pblog.ru\/lab\/index.php?rest_route=\/wp\/v2\/posts\/31\/revisions"}],"wp:attachment":[{"href":"http:\/\/pblog.ru\/lab\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=31"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/pblog.ru\/lab\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=31"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/pblog.ru\/lab\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=31"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}