Microsoft KB Archive/172862: Difference between revisions
(importing KB archive) |
m (Text replacement - """ to """) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 47: | Line 47: | ||
== SUMMARY == | == SUMMARY == | ||
The Visual Basic 5.0 Books Online topic entitled | The Visual Basic 5.0 Books Online topic entitled "Adding internet features to controls" contains an error in the PictureFromURL Property Let procedure. | ||
</div> | </div> | ||
Line 54: | Line 54: | ||
== MORE INFORMATION == | == MORE INFORMATION == | ||
If you run the sample code, you may receive the compile error | If you run the sample code, you may receive the compile error "Variable not defined" or run-time error 424 "Object Required".<br /> | ||
<br /> | <br /> | ||
The compile error results from the following line of code in the PictureFromURL Property Let procedure: | The compile error results from the following line of code in the PictureFromURL Property Let procedure: | ||
<pre class="codesample"> If (AmbientProperties.UserMode = True) _ | <pre class="codesample"> If (AmbientProperties.UserMode = True) _ | ||
And (NewString | And (NewString <> "") Then | ||
</pre> | </pre> | ||
This line of code should read as follows: | This line of code should read as follows: | ||
<pre class="codesample"> If (UserControl.Ambient.UserMode = True) _ | <pre class="codesample"> If (UserControl.Ambient.UserMode = True) _ | ||
And (NewString | And (NewString <> "") Then | ||
</pre> | </pre> | ||
The Ambient property of a UserControl returns an AmbientProperties object that holds the ambient properties of its container. | The Ambient property of a UserControl returns an AmbientProperties object that holds the ambient properties of its container. |
Latest revision as of 11:07, 21 July 2020
Article ID: 172862
Article Last Modified on 12/10/2003
APPLIES TO
- Microsoft Visual Basic 5.0 Control Creation Edition
- Microsoft Visual Basic 5.0 Learning Edition
- Microsoft Visual Basic 5.0 Professional Edition
- Microsoft Visual Basic 5.0 Enterprise Edition
This article was previously published under Q172862
SUMMARY
The Visual Basic 5.0 Books Online topic entitled "Adding internet features to controls" contains an error in the PictureFromURL Property Let procedure.
MORE INFORMATION
If you run the sample code, you may receive the compile error "Variable not defined" or run-time error 424 "Object Required".
The compile error results from the following line of code in the PictureFromURL Property Let procedure:
If (AmbientProperties.UserMode = True) _ And (NewString <> "") Then
This line of code should read as follows:
If (UserControl.Ambient.UserMode = True) _ And (NewString <> "") Then
The Ambient property of a UserControl returns an AmbientProperties object that holds the ambient properties of its container.
STATUS
This documentation error has been fixed in Visual Basic 6.0.
Additional query words: asynchronous kbVBp500 kbVBp600 kbVBp kbdsd kbDSupport kbdocerr kbdocfix
Keywords: KB172862