adTempus API
ArcanaDevelopment.adTempus.Shared Namespace / Bitmask Class / SetBit Method
The bitmask value to update.
The bit (0 - 31) to set
true to set the bit or false to clear it


In This Topic
    SetBit Method
    In This Topic
    Sets a bit in a bitmask.
    Syntax
    'Declaration
     
    
    Public Shared Function SetBit( _
       ByVal val As Integer, _
       ByVal bit As Integer, _
       ByVal setting As Boolean _
    ) As Integer
    public static int SetBit( 
       int val,
       int bit,
       bool setting
    )
    public:
    static int SetBit( 
       int val,
       int bit,
       bool setting
    ) 

    Parameters

    val
    The bitmask value to update.
    bit
    The bit (0 - 31) to set
    setting
    true to set the bit or false to clear it
    See Also