I use this code in my project:

      for i := 0 to length(Args) - 1 do
      begin
        sArgs := sArgs + VarToStr(Args[i]);

        if i < (length(Args) - 1) then
          sArgs := sArgs + ';';
      end;


Att.


JB



José Benedito
JBS Soluções
Consulting Systems Development
c <josebened...@gmail.com>ont...@jbsolucoes.net
www.jbsolucoes.net

skype: s...@jbsolucoes.net


On Tue, Jul 1, 2014 at 11:55 AM, Michael Thompson <mike.cornfl...@gmail.com>
wrote:

> > Is it possible to save an array of string to a single string for storing
> in a string field within a database?
>
> Suspect it'll be something like
> MyString := '';
> For i := Low(MyArray) to High(MyArray) Do
>   MyString := MyString + MyArray[i] + LineEnding;
>
> MyStringField.AsString := MyString;
>
>
> On 1 July 2014 16:49, Richard Mace <richard.m...@gmail.com> wrote:
>
>> Hi All,
>> Is it possible to save an array of string to a single string for storing
>> in a string field within a database?
>> If so, could anyone give me any pointers please?
>>
>> Thanks
>>
>> Richard
>>
>> --
>> _______________________________________________
>> Lazarus mailing list
>> Lazarus@lists.lazarus.freepascal.org
>> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>>
>>
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus@lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>
>
--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to