Microsoft KB Archive/190049

= BUG: Compile Error When Using Document.Write in DHTML App =

Article ID: 190049

Article Last Modified on 4/18/2003

-

APPLIES TO


 * Microsoft Visual Basic 6.0 Professional Edition
 * Microsoft Visual Basic 6.0 Enterprise Edition

-



This article was previously published under Q190049



SYMPTOMS
When you are using Document.Write in a DHTML application you receive the following error:

Compile error: Function or interface marked as restricted, or the function uses an Automation type not supported in Visual Basic.



RESOLUTION
Change the value of the innerText property of a tag instead of using the Document.Write.

For example, HTML for the element:  Replacement code in Page Designer: Subhead1.innerText="Heading One"



STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article.

