dOPC Client Toolkit
Close
dOPCAE.TdOPCEventCustomProps.IndexOf

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

function IndexOf(CustPropName: string): integer;
__fastcall int IndexOf(AnsiString 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
Kassl GmbH Copyright © 2019. All rights reserved.