Skip to main content
Table of Contents

TTMSMCPTargets.FindByObject Method

Searches the collection for the target of an object.

API unit family: TMS.MCP.Attributes.Server Declaring type: TTMSMCPTargets

Syntax

TMS.MCP.Attributes.Server.hppPascalC++
function FindByObject(AObject: TObject): TTMSMCPTarget;
TTMSMCPTarget* __fastcall FindByObject(System::TObject* AObject);

Parameters

Name Description
AObject Instance to look for.

Returns

The matching target, or nil when the instance is not in the collection.