ContentsAllowed
property (DataWindow object)
Description
The way the OLE Object control holds the OLE object. You can
restrict the container to only embedded or only linked objects, or you
can allow either type.
Applies to
OLE Object controls
Syntax
PowerBuilder dot notation:
|
1 |
dw_control.Object.olecontrolname.ContentsAllowed |
Describe and Modify argument:
|
1 |
"olecontrolname.ContentsAllowed { = ' contentstype ' }" |
|
Parameter |
Description |
|---|---|
|
olecontrolname |
The name of the OLE Object control for which you |
|
contentstype |
A number specifying whether the OLE object in the Values are: 0 — 1 — Linked 2 — |
Usage
In the painter
Select the control and set the value in the Properties view,
Options tab, Contents option.
Examples
|
1 2 3 4 5 |
string ls_data ls_data = dw1.Object.ole_report.ContentsAllowed dw1.Object.ole_report.ContentsAllowed = 2 ls_data = dw1.Describe("ole_report.ContentsAllowed") dw1.Modify("ole_report.ContentsAllowed='2'") |