Hacker’s Guide to Visual FoxPro
An irreverent look at how Visual FoxPro really works. Tells you the inside scoop on every command, function, property, event and method of Visual FoxPro.
This property indicates whether an OLE control’s data is embedded or linked.
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.
? ThisForm.OLEBoundControl1.OLETypeAllowed