{"id":531,"date":"2008-05-10T12:22:10","date_gmt":"2008-05-10T12:22:10","guid":{"rendered":"http:\/\/6teen.ru\/?p=707"},"modified":"2008-05-10T12:22:10","modified_gmt":"2008-05-10T12:22:10","slug":"4225","status":"publish","type":"post","link":"http:\/\/pblog.ru\/lab\/?p=531","title":{"rendered":"\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 DBExpress-Connection \u0432 Run-Time"},"content":{"rendered":"<p>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 DBExpress-Connection \u0432 Run-Time<br \/>\n<!--more--><\/p>\n<pre class=\"alt2\" style=\"margin:0px; padding:6px; border:1px inset; width:580px; height:320px; overflow:auto\"><div>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 DBExpress-Connection \u0432 Run-Time\n\nprocedure TVCLScanner.PostUser(const Email, FirstName, LastName: WideString);\nvar\nConnection: TSQLConnection;\nDataSet: TSQLDataSet;\nbegin\nConnection := TSQLConnection.Create(nil);\nwith Connection do\nbegin\nConnectionName := 'VCLScanner';\nDriverName := 'INTERBASE';\nLibraryName := 'dbexpint.dll';\nVendorLib := 'GDS32.DLL';\nGetDriverFunc := 'getSQLDriverINTERBASE';\nParams.Add('User_Name=SYSDBA');\nParams.Add('Password=masterkey');\nParams.Add('Database=milo2:D:\\frank\\webservices\\umlbank.gdb');\nLoginPrompt := False;\nOpen;\nend;\nDataSet := TSQLDataSet.Create(nil);\nwith DataSet do\nbegin\nSQLConnection := Connection;\nCommandText := Format('INSERT INTO kings VALUES(\"%s\",\"%s\",\"%s\")',\n[Email, FirstN, LastN]);\ntry\nExecSQL;\nexcept\nend;\nend;\nConnection.Close;\nDataSet.Free;\nConnection.Free;\nend;\n<\/div><\/pre>\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 DBExpress-Connection \u0432 Run-Time<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[412,434],"tags":[1125,1176,322],"_links":{"self":[{"href":"http:\/\/pblog.ru\/lab\/index.php?rest_route=\/wp\/v2\/posts\/531"}],"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\/3"}],"replies":[{"embeddable":true,"href":"http:\/\/pblog.ru\/lab\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=531"}],"version-history":[{"count":0,"href":"http:\/\/pblog.ru\/lab\/index.php?rest_route=\/wp\/v2\/posts\/531\/revisions"}],"wp:attachment":[{"href":"http:\/\/pblog.ru\/lab\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=531"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/pblog.ru\/lab\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=531"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/pblog.ru\/lab\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=531"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}