当前位置: 首页 > 网络学院 > 服务端脚本教程 > ASP > ASP CompareMode 属性

ASP
ASP Drive
ASP File
ASP Folder
ASP Dictionary
ASP ADO
ASP AdRotator
ASP BrowserCap
ASP Content Linking
ASP Content Rotator
ASP Quick Ref
ASP 摘要
ASP 实例

ASP CompareMode 属性


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-03-04   浏览: 361 ::
收藏到网摘: n/a

The CompareMode property sets or returns the comparison mode for comparing keys in a Dictionary object.
ASP CompareMode属性设置或返回一个比较/对照模式来比较一个字典(Dictionary)对象中的关键词

Syntax
语法

DictionaryObject.CompareMode[=compare]

Parameter参数 Description描述
compare Optional. Specifies the comparison mode.
可选参数。指定比较/对照的模式

Can take one of the following values:

0 = vbBinaryCompare - binary comparison
0 = vbBinaryCompare – 二进制比较/对照模式
1 = vbTextCompare - textual comparison
1 = vbTextCompare – 文本比较/对照模式
2 = vbDatabaseCompare - database comparison
2 = vbDatabaseCompare – 数据库比较/对照模式

Example
举例

<%
dim d
set d=Server.CreateObject("Scripting.Dictionary")
d.CompareMode=1
d.Add "n","Norway"
d.Add "i","Italy"
'The Add method will fail on the line below!
d.Add "I","Ireland" 'The letter i already exists
%>

评论 (0) All

登陆 | 还没注册?