DOCERR: Excel Code in Chapter 16 of Online Docs IncorrectLast reviewed: January 10, 1997Article ID: Q156453 |
The information in this article applies to:
SUMMARYAn Excel code example under the section titled "Controlling Visual FoxPro from Other Applications" in Chapter 16 of the Visual FoxPro 5.0 Online Documentation needs modification to work.
MORE INFORMATIONThe following incorrect code from the Online Documentation demonstrates how Excel might use Visual FoxPro as a server:
Sub FoxTest() Dim oFox as Object Set oFox = CreateObject("VisualFoxPro.Application") oFox.DoCmd "USE customer" oFox.DoCmd "SELECT contact, phone FROM customer WHERE country = " + Chr$(39) + USA+ Chr$(39) + " INTO CURSOR cust" oFox.DataToClip "cust",,3 Range("A1:B1").Select ActiveSheet.Paste End SubMake the following changes to the Online Documentation example:
|
KBCategory: kbinterop kbdocerr
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |