Schultz’s PowerBuilder Notes

PFC DateTime Service (n_cst_datetime)


The Date/Time service provides methods to perform calculations with dates.
It includes the following features:

Continue reading

July 16, 2008 Posted by | 3. PFC, Utility Services | , , , , , , , , , , | Leave a comment

List of Functions Available in Datawindow Expressions


Expressions are most commonly used to create datawindow column property expressions. But the are also used to create filter and find strings.
Continue reading

May 15, 2008 Posted by | Expressions | , , , , , , , , , , , , , , | Leave a comment

Column Display


How do I get my field to appear like a MLE and word wrap?

  • In the datawindow painter, select the column
  • Properties
  • EDIT tab

Check AUTO VERT SCROLL and AUTOSELECTION. Other selected items may also work, however do not select HORZ SCROLL BAR. When I update a column, the change is applied to the database for many rows, not just the current one.

Check the unique Key Column in the DataWindow’s Update properties dialog box. Click the Primary Key button to assure that the columns selected are indeed unique.

Okay, in a datawindow, how do you get rid of displaying the time portion of the date field?

In the DataWindow painter, select the field and change the format property

Graying out a checkbox

If a checkbox has 3 states, and it’s state is set to that 3rd state (other), then a gray checkmark will appear in the checkbox instead of a black one.

So, by changing the state of checkbox to that 3rd state, and protecting it, it will appear to be grayed out.

May 9, 2008 Posted by | 2. Datawindows, Datawindow Painter | , , , , , , , , , , , , , | 1 Comment

How do I Enable Just-In-Time Debugging


In the PowerBuilder System Options dialog window, check the Just-in-Time Debugging option. This feature was new in PB 6.0.
In PowerBuilder 7.0, Systems Options is under the Window menu column (Window>System Options…)

More Debugging tips

April 15, 2008 Posted by | Debugger | , , , , , , | Leave a comment