[Lazarus] Saving an array to a string
JB
josebenedito at gmail.com
Tue Jul 1 17:00:33 CEST 2014
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 <josebenedito at gmail.com>ontato at jbsolucoes.net
www.jbsolucoes.net
skype: sac at jbsolucoes.net
On Tue, Jul 1, 2014 at 11:55 AM, Michael Thompson <mike.cornflake at 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.mace at 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 at lists.lazarus.freepascal.org
>> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>>
>>
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20140701/c7c1a35c/attachment-0003.html>
More information about the Lazarus
mailing list