DataWindow method return values for empty DataObject property

In PowerBuilder 8.0.2 and later, the value returned when there is no DataWindow object assigned to a DataWindow control or DataStore has been standardized for the methods listed in Table 2. Some of these return values are different from the values returned in PowerBuilder 7 and earlier releases. SetFilter is included in the table, but its return value was changed from 1 to -1 in PowerBuilder 8.0.4, not PowerBuilder 8.0.2.

Method

Return value

AcceptText

1

DeleteRow

-1

GetItemDate, GetItemDateTime, GetItemTime, GetItemDecimal, GetItemNumber, GetItemStatus

null

GetItemString

Empty String

InsertRow

-1

Retrieve

-1

SelectRow

1

SetFilter

-1

Update

1