[Lazarus] Saving an array to a string

Richard Mace richard.mace at gmail.com
Tue Jul 1 17:04:12 CEST 2014


Thanks Michael. And reading it back?
On 1 Jul 2014 15:57, "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/d07596f3/attachment-0003.html>


More information about the Lazarus mailing list