PowerBuilder

AWS Blu Insights provides a PowerBuilder dependencies analysis as a standalone technology. It supports multiple files including PBL, SRA, SRD, SRF, SRM, SRU, SRW.

PBL

LibList

The LibList instruction implies dependencies to a list of PBL libraries. Their paths are listed in a double-quoted string and separated by a semicolon.
LibList "D:\path\to\lib1.pbl;D:\path\to\another\lib2.pbl"

SRD

In SRD files there are dependencies that can be detected thanks to the values of some specific fields. In the below SRD dependencies keywords aren’t sensitive to the case.

dddw.name

The affectation of the dddw.name field (in an SRD file) implies a dependency on another SRD file with the same name that the value of this field.

  • The value of the field can be set with a simple-quoted string:
    dddw.name='dddw_example'
  • The value of the field can be set with a double-quoted string:
    dddw.name="dddw_example"
  • The value of the field can be set with a raw string:
    dddw.name=dddw_example

Where dddw_example is an SRD file of the project.

dataobject

The affectation of the dataobject field (in an SRD file) implies a dependency on another SRD file with the same name that the value of this field.

  • The value of the parameter can be a simple-quoted string:
    dataobject='dddw_example'
  • The value of the parameter can be a double-quoted string:
    dataobject="dddw_example"
  • The value of the parameter can be a raw name:
    dataobject=dddw_example

Where dddw_example is an SRD file of the project.

expression

The affectation of the expression field (in an SRD file) implies a dependency on an SRW file that contains the global type referenced by the value of the field expression.

  • The value of the field can be set with a simple-quoted string:
    expression='example_global_type'
  • The value of the field can be set with a double-quoted string:
    expression="example_global_type"

Where example_global_type is the name of a global type defined in an SRW file.

SRW

In the below PowerBuilder dependencies, the keywords aren’t sensitive to the case.

dataobject

The dataobject affectation implies a dependency on a datawindow (an SRD file).

  • The name of the datawindow can be in simple quotes:
    dataobject= 'dw_example'
  • The name of the datawindow can be in double-quotes:
    dataobject = "dw_example"
  • The name of the datawindow can be in a variable:
    dataobject = dw_variable: where dw_variable is a string variable containing the name of a datawindow

The field dataobject can be accessed through diverse PowerBuilder objects:

  • dw1.dataobject = 'dw_example'

Where dw_example is an SRD file of the project.

global type

The global type instruction declares a global type in the file. This type can be referenced in other files.

  • global type example_type

global type … from …

This global type instruction declares a global type with an inheritance pattern. It implies a dependency on the parent type.

  • global type example_type from example_parent

Where example_parent can be a local type defined in the same file or a global type defined in its own file.

global type … from … within …

This global type instruction declares a global type with a container type. It implies a dependency on the container type.

global type example_type from <system_type> within container
There are several possibilities for system_type among :

  • global type example_type from window within container
  • global type example_type from menu within container
  • global type example_type from commandbutton within container
  • global type example_type from listbox within container
  • global type example_type from graph within container

Where container can be a local type defined in the same file or a global type defined in its own file.

message.stringparm

The affectation of the message.stringparm field implies a dependency on the file with the same name as the value of the field.

  • The value of this field can be set with a double-quoted string:
    message.stringparm = "example_file"
  • The value of this field can be set with a simple-quoted string:
    message.stringparm = 'example_file'
  • The value of this field can be set with a variable:
    string dependency_var = "example_file"
    message.stringparm = dependency_var

Where example_file is the name of a file of the project.

open

The open call implies a dependency on a window file with the same name that the string in the parameters.

  • The value of the parameter can be a double-quoted string:
    open("w_example")
  • The value of the parameter can be a simple-quoted string:
    open('w_example')
  • The value of the parameter can be a variable:
    string window_var = "w_example"
    open(window_var)
  • You can also add the optional “parent” parameter:
    open("w_example", example_parent)

