FIX: TYPE() Returns "" Instead of "U" For OleBoundControl (131710)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 3.0
- Microsoft Visual FoxPro for Windows 3.0b
- Microsoft Visual FoxPro for Windows 5.0
- Microsoft Visual FoxPro for Macintosh 3.0b
This article was previously published under Q131710 SYMPTOMS
If 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.
RESOLUTION
If 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
ENDIF
ENDCASE
STATUS
Microsoft 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.
Modification Type: | Major | Last Reviewed: | 12/3/2003 |
---|
Keywords: | kbBug kbcode kbfix kbProgramming kbvfp500aFIX KB131710 kbAudDeveloper |
---|
|