The information in this article applies to:
SYMPTOMSWhen using the NewObject() function, leaving any parameters blank while filling subsequent parameters results in the following syntax error:
CAUSEMicrosoft Visual FoxPro does not allow empty parameters in internal methods and functions. RESOLUTIONWhen running the NewObject() function and passing an optional parameter, make sure to pass "" or NULL in any optional parameter that precedes the one being passed. STATUSThis behavior is by design. MORE INFORMATIONThis functionality differs from the NewObject method. The NewObject method allows for passing empty parameters because Visual FoxPro does allow empty parameters when calling iDispatch methods from Component Object Model (COM) objects. Steps to Reproduce BehaviorRun the following code from a program file:
Additional query words: kbVFp600 kbOOP
Keywords : kbVFp600 |
Last Reviewed: January 3, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |