Oracle Objects for OLE
Release 9.2

Part Number A95895-01
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents

Master Index

Feedback

Modifying Collection Elements

If the collection instance is retrieved using a dynaset object, element values can be modified between a Dynaset Edit/Update pair. The following example code modifies the second element value of an ENAMELIST collection instance.

set OO4OSession = CreateObject("OracleInProcServer.XOraSession")

set hrDb = OO4OSession.OpenDatabase("ExampleDb", "scott/tiger", 0)

Set OraDynaset = hrDb.CreateDynaset("select * from department", 0&)

Set EnameList = OraDynaset.Fields("ENAMES").Value

OraDynaset.Edit

EnameList(2) = "Chris"

OraDynaset.Update


 
Oracle
Copyright © 1994, 2002 Oracle Corporation.

All Rights Reserved.
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents

Master Index

Feedback