PRB: Run-Time Error 13 While Running Visual Basic DHTML Applications (241932)
The information in this article applies to:
- Microsoft Visual Basic Learning Edition for Windows 6.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
- Microsoft Internet Explorer (Programming) 5
This article was previously published under Q241932 SYMPTOMS
When running Visual Basic Dynamic HTML (DHTML) Projects on machines with Internet Explorer 5 or later installed, the following error message appears:
Run-time error '13':
Type mismatch
This error occurs while calling PutProperty or GetProperty functions generated by the default template of Visual Basic.
CAUSE
The first parameter of the above two functions is of type HTMLDocument and BaseWindow.Document cannot be passed to it.
RESOLUTION
Change the first parameter of the PutProperty and the GetProperty declaration objDocument As HTMLDocument to objDocument As Object. As in the following example:
Public Sub PutProperty(objDocument As Object, ....)
REFERENCESFor more information about developing Web-based solutions for Microsoft Internet Explorer, visit the following Microsoft Web sites: For additional information, click the article numbers below
to view the articles in the Microsoft Knowledge Base:
190249 INFO: VB 6.0 Readme Part 9: DHTML Page Designer Issues
190050 PRB: BuildFile Property of DHTML Application Is Missing
Modification Type: | Major | Last Reviewed: | 5/11/2006 |
---|
Keywords: | kbBug kbMSHTML kbprb KB241932 |
---|
|