A list of products available on this site
Documentation for XtraMania's xtras
Prices and links to the online store
Xtras, PDFs, samples
Have a question? Ask us!
Contacts
Logo. www.xtramaina.com  
Home Search E-mail
ADOxtra Reference/CreateObject()

xtra "ADOxtra".CreateObject(symObjectId)

Syntax

obj=CreateObject(xtra"ADOxtra",symObjectId)
or
obj=xtra("ADOxtra").CreateObject(symObjectId)

Parameters

symObjectId - a symbol specifying which object to create. It can be either #Connection or #Recordset.

Returns

Object: if successful, returns new ADOxtra wrapper instance for newly created object (either Connection or Recordset).

String: if failed, returns string with error description.

Description

This method is an analogue to Visual Basic's CreateObject. It is used to create new ADO objects. Therefore, it is a main entry point while using ADOxtra.

Sample

cnn=xtra("ADOxtra").CreateObject(#Connection)
rst=xtra("ADOxtra").CreateObject(#Recordset)

Site homeSearchContact author © Eugene Shoustrov. www.xtramania.com