﻿{"id":162,"date":"2019-11-19T10:14:52","date_gmt":"2019-11-19T02:14:52","guid":{"rendered":"http:\/\/www.linux-dba.com\/?p=162"},"modified":"2020-07-02T16:00:38","modified_gmt":"2020-07-02T08:00:38","slug":"powerbuilder-%e7%b3%bb%e7%bb%9f%e6%95%b4%e7%90%86%e3%80%90%e7%b3%bb%e7%bb%9f%e4%b8%8e%e7%8e%af%e5%a2%83%e5%87%bd%e6%95%b0%e3%80%81%e5%ae%9a%e6%97%b6%e5%87%bd%e6%95%b0%e3%80%91","status":"publish","type":"post","link":"http:\/\/www.linux-dba.com\/index.php\/2019\/11\/162\/","title":{"rendered":"PowerBuilder \u7cfb\u7edf\u6574\u7406\u3010\u7cfb\u7edf\u4e0e\u73af\u5883\u51fd\u6570\u3001\u5b9a\u65f6\u51fd\u6570\u3011"},"content":{"rendered":"<p><strong>14.<\/strong><strong>\u7cfb\u7edf\u4e0e\u73af\u5883\u51fd\u6570<\/strong><\/p>\n<p><strong>14.1 Clipboard({string})<\/strong><\/p>\n<p>String\uff1a\u53ef\u9009\u9879\uff0c\u6307\u5b9a\u8981\u590d\u5236\u5230\u7cfb\u7edf\u526a\u8d34\u677f\u4e0a\u7684\u6587\u672c\uff0c\u5982\u679c\u526a\u8d34\u677f\u4e0a\u6709\u5185\u5bb9\u5219\u8986\u76d6\u3002<\/p>\n<p>\u8fd4\u56de\u503c\uff1astring\u3002\u6267\u884c\u6210\u529f\u8fd4\u56de\u526a\u8d34\u677f\u4e0a\u5305\u542b\u7684\u6587\u672c\u6570\u636e\uff0c\u5982\u679c\u526a\u8d34\u677f\u5305\u542b\u975e\u6587\u672c\u6570\u636e\u6216\u4e0d\u5305\u542b\u4efb\u4f55\u6570\u636e\uff0c\u51fd\u6570\u8fd4\u56de\u7a7a\u5b57\u7b26\u4e32\uff08\u201c\u201d\uff09\u3002<\/p>\n<p><strong>14.2 CommandParm()<\/strong><\/p>\n<p>\/\/\u5f97\u5230\u5e94\u7528\u7a0b\u5e8f\u8fd0\u884c\u65f6\u6307\u5b9a\u7684\u547d\u4ee4\u53c2\u6570\u3002<\/p>\n<p>\u8fd4\u56de\u503c\uff1astring\u3002\u6267\u884c\u6210\u529f\u8fd4\u56de\u5e94\u7528\u7a0b\u5e8f\u8fd0\u884c\u65f6\u6307\u5b9a\u7684\u547d\u4ee4\u53c2\u6570\uff0c\u9519\u8bef\u6216\u6ca1\u6709\u547d\u4ee4\u884c\u53c2\u6570\u65f6\u8fd4\u56de\u7a7a\u5b57\u7b26\u4e32\uff08\u201c\u201d\uff09\u3002<\/p>\n<p><strong>14.3 DoScript(scrip,result)<\/strong><\/p>\n<p>\/\/\u6267\u884cAppleScript\u7a0b\u5e8f\u6bb5\uff0c\u8be5\u51fd\u6570\u53ea\u5728Macintosh\u5e73\u53f0\u4e0a\u6709\u6548<\/p>\n<p>Script\uff1astring\u7c7b\u578b\uff0c\u6307\u5b9a\u8981\u8fd0\u884c\u7684\u7a0b\u5e8f\u6bb5<\/p>\n<p>Resule\uff1astring\u7c7b\u578b\uff0c\u7531AppleScript\u7a0b\u5e8f\u6bb5\u8fd4\u56de\u7684\u7ed3\u679c\u4fe1\u606f\u6216\u51fa\u9519\u4fe1\u606f<\/p>\n<p>\u8fd4\u56de\u503c\uff1ainteger\u3002\u8fd4\u56de\u7531AppleScript\u8fd4\u56de\u7684\u7ed3\u679c\u4ee3\u7801\u3002<\/p>\n<p><strong>14.4 GetApplication()<\/strong><\/p>\n<p>\/\/\u5f97\u5230\u5f53\u524d\u5e94\u7528\u5bf9\u8c61\u7684\u53e5\u67c4\uff0c\u53ef\u4ee5\u67e5\u8be2\u6216\u8bbe\u7f6e\u5e94\u7528\u5bf9\u8c61\u7684\u5c5e\u6027<\/p>\n<p>\u8fd4\u56de\u503c\uff1aApplication\u3002\u8fd4\u56de\u5e94\u7528\u5bf9\u8c61\u7684\u53e5\u67c4<\/p>\n<p><strong>14.5 GetEnvironment(environmentinfo)<\/strong><\/p>\n<p>\/\/\u5f97\u5230\u64cd\u4f5c\u7cfb\u7edf\u3001\u5904\u7406\u5668\u3001\u5c4f\u5e55\u663e\u793a\u7b49\u4e0e\u7cfb\u7edf\u76f8\u5173\u7684\u4fe1\u606f<\/p>\n<p>Environmentinfo\uff1aenvironment\u5bf9\u8c61\u540d\uff0c\u7528\u4e8e\u4fdd\u5b58\u7cfb\u7edf\u73af\u5883\u4fe1\u606f<\/p>\n<p>\u8fd4\u56de\u503c\uff1ainteger\u3002\u6267\u884c\u6210\u529f\u8fd4\u56de1\uff0c\u9519\u8bef\u8fd4\u56de-1<\/p>\n<p><strong>14.6 GetFocus()<\/strong><\/p>\n<p>\/\/\u786e\u5b9a\u5f53\u524d\u7126\u70b9\u4f4d\u4e8e\u54ea\u4e2a\u63a7\u4ef6\u4e0a<\/p>\n<p><strong>14.7 Post(handle,messageno,word,long)<\/strong><\/p>\n<p>\/\/\u5c06\u6307\u5b9a\u6d88\u606f\u52a0\u5165\u5230\u67d0\u4e2a\u7a97\u53e3\u7684\u6d88\u606f\u961f\u5217\u4e2d\uff0c\u8be5\u7a97\u53e3\u7c7b\u578b\u4e0d\u9650<\/p>\n<p>Handle\uff1along\u7c7b\u578b\uff0c\u6307\u5b9a\u7a97\u53e3\u7684\u7cfb\u7edf\u53e5\u67c4\uff0c\u5c06\u5411\u8be5\u7a97\u53e3\u90ae\u5bc4\u6d88\u606f<\/p>\n<p>Messageno\uff1aUnsignedInteger\u7c7b\u578b\uff0c\u6307\u5b9a\u8981\u90ae\u5bc4\u7684\u6d88\u606f\u53f7<\/p>\n<p>Word\uff1along\u7c7b\u578b\uff0c\u6307\u5b9a\u4e0e\u5c0f\u5fc3\u4e00\u8d77\u90ae\u5bc4\u7684word\u7c7b\u578b\u53c2\u6570<\/p>\n<p>Long\uff1along\u6216string\u7c7b\u578b\uff0c\u6307\u5b9a\u4e0e\u6d88\u606f\u4e00\u8d77\u90ae\u5bc4\u7684long\u578b\u53c2\u6570\u503c\u6216\u5b57\u7b26\u4e32<\/p>\n<p>\u8fd4\u56de\u503c\uff1aboolean\u3002<\/p>\n<p><strong>14.8 ProfileInt(filename,section,key,default)<\/strong><\/p>\n<p>\/\/\u4ece\u521d\u59cb\u5316\u6587\u4ef6\uff08.ini\uff09\u4e2d\u8bfb\u53d6\u6574\u578b\u8bbe\u7f6e\u503c<\/p>\n<p>Section\uff1astring\u7c7b\u578b\uff0c\u6307\u5b9a\u8981\u5f97\u5230\u7684\u503c\u6240\u5728\u7684\u8282<\/p>\n<p>Key\uff1astring\u7c7b\u578b\uff0c\u6307\u5b9a\u8981\u5f97\u5230\u7684\u503c\u7684\u540d\u79f0\uff0c\u4e0d\u533a\u5206\u5927\u5c0f\u5199<\/p>\n<p>Default\uff1ainteger\u7c7b\u578b\uff0c\u5f53\u6307\u5b9a\u7684\u6587\u4ef6\u3001\u8282\u540d\u3001\u9879\u76ee\u4e0d\u5b58\u5728\u6216\u4e0d\u80fd\u8f6c\u6362\u4e3a\u6574\u6570\u65f6\uff0c\u51fd\u6570\u8fd4\u56de\u8be5\u53c2\u6570\u6307\u5b9a\u7684\u503c<\/p>\n<p>\u8fd4\u56de\u503c\uff1ainteger\u3002\u6267\u884c\u6210\u529f\u8fd4\u56de\u76f8\u5e94\u9879\u7684\u503c\uff0c\u53d1\u751f\u9519\u8bef\u8fd4\u56de-1<\/p>\n<p><strong>14.9 ProfileString(filename,section,key,default)<\/strong><\/p>\n<p>\/\/\u4ece\u521d\u59cb\u5316\u6587\u4ef6\uff08.ini\uff09\u4e2d\u8bfb\u53d6\u5b57\u7b26\u4e32\u578b\u8bbe\u7f6e\u503c<\/p>\n<p><strong>14.10 Restart()<\/strong><\/p>\n<p>\/\/\u505c\u6b62\u6240\u6709\u7a0b\u5e8f\u6bb5\u7684\u6267\u884c\u3001\u5173\u95ed\u6240\u6709\u7a97\u53e3\u3001\u63d0\u4ea4\u4e8b\u52a1\u3001\u65ad\u5f00\u4e0e\u6570\u636e\u5e93\u7684\u94fe\u63a5\uff0c\u7136\u540e\u91cd\u65b0\u542f\u52a8\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n<p>\u8fd4\u56de\u503c\uff1aingeger\u3002\u51fd\u6570\u6267\u884c\u6210\u529f\u8fd4\u56de1\uff0c\u9519\u8bef\u8fd4\u56de-1<\/p>\n<p><strong>14.11 Run(string{,windowstate})<\/strong><\/p>\n<p>\/\/\u8fd0\u884c\u6307\u5b9a\u7684\u5e94\u7528\u7a0b\u5e8f<\/p>\n<p>String\uff1a\u6307\u5b9a\u8981\u8fd0\u884c\u5e94\u7528\u7a0b\u5e8f\u7684\u540d\u79f0<\/p>\n<p>Windowstate\uff1a\u8fd0\u884c\u65f6\u7a97\u53e3\u7684\u72b6\u6001\uff1aNormal!(\u7f3a\u7701), Maximized!,Minimized!<\/p>\n<p>\u8fd4\u56de\u503c\uff1aingeger\u3002\u51fd\u6570\u6267\u884c\u6210\u529f\u8fd4\u56de1\uff0c\u9519\u8bef\u8fd4\u56de-1<\/p>\n<p><strong>14.12 Send(handle,messageno,word,long)<\/strong><\/p>\n<p>\/\/\u5411\u7a97\u53e3\u53d1\u9001\u6307\u5b9a\u7684\u6d88\u606f\u5e76\u7acb\u5373\u8bb0\u6027\u76f8\u5e94\u7684\u4e8b\u4ef6\u5904\u7406\u7a0b\u5e8f<\/p>\n<p>\u8fd4\u56de\u503c\uff1along\u3002\u6267\u884c\u6210\u529f\u8fd4\u56deWindows\u7cfb\u7edf\u8c03\u7528sendMessage()\u7684\u8fd4\u56de\u503c\uff0c\u9519\u8bef\u8fd4\u56de-1<\/p>\n<p><strong>14.13 SetProfileString(filename,section,key,value)<\/strong><\/p>\n<p>\/\/\u8bbe\u7f6e\u521d\u59cb\u5316\u6587\u4ef6\u4e2d\u6307\u5b9a\u9879\u7684\u503c\u3002<\/p>\n<p>\u8fd4\u56de\u503c\uff1aingeger\u3002\u51fd\u6570\u6267\u884c\u6210\u529f\u8fd4\u56de1\uff0c\u9519\u8bef\u8fd4\u56de-1<\/p>\n<p><strong>14.14 ShowHelp(helpfile,helpcommand{,typeid})<\/strong><\/p>\n<p>Helpfile\uff1a\u6307\u5b9a\u5e2e\u7ec4\u6587\u4ef6\u7684\u540d\u79f0<\/p>\n<p>Helpcommand\uff1a\u6307\u5b9a\u663e\u793a\u5e2e\u7ec4\u7684\u683c\u5f0f\uff0c\u53d6\u503c\uff1aIndex!-\u663e\u793a\u4e3b\u76ee\u5f55\uff0c\u4e0d\u8981\u6307\u5b9atypeid\u7684\u53c2\u6570\uff1bkeyword!-\u8f6c\u79fb\u5230\u7531\u6307\u5b9a\u5173\u952e\u8bcd\u786e\u5b9a\u7684\u4e3b\u9898\uff1bTopic!-\u663e\u793a\u6307\u5b9a\u4e3b\u9898\u7684\u5e2e\u7ec4<\/p>\n<p>\u8fd4\u56de\u503c\uff1aingeger\u3002\u51fd\u6570\u6267\u884c\u6210\u529f\u8fd4\u56de1\uff0c\u9519\u8bef\u8fd4\u56de-1<\/p>\n<p><strong>14.15 SingnalError({number},{text})<\/strong><\/p>\n<p>\/\/\u89e6\u53d1\u5e94\u7528\u5bf9\u8c61\u7684SystemError\u4e8b\u4ef6\uff0c\u901a\u5e38\u7528\u4e8e\u4ee3\u7801\u8c03\u8bd5<\/p>\n<p>Number\uff1ainteger.\u4fdd\u5b58\u5230Error\u5bf9\u8c61\u7684number\u5c5e\u6027\u4e2d<\/p>\n<p>Text\uff1astring.\u4fdd\u5b58\u5230Error\u5bf9\u8c61\u7684Text\u5c5e\u6027\u4e2d<\/p>\n<p>\u8fd4\u56de\u503c\uff1aingeger\u3002\u51fd\u6570\u6267\u884c\u6210\u529f\u8fd4\u56de1\uff0c\u9519\u8bef\u8fd4\u56de-1<\/p>\n<p><strong>14.16 Yield()<\/strong><\/p>\n<p>\/\/\u5c06\u63a7\u5236\u6743\u8f6c\u79fb\u4e2a\u5176\u5b83\u56fe\u5f62\u5bf9\u8c61<\/p>\n<p>\u8fd4\u56de\u503c\uff1aboolean.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>15.<\/strong><strong>\u5b9a\u65f6\u51fd\u6570<\/strong><\/p>\n<p><strong>15.1 Cpu()<\/strong><\/p>\n<p>\u8fd4\u56de\u503c\uff1along\u3002\u8fd4\u56de\u5f53\u524d\u5e94\u7528\u7a0b\u5e8f\u542f\u52a8\u540e\u5f00\u59cbCpu\u6d88\u8017\u7684\u65f6\u95f4\uff0c\u4ee5\u6beb\u79d2\u4e3a\u5355\u4f4d<\/p>\n<p><strong>15.2 Idle(n)<\/strong><\/p>\n<p>N:\u6307\u5b9a\u7a7a\u95f2\u65f6\u95f4\u95f4\u9694\uff0c\u4ee5\u79d2\u4e3a\u5355\u4f4d\u3002\u8be5\u53c2\u6570\u8bbe\u7f6e\u4e3a0\u65f6\uff0c\u505c\u6b62\u7a7a\u95f2\u68c0\u6d4b\uff0c\u4e0d\u518d\u89e6\u53d1\u5bf9\u8c61\u7684Idle\u65f6\u4e8b\u4ef6<\/p>\n<p>\u8fd4\u56de\u503c:ingeger\u3002\u6267\u884c\u6210\u529f\u8fd4\u56de1\uff0c\u6b64\u65f6\u542f\u52a8\u5b9a\u65f6\u5668\uff1b\u5b9a\u65f6\u5668\u672a\u542f\u52a8\uff0c\u8fd4\u56de-1<\/p>\n<p><strong>15.3 Timer(interval{,windowname})<\/strong><\/p>\n<p>Interval:\u6307\u5b9a\u4e24\u6b21\u89e6\u53d1Timer\u4e8b\u4ef6\u4e4b\u95f4\u7684\u65f6\u95f4\u95f4\u9694\uff0c\u6709\u6548\u503c\u662f0-65\uff1b\u5f53\u8be5\u53c2\u6570\u4e3a0\u65f6\uff0c\u5173\u95ed\u5b9a\u65f6\u5668<\/p>\n<p>Windowname:\u7a97\u53e3\u540d\uff0c\u8981\u89e6\u53d1Timer\u4e8b\u4ef6\u7684\u7a97\u53e3\uff0c\u7f3a\u7701\u4e3a\u5f53\u524d\u7a97\u53e3<\/p>\n<p>\u8fd4\u56de\u503c\uff1aInteger\u3002\u6267\u884c\u6210\u529f\u8fd4\u56de1\uff0c\u9519\u8bef\u8fd4\u56de-1\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u6574\u7406\u65f6\u95f4\uff1a2019-11-19 10:14:00<\/p>\n<p style=\"text-align: right;\">\u65f6\u95f4\uff1a2019-11-19 10:14:00<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>14.\u7cfb\u7edf\u4e0e\u73af\u5883\u51fd\u6570 14.1 Clipboard({string}) String\uff1a\u53ef\u9009\u9879\uff0c\u6307\u5b9a\u8981\u590d\u5236\u5230\u7cfb\u7edf [&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\/162"}],"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=162"}],"version-history":[{"count":1,"href":"http:\/\/www.linux-dba.com\/index.php\/wp-json\/wp\/v2\/posts\/162\/revisions"}],"predecessor-version":[{"id":280,"href":"http:\/\/www.linux-dba.com\/index.php\/wp-json\/wp\/v2\/posts\/162\/revisions\/280"}],"wp:attachment":[{"href":"http:\/\/www.linux-dba.com\/index.php\/wp-json\/wp\/v2\/media?parent=162"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.linux-dba.com\/index.php\/wp-json\/wp\/v2\/categories?post=162"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.linux-dba.com\/index.php\/wp-json\/wp\/v2\/tags?post=162"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}