UniDAC

TUniMacros.MacroByName Method

Used to search for a macro with the specified name.

Class

TUniMacros

Syntax

function MacroByName(const Name: string): TUniMacro;

Parameters
Name
Call the MacroByName method to find a Macro with the name passed in Value. If a match is found, MacroByName returns the Macro. Otherwise, an exception is raised. Use this method rather than a direct reference to the Items property to avoid depending on the order of the entries.

To locate a macro by name without raising an exception if the parameter is not found, use the FindMacro method.

Return Value
TUniMacro object, if a macro with specified name was found.
© 1997-2024 Devart. All Rights Reserved. Request Support DAC Forum Provide Feedback