PowerBuilder .NET provides system interfaces that include implementations for all the methods of DataWindow controls and DataStores. You can use these system interfaces in your WPF applications or components.
You can work with system interfaces instead of individual DataWindow, DataStore, or Picture controls. Because these controls automatically implement system interfaces, you can pass the interface rather than the control, and directly call methods on the interface.
You need not declare system interfaces, or add implementations for their methods.
The IDataWindowBase system interface includes all the methods common to DataWindows and DataStores. It also is the base interface of three other system interfaces: IDataWindowControl, IDataWindowChild, and iDataStore.
System interface | Variable datatype to which it can be assigned |
---|---|
IDataWindowBase and IDataWindowControl | DataWindow |
IDataWindowBase and IDataWindowChild | DataWindowChild |
IDataWindowBase and iDataStore | DataStore |
public function long f_filter (IDataWindowBase idw_base, string as_filter); long ll_rows idw_base.SetFilter (as_filter) idw_base.Filter () return idw_base.RowCount () end function
DataStore ldw_emps ldw_emps = Create DataStore ldw_emps.DataObject = "d_myDWO" ldw_emps.SetTransObject (SQLCA) // Assumes a connected transaction ldw_emps.Retrieve () this.f_Filter (ldw_emps, "dept_id = 100")
IPicture ip = p_1 ip.SetPicture (myPictureBlob) ip.Draw (x, y)
The IDataWindowControl and IDataWindowChild interfaces also use the IPicture system interface to set the picturename parameter in the SetRowFocusIndicator method of a DataWindow or DataWindowChild control.