MyDAC

TMacros.FindMacro Method

Searches for a TMacro object by its name.

Class

TMacros

Syntax

function FindMacro(const Value: string): TMacro;

Parameters
Value
Holds the value of a macro to search for.
Return Value
TMacro object if a match was found, nil otherwise.

Remarks

Call the FindMacro method to find a macro with the name passed in Value. If a match is found, FindMacro returns the macro. Otherwise, it returns nil. Use this method rather than a direct reference to the Items property to avoid depending on the order of the entries.

© 1997-2017 Devart. All Rights Reserved. Request Support DAC Forum Provide Feedback