网络学院 w3pop社区 网络资源 IT新闻

w3pop.com :: 网络学院 :: ADO :: ADO AddNew 方法

会员登陆

帐号

密码

回答

记住密码

忘记密码? 注册

ADO AddNew 方法


作者:w3pop.com 翻译/整理:w3pop.com 发布:2007-04-28 浏览:1528 :: ::

The AddNew method creates a new record for an updateable Recordset object.
AddNew的作用是:为一个可更新的Recordset[记录集]对象创建一个新的记录。

After you call this method, the new record will be the current record. 
在你请求这个方法之后,新创建的记录将变成当前记录。

Syntax
语法

objRecordset.AddNew fieldlist,values

Parameter参数 Description描述
fieldlist Optional. A field name, or an array of field names, or the numeric position of the fields in the new record
可选参数。指定一个字段对象,或是以一个包含字段名数组,或是字段位于新记录中的位置(以数值表示)
values Optional. A value, or an array of values for the fields in the new record
可选参数。指定一个值,或是新记录中“字段/值”形式的数组

Example
案例

<%
rs.AddNew "ProductName","Chang"
%>

or

<%
varfields=Array("ProductName","Prize","Quantity")
varvalues=Array("Chang","19","24-12 oz bottles")
rs.AddNew varfields,varvalues
%>
 

评论 (0) All