LinkUpdateOptions DataWindow object property
Description
When the OLE Object control is linked, the method for updating
the link information. If the user tries to activate the OLE object
and the DataWindow server cannot find the linked file, which breaks the link,
LinkUpdateOptions controls whether the DataWindow server automatically displays
a dialog box prompting the user to find the file. If you turn off
the automatic dialog box, you can reestablish the link by calling
the LinkTo or LinkUpdateDialog in code.
Controls
OLE Object controls
Syntax
PowerBuilder dot notation:
|
1 |
<span>dw_control</span>.Object.<span>olecontrolname</span>.LinkUpdateOptions |
Describe and Modify argument:
|
1 |
"<span>olecontrolname</span>.LinkUpdateOptions { = ' <span>updatetype</span> ' }" |
|
Parameter |
Description |
|---|---|
|
olecontrolname |
The name of the OLE Object control for |
|
updatetype |
A number specifying how broken links Values are:
|
Usage
In the painter
Select the control and set the value in the Properties view, Options
tab, Link Update option.
Examples
|
1 |
string ls_data |
|
1 |
ls_data = dw1.Object.ole_report.LinkUpdateOptions |
|
1 |
dw1.Object.ole_report.LinkUpdateOptions = 0 |
|
1 |
ls_data = dw1.Describe("ole_report.LinkUpdateOptions") |
|
1 |
dw1.Modify("ole_report.LinkUpdateOptions='0'") |