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

ASP
ASP 介绍
ASP Install
ASP 语法
ASP 变量
ASP Procedures
ASP Forms
ASP Cookies
ASP Session
ASP Application
ASP #include
ASP Global.asa
ASP Send e-mail
ASP Response
ASP Request
ASP Application
ASP Session
ASP Server
ASP Error
ASP FileSystem
ASP TextStream

ASP CompareMode 属性


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-03-04   浏览: 367 ::
收藏到网摘: 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

登陆 | 还没注册?