UniDAC

TUniMacros.FindMacro Method

Searches for a TUniMacro object by its name.

Class

TUniMacros

Syntax

function FindMacro(const Name: string): TUniMacro;

Parameters
Name
Holds the name 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 Name. 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-2024 Devart. All Rights Reserved. Request Support DAC Forum Provide Feedback