FIX: TYPE() Returns "" Instead of "U" For OleBoundControlID: Q131710 The information in this article applies to:
SYMPTOMSIf you run a form containing an OleBoundControl object and the TYPE() function attempts to verify the type of an undefined property of the object, the TYPE() function returns an empty string ("") instead of the expected "U" value.
RESOLUTIONIf your application uses the return value of the TYPE() function, test for an empty value ("") as a return value for all cases where an object uses the OleBoundControl as a BaseClass. For example: DO CASE ENDCASE
STATUSMicrosoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. This problem has been fixed in Visual FoxPro 5.0a.
MORE INFORMATION
Steps to Reproduce Problem1. Create a form. 2. On the DataEnvironment menu, click Add Table. 3. In the Add Table dialog box, select Tables, and then select the Employee 4. Click the OleBoundControl control on the Form Controls toolbar, and
5. Place a command button on the form, and modify its Click event handler
6. Save the form as FRMTEST, and run it.
7. Use the following code in the Debug window (for Visual FoxPro 3.x
|
Last Reviewed: October 23, 1997 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |