TROMacroProc

Overview

The TROMacroProc contains definitions of functions for usage in macro expressions.

Example: declaration of System.Copy function:

var
  R: TROMacroProc;
begin
  R := TROMacroProc.Create;
  r.ExternalName := UpperCase('Copy');
  r.ExternalNameHash := MakeHash(r.ExternalName);
  r.ExternalProc := System.Copy;
  r.ParamCount := 3;

Usage: SELECT {Copy(CustomerID, 2, 3)} FROM Orders

Location

Properties


ExternalName

property ExternalName: string read write

ExternalNameHash

property ExternalNameHash: Integer read write

ParamCount

property ParamCount: Integer read write

Events


ExternalProc

property ExternalProc: TExternalProc read write
delegate: function ExternalProc(Sender: TObject; const Parameters: array of string): string