﻿{"id":160,"date":"2019-11-19T10:12:28","date_gmt":"2019-11-19T02:12:28","guid":{"rendered":"http:\/\/www.linux-dba.com\/?p=160"},"modified":"2020-07-02T16:02:16","modified_gmt":"2020-07-02T08:02:16","slug":"powerbuilder-%e7%b3%bb%e7%bb%9f%e6%95%b4%e7%90%86%e3%80%90%e6%b3%a8%e5%86%8c%ef%bc%88registry%ef%bc%89%e5%87%bd%e6%95%b0%e3%80%81%e5%ad%97%e7%ac%a6%e4%b8%b2%e6%93%8d%e4%bd%9c%e5%87%bd%e6%95%b0","status":"publish","type":"post","link":"http:\/\/www.linux-dba.com\/index.php\/2019\/11\/160\/","title":{"rendered":"PowerBuilder \u7cfb\u7edf\u6574\u7406\u3010\u6ce8\u518c\uff08Registry\uff09\u51fd\u6570\u3001\u5b57\u7b26\u4e32\u64cd\u4f5c\u51fd\u6570\u3011"},"content":{"rendered":"<p><strong>12.<\/strong><strong>\u6ce8\u518c\uff08Registry\uff09\u51fd\u6570<\/strong><\/p>\n<p><strong>12.1 RegistryDelect(key,valuename)<\/strong><\/p>\n<p>\/\/\u5220\u9664\u6ce8\u518c\u5e93\u4e2d\u7684\u4e00\u4e2a\u952e\u6216\u952e\u7684\u67d0\u4e2a\u503c\u3002<\/p>\n<p>Key: string\u7c7b\u578b\uff0c\u6307\u5b9a\u952e\u540d\uff0c\u5404\u952e\u4e4b\u95f4\u7528\u53cd\u659c\u6760\u5206\u9694<\/p>\n<p>Valuename: string\u7c7b\u578b,\u6307\u5b9a\u8981\u5220\u9664\u7684\u503c\u7684\u540d\u79f0\uff1b\u8be5\u503c\u4e3a\u7a7a\u65f6\u5220\u9664\u8be5\u952e\u53ca\u5176\u4e0b\u7684\u6240\u6709\u5b50\u952e\u3002<\/p>\n<p>\u8fd4\u56de\u503c\uff1aInteger\u3002\u6267\u884c\u6210\u529f\u8fd4\u56de1\uff0c\u9519\u8bef\u8fd4\u56de-1<\/p>\n<p><strong>12.2 RegistryGet(key,valuename,valuetype,valuevariable)<\/strong><\/p>\n<p>\/\/\u4ece\u7cfb\u7edf\u6ce8\u518c\u5e93\u4e2d\u5f97\u5230\u6307\u5b9a\u952e\u7684\u503c\u3002<\/p>\n<p>Valuetype\uff1aRegString!&nbsp; \u4ee5\u7a7a\u5b57\u7b26\u7ed3\u675f\u7684\u5b57\u7b26\u4e32;<\/p>\n<p>RegExpandString!&nbsp; \u4ee5\u7a7a\u5b57\u7b26\u7ed3\u675f\u7684\u5b57\u7b26\u4e32\u5176\u4e2d\u5305\u62ec\u4e86\u5bf9\u73af\u5883\u53d8\u91cf\u7684\u975e\u6269\u5c55\u5e94\u7528;<\/p>\n<p>RegBinary!&nbsp; \u4e8c\u8fdb\u5236\u6570\u636e<\/p>\n<p>ReguLong!&nbsp; 32\u4f4d\u6570\u636e<\/p>\n<p>ReguLongBigEndian!&nbsp; 32\u4f4d\u5927\u6570\u636e<\/p>\n<p>RegLink!&nbsp; Unicode\u5b57\u7b26\u4e32<\/p>\n<p>RegMultiString!&nbsp; \u52a8\u6001\u5b57\u7b26\u4e32\u6570\u7ec4<\/p>\n<p>Valuevariable\uff1a\u7528\u4e8e\u4fdd\u5b58\u952e\u503c\u7684\u53d8\u91cf\uff0c\u5176\u6570\u636e\u7c7b\u578b\u8981\u4e0evaluetype\u53c2\u6570\u6307\u5b9a\u7684\u7c7b\u578b\u76f8\u5339\u914d<\/p>\n<p>\u8fd4\u56de\u503c\uff1ainteger\u3002\u6267\u884c\u6210\u529f\u8fd4\u56de1\uff0c\u9519\u8bef\u8fd4\u56de-1<\/p>\n<p><strong>12.3 RegistryKeys(key,subkeys)<\/strong><\/p>\n<p>\/\/\u4ece\u7cfb\u7edf\u6ce8\u518c\u5e93\u4e2d\u5f97\u5230\u6307\u5b9a\u952e\u7684\u6709\u6548\u5b50\u952e\u3002<\/p>\n<p>Subkeys:\u5b57\u7b26\u4e32\u6570\u7ec4\u53d8\u91cf\uff0c\u7528\u4e8e\u4fdd\u5b58\u5404\u5b50\u952e<\/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>12.4 RegistrySet(key,valuename,valuetype,value)<\/strong><\/p>\n<p>\/\/\u5728\u7cfb\u7edf\u6ce8\u518c\u5e93\u4e2d\u8bbe\u7f6e\u6216\u521b\u5efa\u6307\u5b9a\u52a0\u3002<\/p>\n<p>Valuetype:\u540c\u4e0a<\/p>\n<p>Value:\u8981\u8bbe\u7f6e\u7684\u503c\uff0c\u5176\u6570\u636e\u7c7b\u578b\u8981\u4e0evaluetype\u6307\u5b9a\u7684\u7c7b\u578b\u76f8\u5339\u914d\u3002<\/p>\n<p>\u8fd4\u56de\u503c\uff1ainteger\u3002\u6267\u884c\u6210\u529f\u8fd4\u56de1\uff0c\u9519\u8bef\u8fd4\u56de-1<\/p>\n<p><strong>12.5 RegistryValues(key,valuename)<\/strong><\/p>\n<p>\/\/\u7528\u4e8e\u5f97\u5230\u4e0e\u6307\u5b9a\u952e\u76f8\u5173\u7684\u4e00\u7ec4\u503c\u540d\u3002<\/p>\n<p>Valuename:\u5b57\u7b26\u4e32\u6570\u7ec4\u53d8\u91cf\uff0c\u7528\u4e8e\u4fdd\u5b58\u503c\u540d<\/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>13.<\/strong><strong>\u5b57\u7b26\u4e32\u64cd\u4f5c\u51fd\u6570<\/strong><\/p>\n<table width=\"636\">\n<tbody>\n<tr>\n<td width=\"180\">\u51fd\u6570<\/td>\n<td width=\"84\">\u8fd4\u56de\u503c<\/td>\n<td width=\"372\">\u529f\u80fd<\/td>\n<\/tr>\n<tr>\n<td width=\"180\">Asc(string)<\/td>\n<td width=\"84\">Integer<\/td>\n<td width=\"372\">\u5f97\u5230str\u7b2c\u4e00\u4e2a\u5b57\u7b26\u7684ASCII\u5417\u6574\u6570\u503c<\/td>\n<\/tr>\n<tr>\n<td width=\"180\">Char(n)<\/td>\n<td width=\"84\">Char<\/td>\n<td width=\"372\">\u628astr\u7b2c\u4e00\u4e2a\u5b57\u7b26\u6216\u628a\u6574\u6570\u8f6c\u6362\u6210\u5b57\u7b26<\/td>\n<\/tr>\n<tr>\n<td width=\"180\">Fill(chars,n)<\/td>\n<td width=\"84\">String<\/td>\n<td width=\"372\">\u5efa\u7acb\u4e00\u4e2a\u7531\u6307\u5b9a\u5b57\u7b26\u4e32\u586b\u5145\u7684\u5b9a\u957f\u5b57\u7b26\u4e32<\/td>\n<\/tr>\n<tr>\n<td width=\"180\">Left(string,n)<\/td>\n<td width=\"84\">String<\/td>\n<td width=\"372\">\u5f97\u5230str\u5de6\u90e8\u6307\u5b9a\u4e2a\u5b57\u7b26<\/td>\n<\/tr>\n<tr>\n<td width=\"180\">LeftTrim(string)<\/td>\n<td width=\"84\">String<\/td>\n<td width=\"372\">\u5220\u9664\u5b57\u7b26\u4e32\u5de6\u90e8\u7684\u7a7a\u683c<\/td>\n<\/tr>\n<tr>\n<td width=\"180\">Len(stringorblob)<\/td>\n<td width=\"84\">Long<\/td>\n<td width=\"372\">\u8fd4\u56de\u5b57\u7b26\u4e32\u7684\u957f\u5ea6<\/td>\n<\/tr>\n<tr>\n<td width=\"180\">Lower(string)<\/td>\n<td width=\"84\">String<\/td>\n<td width=\"372\">\u5927\u5199\u5b57\u6bcd\u8f6c\u6362\u6210\u5c0f\u5199<\/td>\n<\/tr>\n<tr>\n<td width=\"180\">Match(string,textpattern)<\/td>\n<td width=\"84\">Boolean<\/td>\n<td width=\"372\">\u786e\u5b9a\u5b57\u7b26\u4e32\u4e2d\u662f\u5426\u5305\u542b\u6307\u5b9a\u6a21\u5f0f\u7684\u5b57\u7b26<\/td>\n<\/tr>\n<tr>\n<td width=\"180\">Mid(string,start{,length})<\/td>\n<td width=\"84\">String<\/td>\n<td width=\"372\">\u53d6\u5b57\u7b26\u4e32\u7684\u5b50\u4e32<\/td>\n<\/tr>\n<tr>\n<td width=\"180\">Pos(string1,string2{,start})<\/td>\n<td width=\"84\">Long<\/td>\n<td width=\"372\">\u5728str1\u4e2d\u67e5\u627estr2\u7684\u8d77\u59cb\u4f4d\u7f6e<\/td>\n<\/tr>\n<tr>\n<td width=\"180\">Right(string,n)<\/td>\n<td width=\"84\">String<\/td>\n<td width=\"372\">\u4ecestr\u5c3e\u90e8\u53d6\u6307\u5b9a\u4e2a\u5b57\u7b26<\/td>\n<\/tr>\n<tr>\n<td width=\"180\">RightTrim(string)<\/td>\n<td width=\"84\">String<\/td>\n<td width=\"372\">\u5220\u9664\u5b57\u7b26\u4e32\u5c3e\u90e8\u7684\u7a7a\u683c<\/td>\n<\/tr>\n<tr>\n<td width=\"180\">Space(n)<\/td>\n<td width=\"84\">String<\/td>\n<td width=\"372\">\u751f\u6210\u4e00\u4e2a\u6709\u7a7a\u683c\u7ec4\u6210\u7684\u5b9a\u957f\u5b57\u7b26\u4e32<\/td>\n<\/tr>\n<tr>\n<td width=\"180\">Trim(string)<\/td>\n<td width=\"84\">String<\/td>\n<td width=\"372\">\u5220\u9664str\u4e24\u8fb9\u7684\u7a7a\u683c<\/td>\n<\/tr>\n<tr>\n<td width=\"180\">Upper(string)<\/td>\n<td width=\"84\">String<\/td>\n<td width=\"372\">\u5c06\u5c0f\u5199\u5b57\u6bcd\u8f6c\u6362\u6210\u5927\u5199\u5b57\u6bcd<\/td>\n<\/tr>\n<tr>\n<td width=\"180\">Replace(str1,start,n,str2)<\/td>\n<td width=\"84\">String<\/td>\n<td width=\"372\">\u7528str2\u66ff\u6362str1\u4e2d\u4ecestart\u5f00\u59cb\u7684n\u4e2a\u5b57\u7b26<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>\u6574\u7406\u65f6\u95f4\uff1a2019-11-19 10:11:00<\/p>\n<p style=\"text-align: right;\">\u65f6\u95f4\uff1a2019-11-19 10:11:00<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>12.\u6ce8\u518c\uff08Registry\uff09\u51fd\u6570 12.1 RegistryDelect(key,valuename) \/\/ [&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\/160"}],"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=160"}],"version-history":[{"count":1,"href":"http:\/\/www.linux-dba.com\/index.php\/wp-json\/wp\/v2\/posts\/160\/revisions"}],"predecessor-version":[{"id":281,"href":"http:\/\/www.linux-dba.com\/index.php\/wp-json\/wp\/v2\/posts\/160\/revisions\/281"}],"wp:attachment":[{"href":"http:\/\/www.linux-dba.com\/index.php\/wp-json\/wp\/v2\/media?parent=160"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.linux-dba.com\/index.php\/wp-json\/wp\/v2\/categories?post=160"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.linux-dba.com\/index.php\/wp-json\/wp\/v2\/tags?post=160"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}