The information in this article applies to:
SYMPTOMSWhen you call the GetPrivateProfileString) Windows API function from within FoxPro for Windows and the UDFPARMS setting is REFERENCE, you will receive the error message "Data type mismatch." CAUSEThis error occurs because GetPrivateProfileString() is expecting certain parameters to be passed by VALUE. With the UDFPARMS set to REFERENCE, you are sending all parameters by REFERENCE. The GetPrivateProfileString() function returns an error because it is expecting these parameters by VALUE. FoxPro interprets the error as a data type mismatch. RESOLUTIONTo prevent this behavior, set UDFPARMS to VALUE. MORE INFORMATIONSteps to Reproduce BehaviorType the following commands in the Command window:
The last command will return the error message "Data type mismatch."
NOTE: A "FOXPROW caused a General Protection Fault in module <unknown>" error message occurs if UDFPARMS is set to VALUE. Additional query words: VFoxWin FoxWin 2.50 2.50a 2.50b errmsg
Keywords : FxprgFoxtools |
Last Reviewed: August 19, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |