Auction.AuctionInit

Ee810200.c++_on(en-US,CS.10).gifEe810200.vb_off(en-US,CS.10).gif

Use this method to initialize the Auction object.

Definition

Function AuctionInit(szDSN As String,szItemTableName As String,szBidTableName As String,szBidOrderBy As String,objMessageManager As Object,szLanguage As String,dtAMT As Date) As Variant

Parameters

szDSN

A String that contains the connection string to the database containing the Bid and Item tables.

szItemTableName

A String that contains the Item table name.

szBidTableName

A String that contains the Bid table name.

szBidOrderBy

A String that contains the default bid sort order (SQL ORDER BY clause).

objMessageManager

A MessageManager object.

szLanguage

A String that contains the language used by the MessageManager object.

dtAMT

A Date that contains a timestamp.

Return Values

The return value is reserved for future use. Ignore the return value.

Error Values

This method sets the Number property of the global Err object to S_OK (&H00000000) to indicate success and to standard COM error values to indicate failure. For more information about standard COM errors, see Standard COM Errors. Additional information may be available using the global Err object. In particular, the Description property may contain a text description of the error.

Remarks

For more information about memory ownership issues related to COM property and method parameters, see Managing COM Parameter Memory.

Example

'szDSN = _
'AppConfig.GetOptionsDictionary("").s_TransactionsConnectionString
'objMessageManager is the MessageManager object stored at application 
'scope.
'dtAMT is a timestamp.
'Ignore return value by treating AuctionInit as a subroutine.
oAuction.AuctionInit szDSN, "AuctionItem", "AuctionBid", "modified_date", objMessageManager, "English", dtAMT

See Also

Auction Object


All rights reserved.