_CODESENSE

OLETypeAllowed

This property indicates whether an OLE control's data is embedded or linked.

Usage

nRetVal = oleObject.OLETypeAllowed

Property

Value

Purpose

nRetVal

1

Data is embedded.

0

Data is linked.

-1

This is an OLEBoundControl and the bound General field is empty.

-2

This is an OLE control (OCX).


OLETypeAllowed can be set for an OLEControl using the DEFINE CLASS command, but it is read-only in the visual design tools. It is always read-only at runtime. For an OLEBoundControl, this value changes as the APPEND GENERAL command or equivalent menu commands are used to change the contents of the control, or as you move through the table to records with different types of data in the General field.

Example

? ThisForm.OLEBoundControl1.OLETypeAllowed

See Also

OLEControl, OLEBoundControl


View Updates

Copyright © 2002 by Tamar E. Granor, Ted Roche, Doug Hennig, and Della Martin. All Rights Reserved.



Hacker's Guide to Visual FoxPro 7. 0
Hackers Guide to Visual FoxPro 7.0
ISBN: 1930919220
EAN: 2147483647
Year: 2001
Pages: 899

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net