Hackers Guide to Visual FoxPro 7.0
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.
Категории