PRB: NewObject() Requires Null or "" for 2nd & 3rd Parameters (194668)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 6.0
This article was previously published under Q194668 SYMPTOMS
When using the NewObject() function, leaving any parameters blank while filling subsequent parameters results in the following syntax error:
Program Error.
Function argument value, type, or count is invalid.
CAUSE
Microsoft Visual FoxPro does not allow empty parameters in internal methods
and functions.
RESOLUTION
When 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.
STATUS
This behavior is by design.
Modification Type: | Minor | Last Reviewed: | 3/7/2005 |
---|
Keywords: | kbprb KB194668 |
---|
|