﻿{"id":158,"date":"2019-11-19T10:09:14","date_gmt":"2019-11-19T02:09:14","guid":{"rendered":"http:\/\/www.linux-dba.com\/?p=158"},"modified":"2020-07-02T16:02:40","modified_gmt":"2020-07-02T08:02:40","slug":"powerbuilder-%e7%b3%bb%e7%bb%9f%e6%95%b4%e7%90%86%e3%80%90%e5%ba%93%e7%ae%a1%e7%90%86%e5%87%bd%e6%95%b0%e3%80%81%e6%95%b0%e5%80%bc%e8%ae%a1%e7%ae%97%e5%87%bd%e6%95%b0%e3%80%91","status":"publish","type":"post","link":"http:\/\/www.linux-dba.com\/index.php\/2019\/11\/158\/","title":{"rendered":"PowerBuilder \u7cfb\u7edf\u6574\u7406\u3010\u5e93\u7ba1\u7406\u51fd\u6570\u3001\u6570\u503c\u8ba1\u7b97\u51fd\u6570\u3011"},"content":{"rendered":"<p><strong>9.<\/strong><strong>\u5e93\u7ba1\u7406\u51fd\u6570<\/strong><\/p>\n<p><strong>9.1 LibraryCreate(libraryname {,comments})<\/strong><\/p>\n<p>\u8fd4\u56de\u503c\uff1aInteger\u3002\u521b\u5efa\u4e00\u4e2a\u7a7a\u7684PB\u5e94\u7528\u5e93\u3002\u6267\u884c\u6210\u529f\u8fd4\u56de1\uff0c\u9519\u8bef\u8fd4\u56de-1<\/p>\n<p><strong>9.2 LibraryDelete(libraryname {,objectname,objecttype})<\/strong><\/p>\n<p>Objectname\uff1a\u8981\u4ece\u5e93\u4e2d\u5220\u9664\u7684\u6570\u636e\u7a97\u53e3\u5bf9\u8c61\u7684\u540d\u79f0<\/p>\n<p>Objecttype\uff1a\u8981\u5220\u9664\u5bf9\u8c61\u7684\u7c7b\u578b\uff0c\u76ee\u524d\u4ec5\u652f\u6301ImprotDataWindow!<\/p>\n<p>\u8fd4\u56de\u503c\uff1aInteger\u3002\u5f53\u53ef\u9009\u9879\u672a\u6307\u5b9a\uff0c\u5220\u9664\u6307\u5b9a\u7684\u5e94\u7528\u5e93\u3002\u6267\u884c\u6210\u529f\u8fd4\u56de1\uff0c\u9519\u8bef\u8fd4\u56de-1\u3002<\/p>\n<p><strong>9.3 LibraryDirectory(libraryname,objecttype)<\/strong><\/p>\n<p>Objecttype:\u53d6\u503c\u4e3aDirAll\uff01\uff0cDirApplication\uff01\uff0cDirDataWindow\uff01\u7b49<\/p>\n<p>\u8fd4\u56de\u503c\uff1astring\u3002\u5f97\u5230\u5e94\u7528\u5e93\u4e2d\u6307\u5b9a\u5bf9\u8c61\u7684\u4fe1\u606f\u5217\u8868\u5bf9\u8c61\u540d~t\u4fee\u6539\u65e5\u671f\/\u65f6\u95f4~t\u6ce8\u91ca~n<\/p>\n<p><strong>9.4 LibraryExport(libraryname,objectname,objecttype)<\/strong><\/p>\n<p>\u8fd4\u56de\u503c\uff1astring\u3002\u6267\u884c\u6210\u529f\u8fd4\u56de\u6307\u5b9a\u5bf9\u8c61\u7684\u8bed\u6cd5<\/p>\n<p><strong>9.5 LibraryImport(libraryname,objectname,objecttype,syntax, errors {,comment})<\/strong><\/p>\n<p>Objecttype: \u8981\u79fb\u5165\u5bf9\u8c61\u7684\u7c7b\u578b\uff0c\u76ee\u524d\u53ea\u652f\u6301ImportDataWindow!<\/p>\n<p>\u8fd4\u56de\u503c\uff1aInteger\u3002\u6267\u884c\u6210\u529f\u8fd4\u56de1\uff0c\u9519\u8bef\u8fd4\u56de-1<\/p>\n<p>&nbsp;<\/p>\n<p><strong>10.<\/strong><strong>\u6570\u503c\u8ba1\u7b97\u51fd\u6570<\/strong><\/p>\n<table width=\"636\">\n<tbody>\n<tr>\n<td width=\"156\">\u51fd\u6570<\/td>\n<td width=\"163\">\u8fd4\u56de\u503c<\/td>\n<td width=\"317\">\u529f\u80fd<\/td>\n<\/tr>\n<tr>\n<td width=\"156\">Asb(n)<\/td>\n<td width=\"163\">N\u7684\u6570\u636e\u7c7b\u578b<\/td>\n<td width=\"317\">\u8ba1\u7b97\u7edd\u5bf9\u503c<\/td>\n<\/tr>\n<tr>\n<td width=\"156\">Ceiling(n)<\/td>\n<td width=\"163\">N\u7684\u6570\u636e\u7c7b\u578b<\/td>\n<td width=\"317\">\u8fd4\u56de\u5927\u4e8en\u7684\u6700\u5c0f\u6574\u6570<\/td>\n<\/tr>\n<tr>\n<td width=\"156\">Cos ( n)<\/td>\n<td width=\"163\">Double<\/td>\n<td width=\"317\">\u4f59\u5f26\u51fd\u6570<\/td>\n<\/tr>\n<tr>\n<td width=\"156\">Exp ( n)<\/td>\n<td width=\"163\">Double<\/td>\n<td width=\"317\">\u8ba1\u7b97e\u7684n\u6b21\u65b9<\/td>\n<\/tr>\n<tr>\n<td width=\"156\">Fact ( n)<\/td>\n<td width=\"163\">Double<\/td>\n<td width=\"317\">\u8ba1\u7b97n\u7684\u9636\u4e58<\/td>\n<\/tr>\n<tr>\n<td width=\"156\">Int ( n)<\/td>\n<td width=\"163\">Integer<\/td>\n<td width=\"317\">\u5f97\u5230\u5c0f\u4e8en\u7684\u6700\u5927\u6574\u6570<\/td>\n<\/tr>\n<tr>\n<td width=\"156\">Log ( n)<\/td>\n<td width=\"163\">Double<\/td>\n<td width=\"317\">\u8ba1\u7b97n\u7684\u81ea\u7136\u4ee3\u6570<\/td>\n<\/tr>\n<tr>\n<td width=\"156\">LogTen ( n)<\/td>\n<td width=\"163\">Double<\/td>\n<td width=\"317\">\u8ba1\u7b97n\u7684\u5e38\u7528\u4ee3\u6570\uff08\u4ee510\u4e3a\u5e95\uff09<\/td>\n<\/tr>\n<tr>\n<td width=\"156\">Max(x,y)<\/p>\n<p>Min(x,y)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Mod(x,y)<\/td>\n<td width=\"163\">x,y\u4e2d\u66f4\u7cbe\u786e\u7684\u6570\u636e\u7c7b\u578b<\/td>\n<td width=\"317\">\u6c42\u6700\u5927\u503c<\/p>\n<p>\u6c42\u6700\u5c0f\u503c<\/p>\n<p>\u6c42\u4f59\u6570<\/td>\n<\/tr>\n<tr>\n<td width=\"156\">Pi ( n )<\/td>\n<td width=\"163\">Double<\/td>\n<td width=\"317\">\u8ba1\u7b97n\u4e0epi\u7684\u4e58\u79ef<\/td>\n<\/tr>\n<tr>\n<td width=\"156\">Rand(n)<\/td>\n<td width=\"163\">N\u7684\u6570\u636e\u7c7b\u578b<\/td>\n<td width=\"317\">\u5f97\u5230\u4e00\u4e2a1\u5230n\u4e4b\u95f4\u7684\u4f2a\u968f\u673a\u6570<\/td>\n<\/tr>\n<tr>\n<td width=\"156\">Randomize( n )<\/td>\n<td width=\"163\">Integer<\/td>\n<td width=\"317\">\u521d\u59cb\u5316\u4f2a\u968f\u673a\u6570\u53d1\u751f\u5668<\/td>\n<\/tr>\n<tr>\n<td width=\"156\">Round ( x, n )<\/td>\n<td width=\"163\">Decimal<\/td>\n<td width=\"317\">\u5c06x\u56db\u820d\u4e94\u5165\u5230n\u4f4d<\/td>\n<\/tr>\n<tr>\n<td width=\"156\">Sign ( n )\uf801<\/td>\n<td width=\"163\">Integer(1,-1,0)<\/td>\n<td width=\"317\">\u786e\u5b9an\u662f\u6574\u6570\u3001\u8d1f\u6570\u8fd8\u662f\u96f6<\/td>\n<\/tr>\n<tr>\n<td width=\"156\">Sin ( n )<\/td>\n<td width=\"163\">Double<\/td>\n<td width=\"317\">\u6b63\u5f26\u51fd\u6570<\/td>\n<\/tr>\n<tr>\n<td width=\"156\">Sqrt ( n )<\/td>\n<td width=\"163\">Double<\/td>\n<td width=\"317\">\u8ba1\u7b97n\u7684\u5e73\u65b9\u6839<\/td>\n<\/tr>\n<tr>\n<td width=\"156\">Tan ( n )<\/td>\n<td width=\"163\">Double<\/td>\n<td width=\"317\">\u6b63\u5207\u51fd\u6570<\/td>\n<\/tr>\n<tr>\n<td width=\"156\">Truncate(x,n)<\/td>\n<td width=\"163\">Decima<\/td>\n<td width=\"317\">\u622a\u65ad\u6570\u503c\u5230\u6307\u5b9a\u7684\u5c0f\u6570\u4f4d<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p>\u6574\u7406\u65f6\u95f4\uff1a2019-11-19 10:08:00<\/p>\n<p style=\"text-align: right;\">\u65f6\u95f4\uff1a2019-11-19 10:08:08<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>9.\u5e93\u7ba1\u7406\u51fd\u6570 9.1 LibraryCreate(libraryname {,comments}) \u8fd4\u56de\u503c\uff1a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[39],"tags":[16,5,19],"_links":{"self":[{"href":"http:\/\/www.linux-dba.com\/index.php\/wp-json\/wp\/v2\/posts\/158"}],"collection":[{"href":"http:\/\/www.linux-dba.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.linux-dba.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.linux-dba.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.linux-dba.com\/index.php\/wp-json\/wp\/v2\/comments?post=158"}],"version-history":[{"count":1,"href":"http:\/\/www.linux-dba.com\/index.php\/wp-json\/wp\/v2\/posts\/158\/revisions"}],"predecessor-version":[{"id":282,"href":"http:\/\/www.linux-dba.com\/index.php\/wp-json\/wp\/v2\/posts\/158\/revisions\/282"}],"wp:attachment":[{"href":"http:\/\/www.linux-dba.com\/index.php\/wp-json\/wp\/v2\/media?parent=158"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.linux-dba.com\/index.php\/wp-json\/wp\/v2\/categories?post=158"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.linux-dba.com\/index.php\/wp-json\/wp\/v2\/tags?post=158"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}