﻿{"id":165,"date":"2019-11-19T10:17:43","date_gmt":"2019-11-19T02:17:43","guid":{"rendered":"http:\/\/www.linux-dba.com\/?p=165"},"modified":"2020-07-02T16:00:20","modified_gmt":"2020-07-02T08:00:20","slug":"powerbuilder-%e7%b3%bb%e7%bb%9f%e6%95%b4%e7%90%86%e3%80%90%e7%aa%97%e5%8f%a3%e6%93%8d%e4%bd%9c%e5%87%bd%e6%95%b0%e3%80%81%e5%85%b6%e5%ae%83%e5%87%bd%e6%95%b0%e3%80%91","status":"publish","type":"post","link":"http:\/\/www.linux-dba.com\/index.php\/2019\/11\/165\/","title":{"rendered":"PowerBuilder \u7cfb\u7edf\u6574\u7406\u3010\u7a97\u53e3\u64cd\u4f5c\u51fd\u6570\u3001\u5176\u5b83\u51fd\u6570\u3011"},"content":{"rendered":"<p><strong>16.<\/strong><strong>\u7a97\u53e3\u64cd\u4f5c\u51fd\u6570<\/strong><\/p>\n<p><strong>16.1 Close(windowname)<\/strong><\/p>\n<p>\u8fd4\u56de\u503c\uff1aInteger\u3002\u6267\u884c\u6210\u529f\u8fd4\u56de1\uff0c\u9519\u8bef\u8fd4\u56de-1\u3002<\/p>\n<p><strong>16.2 CloseWithReturn(windowname,returnvalue)<\/strong><\/p>\n<p>Returnvalue\uff1a\u5173\u95ed\u7a97\u53e3\u65f6\u4fdd\u5b58\u5230Message\u5bf9\u8c61\u4e2d\u7684\u503c\uff0c\u53ea\u80fd\u662fstring\u3001numeric\u3001powerobject\u4e2d\u7684\u4e00\u79cd\u7c7b\u578b<\/p>\n<p>\u8fd4\u56de\u503c\uff1aInteger\u3002\u6267\u884c\u6210\u529f\u8fd4\u56de1\uff0c\u9519\u8bef\u8fd4\u56de-1\u3002<\/p>\n<p><strong>16.3 Open()<\/strong><\/p>\n<p><strong>Open(window{,parent})<\/strong><\/p>\n<p>\/\/\u6253\u5f00\u7f16\u7a0b\u65f6\u5df2\u77e5\u6570\u636e\u7c7b\u578b\u7684\u7a97\u53e3\u5bf9\u8c61<\/p>\n<p><strong>Open(windowvar,windowtype{,parent})<\/strong><\/p>\n<p>\/\/\u6253\u5f00\u7a0b\u5e8f\u8fd0\u884c\u540e\u624d\u80fd\u786e\u5b9a\u6570\u636e\u7c7b\u578b\u7684\u7a97\u53e3\u5bf9\u8c61<\/p>\n<p>\u8fd4\u56de\u503c\uff1aInteger\u3002\u6267\u884c\u6210\u529f\u8fd4\u56de1\uff0c\u9519\u8bef\u8fd4\u56de-1\u3002<\/p>\n<p><strong>16.4 OpenSheet(sheet{,wintype},midframe{,position{,arrangeopen }})<\/strong><\/p>\n<p>Arrangeopen\uff1acascaded!\uff1bOriginal!\uff1bLayered!<\/p>\n<p>\u8fd4\u56de\u503c\uff1aInteger\u3002\u6267\u884c\u6210\u529f\u8fd4\u56de1\uff0c\u9519\u8bef\u8fd4\u56de-1\u3002\u5728MDI\u6846\u67b6\u7a97\u53e3\u4e2d\u6253\u5f00MDI\u5b50\u7a97\u53e3<\/p>\n<p><strong>16.5 OpenSheetWithParm(sheet,parameter{,wintype},mdiframe{,position{,arrangeopen}})<\/strong><\/p>\n<p>Parameter\uff1a\u6307\u5b9a\u8981\u4f20\u9012\u7ed9\u6253\u5f00\u5de5\u4f5c\u8868\u7684\u6570\u636e\uff0c\u8be5\u6570\u636e\u4fdd\u5b58\u5728Message\u5bf9\u8c61\u7684\u5c5e\u6027\u4e2d<\/p>\n<p>\u8fd4\u56de\u503c\uff1aInteger\u3002\u6267\u884c\u6210\u529f\u8fd4\u56de1\uff0c\u9519\u8bef\u8fd4\u56de-1\u3002<\/p>\n<p><strong>16.6 OpenWithParm(window,parameter{,parent})<\/strong><\/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><strong>17.<\/strong><strong>\u5176\u5b83\u51fd\u6570<\/strong><\/p>\n<p><strong>17.1 beep(n)<\/strong><\/p>\n<p>\u8fd4\u56de\u503c\uff1ainteger\u3002\u6267\u884c\u6210\u529f\u8fd4\u56de1\uff0c\u9519\u8bef\u8fd4\u56de-1\u3002\u5982\u679cn\u5927\u4e8e10\uff0c\u90a3\u4e48\u8ba1\u7b97\u5668\u53ea\u54cd\u94c310\u6b21<\/p>\n<p><strong>17.2 ClassName(variable)<\/strong><\/p>\n<p>Variable:\u6307\u5b9a\u8981\u786e\u5b9a\u5176\u6570\u636e\u7c7b\u578b\u7684\u53d8\u91cf<\/p>\n<p>\u8fd4\u56de\u503c\uff1astring\u3002\u6267\u884c\u6210\u529f\u8fd4\u56de\u6307\u5b9a\u53d8\u91cf\u7684\u6570\u636e\u7c7b\u578b\uff0c\u9519\u8bef\u65f6\u8fd4\u56de\u7a7a\u5b57\u7b26\u4e32\u3002<\/p>\n<p><strong>17.3 DebugBreak()<\/strong><\/p>\n<p>\u8fd4\u56de\u503c\uff1a\u65e0\u3002\u5982\u679c\u5e0c\u671b\u6267\u884c\u67d0\u6761\u8bed\u53e5\u540e\u6682\u505c\u5e76\u8fdb\u5165\u8c03\u8bd5\u6a21\u5f0f\uff0c\u53ef\u4ee5\u5728\u8be5\u8bed\u53e5\u540e\u9762\u653e\u4e0aDebugBreak()\u51fd\u6570\u3002<\/p>\n<p><strong>17.4 IntHigh(long)<\/strong><\/p>\n<p>Long:long\u578b\u503c\u6216\u53d8\u91cf\u3002<\/p>\n<p>\u8fd4\u56de\u503c\uff1ainteger\u3002\u6267\u884c\u6210\u529f\u8fd4\u56delong\u7684\u9ad8\u4f4d\u5b50\uff0c\u9519\u8bef\u8fd4\u56de-1\u3002\u901a\u5e38\u7528\u4e8e\u5206\u89e3\u5916\u90e8C\u6216C++\u8bed\u8a00\u51fd\u6570\u7684\u8fd4\u56de\u503c\u548cWindows\u6d88\u606f\u3002<\/p>\n<p><strong>17.5 IntLow(long)<\/strong><\/p>\n<p>\u8fd4\u56de\u503c\uff1ainteger\u3002\u6267\u884c\u6210\u529f\u8fd4\u56delong\u7684\u9ad8\u4f4d\u5b50\uff0c\u9519\u8bef\u8fd4\u56de-1\u3002<\/p>\n<p><strong>17.6 IsValid(objectname)<\/strong><\/p>\n<p>Objectname\uff1a\u8981\u68c0\u67e5\u7684\u5bf9\u8c61\u540d\u79f0<\/p>\n<p>\u8fd4\u56de\u503c\uff1aboolean\u3002\u68c0\u67e5\u5bf9\u8c61\u53d8\u91cf\u662f\u5426\u5b9e\u4f8b\u5316\u3002<\/p>\n<p><strong>17.7 KeyDown(keycode)<\/strong><\/p>\n<p>Keycode:keycode\u679a\u4e3e\u7c7b\u578b\u6216integer\u7c7b\u578b\uff0c\u5982keyA!\u7b49<\/p>\n<p>\u8fd4\u56de\u503c\uff1aboolean\u3002\u68c0\u67e5\u7528\u6237\u662f\u5426\u6309\u4e86\u952e\u76d8\u4e0a\u6307\u5b9a\u7684\u952e\u3002<\/p>\n<p><strong>17.8 MessageBox(title,text{,icon{,button}})<\/strong><\/p>\n<p>Icon\uff1aInformation!\uff1bQuestion!\uff1bExclamation!\uff1bStopSign!\uff1bNone!<\/p>\n<p>Button\uff1aOK!\uff1bOKCancel!\uff1bYesNo!\uff1bYesNoCancel!\uff1bRetryCancel!\uff1bAbortRetryIgnore!<\/p>\n<p>\u8fd4\u56de\u503c\uff1ainteger\u3002\u6267\u884c\u6210\u529f\u8fd4\u56de\u6309\u94ae\u503c\uff0c\u9519\u8bef\u8fd4\u56de-1<\/p>\n<p><strong>17.9 PixelsToUnits(pixels,type)<\/strong><\/p>\n<p>Pixels\uff1ainteger\u7c7b\u578b\u3002\u6307\u5b9a\u8981\u8f6c\u6362\u4e3aPB\u5355\u4f4d\u7684\u8c61\u7d20\u6570<\/p>\n<p>Type\uff1a\u6309\u90a3\u4e2a\u65b9\u5411\u8f6c\u6362\uff0cXPixelsToUnits!\u548cYPixelsToUnits!<\/p>\n<p>\u8fd4\u56de\u503c\uff1ainteger\u3002<\/p>\n<p><strong>17.10 UnitsToPixels(units,type)<\/strong><\/p>\n<p>\/\/\u4e0ePixelsToUnits(pixels,type)\u76f8\u53cd<\/p>\n<p><strong>17.11 PopulateError(number,text)<\/strong><\/p>\n<p>Number\uff1a\u4fdd\u5b58\u5230Error\u5bf9\u8c61number\u5c5e\u6027\u4e2d\u7684\u503c<\/p>\n<p>Text\uff1a\u4fdd\u5b58\u5230Error\u5bf9\u8c61text\u5c5e\u6027\u4e2d\u7684\u503c<\/p>\n<p>\u8fd4\u56de\u503c\uff1ainteger\u3002\u6267\u884c\u6210\u529f\u8fd4\u56de1\uff0c\u9519\u8bef\u8fd4\u56de-1<\/p>\n<p><strong>17.12 RGB(red,green,blue)<\/strong><\/p>\n<p>\u8fd4\u56de\u503c\uff1along\u3002<\/p>\n<p><strong>17.13 SetNull(anyvariable)<\/strong><\/p>\n<p>Anyvariable\uff1a\u4e0d\u53ef\u4ee5\u662f\u6570\u7ec4\u3001\u7ed3\u6784\u3001\u81ea\u52a8\u5b9e\u4f8b\u5316\u5bf9\u8c61<\/p>\n<p>\u8fd4\u56de\u503c\uff1ainteger\u3002\u6267\u884c\u6210\u529f\u8fd4\u56de1\uff0c\u9519\u8bef\u8fd4\u56de-1<\/p>\n<p><strong>17.14 SetPointer(type)<\/strong><\/p>\n<p>Type\uff1aArrow!\u3001Cross!\u3001Beam!\u3001HourGlass!\u3001SizeNs!\u3001SizeNESW!\u3001SizeWE!\u3001SizeNWSE!\u3001UpArrow!<\/p>\n<p>\u8fd4\u56de\u503c\uff1aPointer\u3002\u8fd4\u56de\u66f4\u6362\u524d\u9f20\u6807\u7684\u6307\u9488\u3002<\/p>\n<p><strong>17.15 SignalError({number},{text})<\/strong><\/p>\n<p>\u8fd4\u56de\u503c\uff1ainteger\u3002\u6267\u884c\u6210\u529f\u8fd4\u56de1\uff0c\u9519\u8bef\u8fd4\u56de-1\u3002\u4ee5\u7f16\u7a0b\u7684\u65b9\u5f0f\u89e6\u53d1\u5e94\u7528\u5bf9\u8c61SystemError\u4e8b\u4ef6\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u6574\u7406\u65f6\u95f4\uff1a2019-11-19 10:15:00<\/p>\n<p style=\"text-align: right;\">\u65f6\u95f4\uff1a2019-11-19 10:16:00<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>16.\u7a97\u53e3\u64cd\u4f5c\u51fd\u6570 16.1 Close(windowname) \u8fd4\u56de\u503c\uff1aInteger\u3002\u6267\u884c\u6210\u529f\u8fd4\u56de1\uff0c\u9519\u8bef [&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\/165"}],"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=165"}],"version-history":[{"count":1,"href":"http:\/\/www.linux-dba.com\/index.php\/wp-json\/wp\/v2\/posts\/165\/revisions"}],"predecessor-version":[{"id":279,"href":"http:\/\/www.linux-dba.com\/index.php\/wp-json\/wp\/v2\/posts\/165\/revisions\/279"}],"wp:attachment":[{"href":"http:\/\/www.linux-dba.com\/index.php\/wp-json\/wp\/v2\/media?parent=165"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.linux-dba.com\/index.php\/wp-json\/wp\/v2\/categories?post=165"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.linux-dba.com\/index.php\/wp-json\/wp\/v2\/tags?post=165"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}