Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Products Namespace / ProductVariantManager Class / GetIndexFromOptions Method / GetIndexFromOptions(Int32[]) Method
Array of option choices
In This Topic
    GetIndexFromOptions(Int32[]) Method
    In This Topic
    Gets the index of a variant in the grid given the option choices
    Syntax
    public int GetIndexFromOptions( 
       int[] optionChoiceIds
    )

    Parameters

    optionChoiceIds
    Array of option choices

    Return Value

    The index of the variant in the grid, or -1 if option choices are invalid
    Remarks
    This method only uses the first eight option choices. Additional choices are ignored.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also