w3pop.com :: 网络学院 :: ADO :: ADO AddNew 方法
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.
在你请求这个方法之后,新创建的记录将变成当前记录。
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 可选参数。指定一个值,或是新记录中“字段/值”形式的数组 |
<% rs.AddNew "ProductName","Chang" %> or <%
varfields=Array("ProductName","Prize","Quantity")
varvalues=Array("Chang","19","24-12 oz bottles")
rs.AddNew varfields,varvalues
%>
|
评论 (0)
All