ContentsAllowed

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

Describe and Modify argument:

"olecontrolname.ContentsAllowed { = ' contentstype ' }"

Parameter

Description

olecontrolname

The name of the OLE Object control for which you want to get or set the type of contents.

contentstype

A number specifying whether the OLE object in the control has to be embedded, has to be linked, or can be either embedded or linked.

Values are:

  • 0 – Embedded

  • 1 – Linked

  • 2 – Any

Usage


In the painter

Select the control and set the value in the Properties view, Options tab, Contents option.

Examples

Example 1

ls_data = dw1.Describe("ole_report.ContentsAllowed")

dw1.Modify("ole_report.ContentsAllowed='2'")