Article ID: 130277
Article Last Modified on 7/27/2000
APPLIES TO
- Microsoft Visual FoxPro 3.0 Standard Edition
This article was previously published under Q130277
SYMPTOMS
Passing too many parameters to the function WPARENT() as in:
? WPARENT("<undefined window name>",<second parameter>)
results in different error messages in versions 2.x and 3.0. Error message # 1230 is returned in Visual FoxPro 3.0 as:
whereas error message # 214 is returned in previous versions as:
STATUS
This behavior is by design.
MORE INFORMATION
Visual FoxPro checks the number of arguments in the function before checking for the existence of the window in question. FoxPro 2.x checked to see if the window existed before it checked to see if the function had too many arguments. FoxPro 2.x ignored a second argument.
Steps to Reproduce Problem
Issue the command:
? WPARENT("no_window",10)
where the window "no_window" has not been defined.
Notice different error messages are returned in 2.x and 3.0.
Additional query words: VFoxWin
Keywords: KB130277