In my Delphi development, I want to pass a โconst arrayโ (which may also contain a class) for the procedure, as well as in the loop procedure for the elements, and determine the type of element, as shown below.
Procedure Test(const Args : array of const); begin end; and in my code call it with some variables Procedure Test(); begin cls := TMyObject.create; i := 123; j := 'book'; l := False; Test([i,j,l, cls, 37.8]) end;
How to loop on sent elements of an array and determine its type?
Moh tarvirdi
source share