Discuss this help topic in SecureBlackbox Forum

TElASMessageErrorList.IndexOf

TElASMessageErrorList     See also     


Filter: C#/Java  VB.NET  Pascal  C++  PHP  


Returns index of the desired error in the list.

Declaration

[C#/Java]
    int IndexOf(TElASMessageError Error);
    int IndexOf(int Code);

[VB.NET]
    Function IndexOf(ByVal Error As TElASMessageError) As Integer
    Function IndexOf(ByVal Code As Integer) As Integer

[Pascal]
    function IndexOf(Error : TElASMessageError): integer;
    function IndexOf(Code : integer) : integer;

[C++]
    int32_t IndexOf(TElASMessageError &Error);
    int32_t IndexOf(TElASMessageError *Error);
    int32_t IndexOf(int32_t Code);

[PHP]
    integer IndexOf(TElASMessageError $Error)
    integer IndexOf(integer $Code)

Parameters

  • Error - desired message error
  • Code - message error code

Error codes:


Return value

    Returns index of the desired item in the list.
    If there are more than one items that satisfy the criteria, the index of the first one is returned.
    If there no matches were found, -1 is returned.

Description

    Use this method to get the index of the desired error in the list using error object itself or error code.

See also:     First     Last     Sort    

Discuss this help topic in SecureBlackbox Forum