Skip to content
pb-diff Help

New Comparison

One dialog says what is being compared with what. It shows every path at once, takes them by typing, browsing or dropping, lets any two rows be swapped, offers the comparisons you made before, and says what is wrong with a choice before it runs anything. Open it with File ▸ New Comparison or Compare ▸ New Comparison (Ctrl+N), or New on the tool bar. Ways to open a comparison sets it beside the other routes.

The pb-diff New Comparison dialog over an empty application window. Two-way comparison is selected at the top; the Old box holds w_order_entry.srw from the old folder of the Order Desk examples and the New box the same object from the new folder, each with a Browse button, and a button with two arrows beside them that swaps the two; the Recent list below shows the orders.pbl library pair and the n_order_service pair; Compare and Cancel buttons close the dialog.
The New Comparison dialog with Two-way comparison chosen: release 1.4 of w_order_entry as Old and release 1.5 as New, and two earlier pairs under Recent. Compare is enabled because the dialog has nothing to object to. Select the image to view it at full size.

What you are comparing

Two buttons across the top decide how many paths the dialog asks for and what it does with them:

Choice What it takes What opens
Two-way comparison Old and New, as source files, library objects, or two whole libraries. A File Compare; two whole libraries open a Compare Summary.
Three-way merge File1, Base and File2. A three-way merge.

The third path appears only for a three-way merge; the dialog grows a row rather than showing an empty one the rest of the time.

Giving it the paths

In a two-way comparison, Old is the reference: results are phrased as what happened to it. Each slot can be filled in these ways:

The button with the two arrows between two rows swaps those two, as the stops of a route are swapped in a map: between Old and New in a two-way comparison, and in a merge one between File1 and the Base and one between the Base and File2, so the Base can be put in the middle whatever order a drop or a browse left the three files in. Its tool tip names the two rows it swaps.

Recent

The comparisons you have already made are listed under the paths, most recent first: in Two-way comparison the pairs, in Three-way merge the merges. Double-click one to fill the slots from it, each file in its role. The list is the same as File ▸ Recent, which also holds folder pairs and saved selections; it keeps fifteen comparisons, the five latest merges among them whatever came after, and survives closing the application. Clear Recent List, at the bottom of File ▸ Recent, empties it.

Before the compare runs

The dialog states its objection while the choice is being made rather than failing afterwards. Compare stays disabled until there is nothing to object to.

Objection Cause
There is no file at path. A path was typed wrongly, or the file has moved.
Choose source files throughout or choose objects from PowerBuilder libraries throughout. The dialog holds a source file and a library object together.
Select an object for every library slot before comparing. One slot still names a whole library while the comparison requires objects.
The files are of different types. A window against a DataWindow, for example. Objects of different types do not compare meaningfully, so the dialog rejects them in both two-way and three-way comparisons.

The dialog takes files: a source file, a library, or an entry of a library. A folder is not one of them, and naming one gets There is no file at path. Two folders of exports, two PowerBuilder 2025 Solution folders or two of their PBL folders are compared from a File Selection, which expands a folder into the objects beneath it, by dropping the two folders on the window, or by naming them on the command line. A File Selection is also the place for more than one pair.