﻿{"id":156,"date":"2019-11-19T10:05:22","date_gmt":"2019-11-19T02:05:22","guid":{"rendered":"http:\/\/www.linux-dba.com\/?p=156"},"modified":"2020-07-02T16:07:05","modified_gmt":"2020-07-02T08:07:05","slug":"powerbuilder-%e7%b3%bb%e7%bb%9f%e5%87%bd%e6%95%b0%e3%80%90%e6%96%87%e4%bb%b6%e5%87%bd%e6%95%b0%e3%80%81%e5%9b%bd%e9%99%85%e5%8c%96%e5%87%bd%e6%95%b0%e3%80%91","status":"publish","type":"post","link":"http:\/\/www.linux-dba.com\/index.php\/2019\/11\/156\/","title":{"rendered":"PowerBuilder \u7cfb\u7edf\u51fd\u6570\u3010\u6587\u4ef6\u51fd\u6570\u3001\u56fd\u9645\u5316\u51fd\u6570\u3011"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p><strong>7.<\/strong><strong>\u6587\u4ef6\u64cd\u4f5c\u51fd\u6570<\/strong><\/p>\n<p><strong>7.1 GetFileOpenName(title,pathname,filename{,extention{,filter}})<\/strong><\/p>\n<p>\u8fd4\u56de\u503c\uff1aInteger\u3002\u6267\u884c\u6210\u529f\u8fd4\u56de1\uff0c\u9519\u8bef\u8fd4\u56de-1<\/p>\n<p><strong>7.2 FileLength(filename)<\/strong><\/p>\n<p>Filename\uff1astring\u7c7b\u578b\uff0c\u8981\u5f97\u5230\u6587\u4ef6\u957f\u5ea6\u7684\u6587\u4ef6\u540d\uff0c\u53ef\u4ee5\u5305\u542b\u8def\u5f84<\/p>\n<p>\u8fd4\u56de\u503c\uff1along\u3002\u6267\u884c\u6210\u529f\u8fd4\u56de\u6307\u5b9a\u6587\u4ef6\u957f\u5ea6\uff0c\u6587\u4ef6\u4e0d\u5b58\u5728\u8fd4\u56de-1<\/p>\n<p><strong>7.3 FileOpen(filename{,filemode{,fileaccess{,filelock{,writemode}}}})<\/strong><\/p>\n<p>Filename\uff1astring\u7c7b\u578b\uff0c\u8981\u6253\u5f00\u6587\u4ef6\u7684\u6587\u4ef6\u540d\uff0c\u53ef\u4ee5\u5305\u542b\u8def\u5f84<\/p>\n<p>Filemode\uff1aLineMode!(\u7f3a\u7701)\u6216StreamMode!<\/p>\n<p>Fileaccess\uff1aread! (\u7f3a\u7701)\u6216write!<\/p>\n<p>Filelock\uff1aLockReadWrite! (\u7f3a\u7701);LockRead!;Shared!<\/p>\n<p>WriteMode\uff1aAppend! (\u7f3a\u7701);Replace!<\/p>\n<p>\u8fd4\u56de\u503c\uff1ainteger.\u53d1\u751f\u9519\u8bef\u8fd4\u56de-1\u3002\u5f53\u6587\u4ef6\u4e0d\u5b58\u5728\u65f6\uff0c\u51fd\u6570\u521b\u5efa\u8be5\u6587\u4ef6<\/p>\n<p><strong>7.4 FileRead(fileno,variable)<\/strong><\/p>\n<p>Fileno\uff1ainteger\u7c7b\u578b\uff0c\u7531FileOpen()\u51fd\u6570\u5f97\u5230<\/p>\n<p>Variable\uff1astring\u6216blob\u7c7b\u578b\uff0c\u4fdd\u5b58\u8bfb\u53d6\u7684\u6570\u636e<\/p>\n<p>\u8fd4\u56de\u503c\uff1ainteger.<\/p>\n<p><strong>7.5 FileClose(fileno)<\/strong><\/p>\n<p>Fileno\uff1ainteger\u7c7b\u578b\uff0c\u7531FileOpen()\u51fd\u6570\u5f97\u5230<\/p>\n<p>\u8fd4\u56de\u503c\uff1ainteger.\u6267\u884c\u6210\u529f\u8fd4\u56de1\uff0c\u53d1\u751f\u9519\u8bef\u8fd4\u56de-1,<\/p>\n<p><strong>7.6 FileDelete(filename)<\/strong><\/p>\n<p>Filename\uff1astring\u7c7b\u578b\uff0c\u6307\u5b9a\u8981\u5220\u9664\u6587\u4ef6\u7684\u6587\u4ef6\u540d\uff0c\u53ef\u4ee5\u5305\u542b\u8def\u5f84<\/p>\n<p>\u8fd4\u56de\u503c\uff1aboolean.<\/p>\n<p><strong>7.7 FileWrite(fileno,variable)<\/strong><\/p>\n<p>\u8fd4\u56de\u503c\uff1ainteger.\u8be5\u51fd\u6570\u4e00\u6b21\u53ea\u53ef\u4ee5\u5199\u516532765\u4e2a\u5b57\u8282<\/p>\n<p><strong>7.8 GetFileSaveName(title,pathname,filename{,extention{,filter}})<\/strong><\/p>\n<p>\u8fd4\u56de\u503c\uff1ainteger\u3002<\/p>\n<p><strong>7.9 FileExists(filename)<\/strong><\/p>\n<p>Filename\uff1astring\u7c7b\u578b\uff0c\u8981\u68c0\u67e5\u6587\u4ef6\u5b58\u5728\u6027\u7684\u6587\u4ef6\u540d\uff0c\u53ef\u4ee5\u5305\u542b\u8def\u5f84<\/p>\n<p>\u8fd4\u56de\u503c\uff1aboolean.<\/p>\n<p><strong>7.10 FileSeek(fileno,position,origin)<\/strong><\/p>\n<p>Position\uff1along\u7c7b\u578b\uff0c\u76f8\u5bf9origin\u7684\u504f\u79fb\u91cf<\/p>\n<p>Origin\uff1aFromBeginning!;FromCurrent!;FromEnd!<\/p>\n<p>\u8fd4\u56de\u503c\uff1along,\u6267\u884c\u6210\u529f\u8fd4\u56de\u6307\u9488\u79fb\u52a8\u540e\u6307\u9488\u7684\u4f4d\u7f6e\u3002<\/p>\n<p>&nbsp;<\/p>\n<p><strong>8.<\/strong><strong>\u56fd\u9645\u5316\u51fd\u6570<\/strong><\/p>\n<table width=\"636\">\n<tbody>\n<tr>\n<td width=\"192\">\u51fd\u6570<\/td>\n<td width=\"72\">\u8fd4\u56de\u503c<\/td>\n<td width=\"372\">\u529f\u80fd<\/td>\n<\/tr>\n<tr>\n<td width=\"192\">IsAllArabic(string)<\/td>\n<td width=\"72\">Boolean<\/td>\n<td width=\"372\">\u786e\u5b9astring\u662f\u5426\u5168\u90e8\u4e3a\u963f\u62c9\u4f2f\u6587<\/td>\n<\/tr>\n<tr>\n<td width=\"192\">IsAllHebrew(string)<\/td>\n<td width=\"72\">Boolean<\/td>\n<td width=\"372\">\u786e\u5b9astring\u662f\u5426\u5168\u90e8\u4e3a\u5e0c\u4f2f\u6765\u6587<\/td>\n<\/tr>\n<tr>\n<td width=\"192\">IsAnyArabic(string)<\/td>\n<td width=\"72\">Boolean<\/td>\n<td width=\"372\">\u786e\u5b9astring\u662f\u5426\u5305\u542b\u963f\u62c9\u4f2f\u6587<\/td>\n<\/tr>\n<tr>\n<td width=\"192\">IsAnyHebrew(string)<\/td>\n<td width=\"72\">Boolean<\/td>\n<td width=\"372\">\u786e\u5b9astring\u662f\u5426\u5305\u542b\u5e0c\u4f2f\u6765\u6587<\/td>\n<\/tr>\n<tr>\n<td width=\"192\">IsArabic(character)<\/td>\n<td width=\"72\">Boolean<\/td>\n<td width=\"372\">\u786e\u5b9a\u5b57\u7b26\u662f\u5426\u662f\u963f\u62c9\u4f2f\u6587(\u7b2c\u4e00\u4e2a)<\/td>\n<\/tr>\n<tr>\n<td width=\"192\">IsArabicAndNumbes (string)<\/td>\n<td width=\"72\">Boolean<\/td>\n<td width=\"372\">\u786e\u5b9astring\u662f\u5426\u5168\u90e8\u7531\u963f\u62c9\u4f2f\u6587\u548c\u6570\u5b57\u7ec4\u6210<\/td>\n<\/tr>\n<tr>\n<td width=\"192\">IsHebrew(character)<\/td>\n<td width=\"72\">Boolean<\/td>\n<td width=\"372\">\u786e\u5b9a\u5b57\u7b26\u662f\u5426\u662f\u5e0c\u4f2f\u6765\u6587(\u7b2c\u4e00\u4e2a)<\/td>\n<\/tr>\n<tr>\n<td width=\"192\">IsHebrewAndNumbrs(string)<\/td>\n<td width=\"72\">Boolean<\/td>\n<td width=\"372\">\u786e\u5b9astring\u662f\u5426\u5168\u90e8\u7531\u5e0c\u4f2f\u6765\u6587\u548c\u6570\u5b57\u7ec4\u6210<\/td>\n<\/tr>\n<tr>\n<td width=\"192\">Reverse(string)<\/td>\n<td width=\"72\">String<\/td>\n<td width=\"372\">\u98a0\u5012string\u7684\u6b21\u5e8f<\/td>\n<\/tr>\n<tr>\n<td width=\"192\">ToAnsi(string)<\/td>\n<td width=\"72\">Blob<\/td>\n<td width=\"372\">\u5c06Unicode\u5b57\u7b26\u8f6c\u6362\u6210Ansi\u5b57\u7b26<\/td>\n<\/tr>\n<tr>\n<td width=\"192\">ToUnicode(blob)<\/td>\n<td width=\"72\">string<\/td>\n<td width=\"372\">\u5c06Ansi\u5b57\u7b26\u8f6c\u6362\u6210Unicode\u5b57\u7b26<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p>\u6574\u7406\u65f6\u95f4\uff1a2019-11-19 10:00:00<\/p>\n<p style=\"text-align: right;\">\u65f6\u95f4\uff1a2019-11-19 10\uff1a10:05:00<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; 7.\u6587\u4ef6\u64cd\u4f5c\u51fd\u6570 7.1 GetFileOpenName(title,pathname,file [&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\/156"}],"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=156"}],"version-history":[{"count":1,"href":"http:\/\/www.linux-dba.com\/index.php\/wp-json\/wp\/v2\/posts\/156\/revisions"}],"predecessor-version":[{"id":283,"href":"http:\/\/www.linux-dba.com\/index.php\/wp-json\/wp\/v2\/posts\/156\/revisions\/283"}],"wp:attachment":[{"href":"http:\/\/www.linux-dba.com\/index.php\/wp-json\/wp\/v2\/media?parent=156"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.linux-dba.com\/index.php\/wp-json\/wp\/v2\/categories?post=156"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.linux-dba.com\/index.php\/wp-json\/wp\/v2\/tags?post=156"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}