{"id":399,"date":"2010-09-28T20:20:24","date_gmt":"2010-09-29T01:20:24","guid":{"rendered":"http:\/\/anvil-of-time.com\/wordpress\/?p=399"},"modified":"2021-03-09T12:16:07","modified_gmt":"2021-03-09T17:16:07","slug":"powerbuilder-pfc-file-resize-and-string-services","status":"publish","type":"post","link":"https:\/\/anvil-of-time.com\/powerbuilder\/powerbuilder-pfc-file-resize-and-string-services\/","title":{"rendered":"PowerBuilder &#8211; PFC file, resize, and string services"},"content":{"rendered":"<p>Although the PFC provide a wide range of capabilities, it can be a very tedious task to &#8216;strip out&#8217; a specific piece of functionality for use in an &#8216;non PFC&#8217; application. Here are the objects and modifications you need to do to strip out the File Service, Window Resize Service, and the String Service.<\/p>\n<pre>PFC.PBL\nd_dirattrib\nf_setfilesrv\ns_pagesetupattrib\ns_paperattrib\npfc_n_base\npfc_n_cst_baseattrib\npfc_n_cst_diratrrib\npfc_n_cst_dssrv\npfc_n_cst_dwobjectattrib\npfc_n_cst_filesrv\npfc_n_cst_filesrvaix\npfc_n_cst_filesrvhpux\npfc_n_cst_filesrvsol2\npfc_n_cst_filesrvunicode\npfc_n_cst_filesrvwin32\npfc_n_cst_infoattrib\npfc_n_cst_numerical\npfc_n_cst_resize\npfc_n_cst_resizeattrib\npfc_n_cst_string\npfc_n_ds<\/pre>\n<pre>Modifications to pfc_n_ds:\nComment out the following:\n\/\/n_cst_dssrv_multitable\tinv_multitable\n\/\/n_cst_dssrv_report\t\tinv_report\n\/\/n_cst_dssrv_printpreview\tinv_printpreview\n\/\/n_tr\titr_object\n\/\/public function integer of_settransobject (n_tr atr_object)\nAlter the following methods:\npfc_printpreview, pfc_ruler, pfc_zoom, pfc_pagesetup, pfc_pagesetupdlg, pfc_accepttext, \npfc_update, of_checkrequired, of_setmultitable, of_setreport, of_setprintpreview, sqlpreview, \ndberror, retrieveend  - comment out except for return values\nof_getparentwindow, of_getparent - comment out debug service stuff<\/pre>\n<pre>PFE.PBL\nn_base\nn_cst_baseattrib\nn_cst_diratrrib\nn_cst_dssrv\nn_cst_dwobjectattrib\nn_cst_filesrv\nn_cst_filesrvaix\nn_cst_filesrvhpux\nn_cst_filesrvsol2\nn_cst_filesrvunicode\nn_cst_filesrvwin32\nn_cst_infoattrib\nn_cst_numerical\nn_cst_resize\nn_cst_resizeattrib\nn_cst_string\nn_ds<\/pre>\n<p>The way I did this was to copy the objects from the source PFC pbls into a set of application pbls (PFE.PBL and PFC.PBL) and then edit the source to make modifications where needed.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Although the PFC provide a wide range of capabilities, it can be a very tedious task to &#8216;strip out&#8217; a specific piece of functionality for use in an &#8216;non PFC&#8217; application. Here are the objects and modifications you need to do to strip out the File Service, Window Resize Service, and the String Service. PFC.PBL&hellip;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[33,12],"_links":{"self":[{"href":"https:\/\/anvil-of-time.com\/wp-json\/wp\/v2\/posts\/399"}],"collection":[{"href":"https:\/\/anvil-of-time.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/anvil-of-time.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/anvil-of-time.com\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/anvil-of-time.com\/wp-json\/wp\/v2\/comments?post=399"}],"version-history":[{"count":10,"href":"https:\/\/anvil-of-time.com\/wp-json\/wp\/v2\/posts\/399\/revisions"}],"predecessor-version":[{"id":1838,"href":"https:\/\/anvil-of-time.com\/wp-json\/wp\/v2\/posts\/399\/revisions\/1838"}],"wp:attachment":[{"href":"https:\/\/anvil-of-time.com\/wp-json\/wp\/v2\/media?parent=399"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/anvil-of-time.com\/wp-json\/wp\/v2\/categories?post=399"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/anvil-of-time.com\/wp-json\/wp\/v2\/tags?post=399"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}