PowerBuilder – PFC file, resize, and string services

Posted on Tuesday, September 28th, 2010 at 8:20 pm in

Although the PFC provide a wide range of capabilities, it can be a very tedious task to ‘strip out’ a specific piece of functionality for use in an ‘non PFC’ 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
d_dirattrib
f_setfilesrv
s_pagesetupattrib
s_paperattrib
pfc_n_base
pfc_n_cst_baseattrib
pfc_n_cst_diratrrib
pfc_n_cst_dssrv
pfc_n_cst_dwobjectattrib
pfc_n_cst_filesrv
pfc_n_cst_filesrvaix
pfc_n_cst_filesrvhpux
pfc_n_cst_filesrvsol2
pfc_n_cst_filesrvunicode
pfc_n_cst_filesrvwin32
pfc_n_cst_infoattrib
pfc_n_cst_numerical
pfc_n_cst_resize
pfc_n_cst_resizeattrib
pfc_n_cst_string
pfc_n_ds
Modifications to pfc_n_ds:
Comment out the following:
//n_cst_dssrv_multitable	inv_multitable
//n_cst_dssrv_report		inv_report
//n_cst_dssrv_printpreview	inv_printpreview
//n_tr	itr_object
//public function integer of_settransobject (n_tr atr_object)
Alter the following methods:
pfc_printpreview, pfc_ruler, pfc_zoom, pfc_pagesetup, pfc_pagesetupdlg, pfc_accepttext, 
pfc_update, of_checkrequired, of_setmultitable, of_setreport, of_setprintpreview, sqlpreview, 
dberror, retrieveend  - comment out except for return values
of_getparentwindow, of_getparent - comment out debug service stuff
PFE.PBL
n_base
n_cst_baseattrib
n_cst_diratrrib
n_cst_dssrv
n_cst_dwobjectattrib
n_cst_filesrv
n_cst_filesrvaix
n_cst_filesrvhpux
n_cst_filesrvsol2
n_cst_filesrvunicode
n_cst_filesrvwin32
n_cst_infoattrib
n_cst_numerical
n_cst_resize
n_cst_resizeattrib
n_cst_string
n_ds

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.

You might also be interested in

Top