In logic, a
Pff is an object that contains information about a CSPro
Program Information File (.pff). PFF files are used to run CSPro applications or tools in production mode. Using the Pff object in logic, it is possible to dynamically modify the properties used when running an application or tool.
A Pff is a CSPro logic object and the following functions can be called via
dot notation:
Function | Description |
load | Loads the contents a PFF file from the disk. |
save | Saves a PFF file to the disk. |
getProperty | Gets the value associated with a PFF property. |
setProperty | Sets the value associated with a PFF property. |
exec | Executes the application or tool associated with the PFF. |
|
getLabel | Returns the symbol's label. |
getName | Returns the symbol's name. |
getJson | Returns the symbol's metadata represented in JSON. |
In addition to these object functions, Pff objects can be used as arguments to the
filename function.
Pff objects can be assigned to other Pff objects, which will replace the Pff's properties with the properties of the assigned Pff:
pff_name = another_pff_name;
PROC INTERVIEWER_MENU
// run the listing program in the interviewer's assigned cluster
if INTERVIEWER_MENU = 1 then
Pff listing_pff;
listing_pff.load("Listing.pff");
listing_pff.setProperty("Key", maketext("%v", CLUSTER));
listing_pff.exec();
endif;