SDAC

TDAScript.FindMacro Method

Finds a macro with the specified name.

Class

TDAScript

Syntax

function FindMacro(Name: string): TMacro;

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

Remarks

Call the FindMacro method to find a macro with the specified name. If a match is found, FindMacro returns the macro. Otherwise, it returns nil. Use this method instead of a direct reference to the TMacros.Items property to avoid depending on the order of the items.

See Also

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