dOPC Client Toolkit Help file
TdOPCEventCustomProps.IndexOf Method
public: __fastcall int IndexOf(
    AnsiString CustPropName
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 ( All rights reserved.