Auction.AuctionAddBid

Ee823400.c++_on(en-US,CS.10).gifEe823400.vb_off(en-US,CS.10).gif

Use this method to add or update a bid on an item. The bid is validated according to all the current rules for the auction.

Definition

Function AuctionAddBid(szAuctionId As String,szShopperId As String,szBidName As String,szEmail As String,cyBidPrice As Currency,nDesired As Long,fTakeLess As Boolean,cyMinimumBid As Currency,objErrorList As Object,Optional bResolve As Boolean) As Long

Parameters

szAuctionId

A String that contains the unique auction ID.

szShopperId

A String that contains the unique ID of the unique bidder.

szBidName

A String that contains the name of the bidder.

szEmail

A String that contains the email address of the bidder.

cyBidPrice

A Currency that contains the bid amount.

nDesired

A Long that contains the number of wanted items.

fTakeLess

A Boolean that indicates whether the bidder will take less than the wanted number of items. A value of False indicates the bidder will not accept less than the wanted number of items.

cyMinimumBid

A Currency that contains the minimum bid.

objErrorList

A SimpleList object that contains a list of errors generated by the MessageManager object.

bResolve

A Boolean that indicates whether to call the AuctionResolve method. A value of True causes the method to be called with the bOptimize parameter of the method set to True. A value of False causes the Auction object to skip the automatic call to the AuctionResolve method. The default value is True.

Return Values

If this method completes successfully, it returns a Long that contains the number of error strings written to the objErrorList object*.*

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

'lNumErrStrings is a Long
'szAuctionID is a String containing a GUID
'oErrorList is an object

lNumErrStrings = oAuction.AuctionAddBid(szAuctionID, "Bidder123456", szBidName, "Bidder123456@isp.com", 25.00, 5, FALSE, 19.99, oErrorList, TRUE)

See Also

Auction Object


All rights reserved.