Inserts an OLE document into an OLE field.

Syntax

REPLACE OLE <OLE field name> FROM <filename>
[LINK]

<OLE field name>

The field where an OLE document is inserted.

FROM <file name>

The file that identifies an OLE document, including its extension. There is no default extension.

LINK

LINK stores a pointer to the OLE document. By default, dBASE Plus embeds the OLE document itself in the specified memo field.

Description

Use REPLACE OLE to insert the contents of an OLE document into an OLE field. You can either embed the actual OLE document in an OLE field (the default) or access the OLE document by linking it to the OLE field.

If you link the OLE document, the OLE field contains only a reference to the OLE document. As long as the OLE document remains in the same location, the OLE field displays the most current version of the document.

If you embed the OLE document, the OLE field contains a copy of the document. There are no links between the field and the OLE document: therefore, any changes to the original version of the OLE document are not reflected in the embedded document.

OODML

Use the Field object’s replaceFromFile( ) method. The file is embedded; you cannot link it.