DOCERR: DocumentFile Property Returns " " For Embedded ObjectsID: Q139513 3.00 WINDOWS kbprg kbdocerr The information in this article applies to:
SUMMARYFollowing is the description that the Visual FoxPro documentation gives for the DocumentFile Property:
This is incorrect. Only the linked objects return the name of an object;
embedded objects return " ".
MORE INFORMATION
Steps to Demonstrate Behavior1. Type the following line of code in the Command window:
2. Place an OLE Container control on the form.
3. On the Insert Object dialog box, click Create From File, and select 4. Place a second OLE Container control on the form, and insert a file as
5. Type the following lines of code in the Debug window:
For the expression, "test.olecontrol1.documentfile" (the embedded file),
you receive "". For the expression, "test.olecontrol2.documentfile" (the
linked file), you receive C:\Windows\Bubbles.bmp.
Additional reference words: 3.00 VFoxWin KBCategory: kbprg kbdocerr KBSubcategory: FxprgGeneral
|
Last Reviewed: November 17, 1995 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |