ShareDataOff – PB Docs 150

ShareDataOff method (DataWindows)

Description

Turns off the sharing of data buffers for a DataWindow control
or DataStore.

Controls

DataWindow type

Method applies to

PowerBuilder

DataWindow control, DataWindowChild object, DataStore
object

Web ActiveX

DataWindow control, DataWindowChild object

Syntax

[PowerBuilder]

[Web ActiveX]

Argument

Description

dwcontrol

A reference to a DataWindow control,
DataStore, or child DataWindow

Return Values

Returns 1 if it succeeds and –1 if an error occurs.
If dwcontrol is null, ShareDataOff returns
null.

Usage

Two or more DataWindow controls (or DataStores) can share
data. See ShareData for more information about
shared data buffers and primary and secondary DataWindows.

When you call ShareDataOff for a secondary
DataWindow, that control no longer contains data, but the primary
DataWindow and other secondary controls are not affected. When you
call ShareDataOff for the primary DataWindow,
all secondary DataWindows are disconnected and no longer contain
data.

Examples

These statements establish the sharing of data among
three DataWindow controls and then turn off sharing for one of the
secondary DataWindow controls:

See Also


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x