FIX: TYPE() Returns "" Instead of "U" For OleBoundControlLast reviewed: October 20, 1997Article ID: 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 CASE <object>.BaseClass="Oleboundcontrol" IF TYPE('<form>.<object>.UndefProp')="U" ; OR TYPE ('<form>.<object>.UndefProp')="" *Place code here ELSE *Place code here ENDIFENDCASE
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 Problem
Keywords : buglist3.00 buglist3.00b buglist5.00 FxprgGeneral vfoxwin vfpfix5.0a kbcode kbprg kbbuglist kbfixlist Version : 3.0 3.0b 5.0 Platform : MACINTOSH WINDOWS Issue type : kbbug Solution Type : kbfix |
================================================================================
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |