<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Apr 15, 2016 at 2:47 PM, Leonardo M. Ramé <span dir="ltr"><<a href="mailto:l.rame@griensu.com" target="_blank">l.rame@griensu.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hi, I need to extract the field values of a GET query of type:<br>
<br>
<a href="http://127.0.0.1/cgi-bin/test.cgi?fields[1]=f1value&fields[2]=f2value" rel="noreferrer" target="_blank">http://127.0.0.1/cgi-bin/test.cgi?fields[1]=f1value&fields[2]=f2value</a><br>
<br>
Is there a way to handle this apart from HttpRequest.QueryFields?<br></blockquote><div><br></div><div>Yes.</div><div><br></div><div>Supposing you have an object called "TQuery" with the published property "Fields", you can do it easily with the "TBrookParser" object. Take a look at this demo:</div><div><br></div><div><a href="http://pastebin.com/QEh5Hnen" target="_blank">http://pastebin.com/QEh5Hnen</a><br></div><div><br></div><div>I've been using the "Fields" property as "TStringList", but you can use any list type, just creating a list adapter for that.</div><div><br></div><div>Feel free to use the <a href="https://plus.google.com/u/0/communities/101133820055678331036">Brook community</a> too! :-)</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Regards,<span><font color="#888888"><br>
-- <br>
Leonardo M. Ramé<br>
<a href="http://leonardorame.blogspot.com" rel="noreferrer" target="_blank">http://leonardorame.blogspot.com</a></font></span></blockquote></div><div><br></div>-- <br><div><div dir="ltr"><div>Silvio Clécio</div></div></div>
</div></div>