dOPC Client Toolkit Help file
TdOPCEventCustomProps.IndexOf Method
C++
public: __fastcall int IndexOf(
    AnsiString CustPropName
);
C#
public int IndexOf(
    String CustPropName
);
Visual Basic
Public Function IndexOf(
    CustPropName As String
) As Integer

IndexOf returns the index value of the custom property with the passed CustPropName.

Returns -1 if the property specified by CustPropName is not found.

 ...
index := CustomProps.IndexOf('Vendor Item')
if Index >= 0 then
  V := CustomProps.ValueAsString(Index); //get value for this vendor attribute
What do you think about this topic? Send feedback!
Copyright © 2001-2014 Kassl GmbH (http://www.kassl.de). All rights reserved.