Auction.AuctionBidNormalize

Ee823308.c++_on(en-US,CS.10).gifEe823308.vb_off(en-US,CS.10).gif

Use this method to normalize a bid to a whole multiple of the bid increment.

Definition

Function AuctionBidNormalize(cyBidAmount As Currency,cyBidIncrement As Currency,cyMinimumBid As Currency) As Currency

Parameters

cyBidAmount

A Currency that contains the bid amount.

cyBidIncrement

A Currency that contains the bid increment.

cyMinimumBid

A Currency that contains the minimum bid allowed.

Return Values

If this method completes successfully, it returns a Currency that contains the normalized bid.

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

' currNormBid is a Currency, the bid amount is $10.50
currNormBid = oAuction.AuctionBidNormalize(10.50, 1.00, 8.00)
' After the call, currNormBid = 10.00

See Also

Auction Object


All rights reserved.