Where w_example is the name of a file of the project.

openSheet

The openSheet call implies a dependency on a window file with the same name that the string in the parameters.

  • The value of the parameter can be a double-quoted string:
    openSheet("w_example", mdiframe)
  • The value of the parameter can be a simple-quoted string:
    openSheet('w_example', mdiframe)
  • The value of the parameter can be a variable:
    string window_var = "w_example"
    openSheet(window_var, mdiframe)
  • You can also add the optional windowtype, position and arrangeopen parameters:
    openSheet("w_example", "example_type", mdiframe, 0, Original!)

Where w_example is the name of a file of the project.

openSheetWithParam and openSheetWithParm

The openSheetWithParam or openSheetWithParm call implies a dependency on a window file with the same name that the string in the parameters.

  • The value of the parameter can be a double-quoted string:
    openSheetWithParm("w_example", "example_param", mdiframe)
  • The value of the parameter can be a simple-quoted string:
    openSheetWithParm('w_example', "example_param", mdiframe)
  • The value of the parameter can be a variable:
    string window_var = "w_example"
    openSheetWithParm(window_var, "example_param", mdiframe)
  • You can also add the optional windowtype, position and arrangeopen parameters:
    openSheetWithParm("w_example", "example_param", "example_type", mdiframe, 0, Original!)

Where w_example is the name of a file of the project.

openWithParam and openWithParm

The openWithParm or openWithParam call implies a dependency on a window file with the same name that the string in the parameters.

  • The value of the parameter can be a double-quoted string:
    openWithParm("w_example", "example_parameter")
  • The value of the parameter can be a simple-quoted string:
    openWithParm('w_example', "example_parameter")
  • The value of the parameter can be a variable:
    string window_var = "w_example"
    openWithParm(window_var, "example_parameter")
  • You can also add the optional “parent” parameter:
    openWithParm("w_example", "example_parameter", example_parent)

Where w_example is the name of a file of the project.

type … from …

This type instruction declares a local type with an inheritance pattern. It implies a dependency on the parent type.

  • type example_type from example_parent

Where example parent can be a local type defined in the same file, a global type defined in its file.

type … from … within …

This type instruction declares a local type with a container type. It implies a dependency on the type container defined in its file.

type example_type from <system_type> within container
There are several possibilities for system_type among :

  • type example_type from window within container
  • type example_type from menu within container
  • type example_type from commandbutton within container
  • type example_type from listbox within container
  • type example_type from graph within container

Where container can be a local type defined in the same file or a global type defined in its file.

System Dependencies

The below dependencies are recognized as System dependencies :

  • application
  • checkbox
  • cie_u_sle
  • commandbutton
  • CommandParm
  • connection
  • contextinformation
  • contextkeyword
  • datastore
  • datawindow
  • dropdownlistbox
  • dropdownpicturelistbox
  • dynamicdescriptionarea
  • dynamicstagingarea
  • editmask
  • error
  • errorlogging
  • function_object
  • graph
  • groupbox
  • hprogressbar
  • hscrollbar
  • htrackbar
  • inet
  • internetresult
  • line
  • listbox
  • listview
  • mailsession
  • mdiclient
  • menu
  • menucascade
  • message
  • multilineedit
  • NCImportBase
  • nonvisualobject
  • olecontrol
  • olecustomcontrol
  • oleobject
  • olestorage
  • olestream
  • picture
  • picturebutton
  • picturehyperlink
  • picturelistbox
  • pipeline
  • radiobutton
  • rectangle
  • richtextedit
  • runtimeerror
  • service
  • singlelineedit
  • statichyperlink
  • statictext
  • structure
  • tab
  • timing
  • transaction
  • treeview
  • userobject
  • vprogressbar
  • vscrollbar
  • vtrackbar
  • window
  • The PowerBuilder Foundation Class Library (pfc/pfe) libraries