<div dir="ltr"><br><div class="gmail_quote">On Thu, Feb 9, 2012 at 8:21 PM, Ludo Brands <span dir="ltr"><<a href="mailto:ludo.brands@free.fr">ludo.brands@free.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<u></u>
<div><div class="im">
<div><font color="#0000ff" face="Arial"></font> </div>
<blockquote dir="ltr" style="PADDING-LEFT:5px;MARGIN-LEFT:5px;BORDER-LEFT:#0000ff 2px solid;MARGIN-RIGHT:0px">
<div></div>
<div dir="ltr" lang="fr" align="left"><font color="#0000ff" face="Arial"></font><br><br>Thanks, but that is not my expected
answer, my ask about "dynamic array of record" and without define a variable
to pass it by params, for example i can pass the params for array of string
like this<br><br>func2(['t1', 't1']); this work, but i want to extend the
params info?<br><br></div></blockquote>
</div><div dir="ltr"><span>You can use a small helper function
like this:</span></div>
<div dir="ltr"><span><font color="#0000ff" face="Arial"></font></span> </div>
<div dir="ltr"><span><font color="#0000ff" face="Arial"></font></span> </div>
<div dir="ltr"><span><font color="#0000ff" face="Arial">type<div class="im"><br> TInfo=record<br> s:
string;<br> i: integer;<br> end;<br></div></font></span></div>
<div dir="ltr"><span><font color="#0000ff" face="Arial"> function makeinfo(s:string;i:integer):TInfo;<br>
begin<br> result.s:=s;<br>
result.i:=i;<br> end;<br></font></span></div>
<div dir="ltr"><span><font color="#0000ff" face="Arial">...</font></span></div>
<div dir="ltr"><span><font color="#0000ff" face="Arial"></font></span> </div>
<div dir="ltr"><span><font color="#0000ff" face="Arial"> func1([makeinfo('test1', 1), makeinfo('test2',
2)]);<br></font></span></div>
<div dir="ltr"><span><font color="#0000ff" face="Arial"></font></span> <br></div></div></blockquote><div><br>Yes, it is good idea, i will try it :D <br></div></div><br><div dir="ltr">Best Regards<br>Zaher Dirkey</div><br>
</div>