<div dir="ltr"><pre style="color:rgb(0,0,0);word-wrap:break-word;white-space:pre-wrap">I use this code in my project:</pre><pre style="color:rgb(0,0,0);word-wrap:break-word;white-space:pre-wrap"> for i := 0 to length(Args) - 1 do
begin
sArgs := sArgs + VarToStr(Args[i]);
if i < (length(Args) - 1) then
sArgs := sArgs + ';';
end;</pre><pre style="color:rgb(0,0,0);word-wrap:break-word;white-space:pre-wrap"><br></pre><pre style="color:rgb(0,0,0);word-wrap:break-word;white-space:pre-wrap">Att.</pre><pre style="color:rgb(0,0,0);word-wrap:break-word;white-space:pre-wrap">
JB</pre></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr"><div style="font-size:small;font-family:arial"><br>José Benedito</div><div style="font-size:small;font-family:arial">JBS Soluções<br>Consulting Systems Development<br>
<a href="mailto:josebenedito@gmail.com" style="color:rgb(17,85,204)" target="_blank">c</a><a href="mailto:ontato@jbsolucoes.net" style="color:rgb(17,85,204)" target="_blank">ontato@jbsolucoes.net</a><br><div><div><a href="http://www.jbsolucoes.net/" style="color:rgb(17,85,204)" target="_blank">www.jbsolucoes.net</a></div>
<div><br>skype: <a href="mailto:sac@jbsolucoes.net" style="color:rgb(17,85,204)" target="_blank">sac@jbsolucoes.net</a><br></div></div></div></div></div>
<br><br><div class="gmail_quote">On Tue, Jul 1, 2014 at 11:55 AM, Michael Thompson <span dir="ltr"><<a href="mailto:mike.cornflake@gmail.com" target="_blank">mike.cornflake@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div class=""><span style="font-family:arial,helvetica,sans-serif;font-size:13px">> Is it possible to save an array of string to a single string for storing in a string field within a database?</span><br>
<div><span style="font-family:arial,helvetica,sans-serif;font-size:13px"><br>
</span></div></div><div><span style="font-family:arial,helvetica,sans-serif;font-size:13px">Suspect it'll be something like</span></div><div><span style="font-family:arial,helvetica,sans-serif;font-size:13px">MyString := '';</span></div>
<div><span style="font-family:arial,helvetica,sans-serif;font-size:13px">For i := Low(MyArray) to High(MyArray) Do</span></div><div><span style="font-family:arial,helvetica,sans-serif;font-size:13px"> MyString := MyString + MyArray[i] + LineEnding;</span></div>
<div><span style="font-family:arial,helvetica,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,helvetica,sans-serif;font-size:13px">MyStringField.AsString := MyString;</span></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote"><div><div class="h5">On 1 July 2014 16:49, Richard Mace <span dir="ltr"><<a href="mailto:richard.mace@gmail.com" target="_blank">richard.mace@gmail.com</a>></span> wrote:<br></div></div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Hi All,<br>Is it possible to save an array of string to a single string for storing in a string field within a database?<br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">
If so, could anyone give me any pointers please?<br><br>Thanks<span><font color="#888888"><br><br>Richard<br></font></span></div></div>
<br></div></div><span class="HOEnZb"><font color="#888888">--<br>
_______________________________________________<br>
Lazarus mailing list<br>
<a href="mailto:Lazarus@lists.lazarus.freepascal.org" target="_blank">Lazarus@lists.lazarus.freepascal.org</a><br>
<a href="http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus" target="_blank">http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus</a><br>
<br></font></span></blockquote></div><br></div>
<br>--<br>
_______________________________________________<br>
Lazarus mailing list<br>
<a href="mailto:Lazarus@lists.lazarus.freepascal.org">Lazarus@lists.lazarus.freepascal.org</a><br>
<a href="http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus" target="_blank">http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus</a><br>
<br></blockquote></div><br></div>