PRB: Semantic Compatibility Problem with Hardtypes in VBScript (190272)
The information in this article applies to:
- Microsoft Internet Explorer (Programming) 3.0
- Microsoft Internet Explorer (Programming) 3.01
- Microsoft Internet Explorer (Programming) 3.02
- Microsoft Internet Explorer (Programming) 4.0
- Microsoft Internet Explorer (Programming) 5
- Microsoft Internet Information Server 3.0
- Microsoft Active Server Pages
This article was previously published under Q190272 SYMPTOMS
VBScript has a semantic compatibility difference with Visual Basic for
Applications (VBA) with regard to hardtype comparisons. Basically, VBA's
comparison semantics are such that non-variant values are "hardtypes,"
meaning that they cannot change types. During comparison, variants must be
coerced to their types. The problem is that in VBScript everything is a
variant, and VBScript doesn't remember that it's a "hardtype" value.
STATUS
This behavior is by design.
Modification Type: | Minor | Last Reviewed: | 3/3/2005 |
---|
Keywords: | kbprb kbScript KB190272 |
---|
|