Auction.AuctionRandomBids

Ee798021.c++_on(en-US,CS.10).gifEe798021.vb_off(en-US,CS.10).gif

Use this method to enter random bids into an auction for testing or demonstration purposes.

Definition

Function AuctionRandomBids(szAuctionId As String,fDelete As Boolean,nNumberBids As Long) As Variant

Parameters

szAuctionId

A String that contains the unique auction ID.

fDelete

A Boolean that indicates whether to delete previous random bids before adding the new bids. A value of True specifies to delete the bids. A value of False specifies to save the bids.

nNumberBids

A Long that contains the number of random bids to add.

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

Random bids are entered under the bidder name "Random." The bids are at least the minimum bid and ask for a number of items between one and the number available.

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

Example

'szAuctionId is a GUID
oAuction.AuctionRandomBids szAuctionId, FALSE, 25

See Also

Auction Object


All rights reserved.