Re: [Lazarus] Lazarus on Udoo quad (ARM device) ?

2014-07-01 Thread Reinier Olislagers
On 01/07/2014 02:03, Anthony Tekatch wrote: On Mon, 23 Jun 2014 08:28:57 +0200, Reinier Olislagers reinierolislag...@gmail.com wrote: You could try installing that or perhaps compile using FPC trunk (manually or using a tool like fpcup [warning: fpcup author speaking ;)] see here

Re: [Lazarus] nonlcl basic issue: is codetools LCL dependent?

2014-07-01 Thread Michael Schnell
On 06/30/2014 07:53 PM, Graeme Geldenhuys wrote: In hobby projects that might be fine, but in commercial multi-platform apps that is unacceptable. I see. Regarding myself, I in fact don't like taking the enhanced effort of beatifying the GUI (and Delphi-introduced Windows Widget Set

Re: [Lazarus] nonlcl basic issue: is codetools LCL dependent?

2014-07-01 Thread Michael Van Canneyt
On Tue, 1 Jul 2014, Michael Schnell wrote: On 06/30/2014 07:53 PM, Graeme Geldenhuys wrote: In hobby projects that might be fine, but in commercial multi-platform apps that is unacceptable. I see. Regarding myself, I in fact don't like taking the enhanced effort of beatifying the GUI (and

Re: [Lazarus] nonlcl basic issue: is codetools LCL dependent?

2014-07-01 Thread Michael Schnell
On 07/01/2014 09:36 AM, Michael Van Canneyt wrote: You obviously don't often get in contact with clients and marketeers. I Do. But we do embedded stuff and not (very often) Software that runs visibly on PC screens. So this obviously is a different market ;-) . -Michael --

[Lazarus] Saving an array to a string

2014-07-01 Thread Richard Mace
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

Re: [Lazarus] Saving an array to a string

2014-07-01 Thread Michael Thompson
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

Re: [Lazarus] Saving an array to a string

2014-07-01 Thread JB
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

Re: [Lazarus] Saving an array to a string

2014-07-01 Thread Richard Mace
Thanks Michael. And reading it back? On 1 Jul 2014 15:57, 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

Re: [Lazarus] Saving an array to a string

2014-07-01 Thread Michael Thompson
I'm lazy, I'd do it via a TStringList :-) MyStringList := TStringList.Create; MyStringList.Text := MyStringField.AsString; SetLength(MyArray, MyStringlist.Count); For i := 0 To MyStringList.Count-1 Do MyArray[i] := MyStringList[i]; MyStringList.Free; In fact, I'd use a TStringList at both

Re: [Lazarus] Saving an array to a string

2014-07-01 Thread Philippe
you can use http://www.freepascal.org/docs-html/rtl/classes/tstringlist.html var lStrings : TStringList; begin lStrings := TStringList.Create; with lStrings do begin delimiter := yourdelimiter; // don´t know if you can use lineending strictdelimiter := true; DelimitedText

Re: [Lazarus] Saving an array to a string

2014-07-01 Thread silvioprog
2014-07-01 11:49 GMT-03:00 Richard Mace richard.m...@gmail.com: 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 You can use RUtils plugin:

Re: [Lazarus] Saving an array to a string

2014-07-01 Thread silvioprog
2014-07-01 12:04 GMT-03:00 Richard Mace richard.m...@gmail.com: Thanks Michael. And reading it back? You can use RUtils plugin again: uses RUtils; procedure TForm1.Button1Click(Sender: TObject); var ar: array of string; begin ar := RUtils.Explode('abc def ghi'); end; -- Silvio Clécio

Re: [Lazarus] Saving an array to a string

2014-07-01 Thread Michael Thompson
You can use RUtils plugin: https://github.com/silvioprog/rutils That's brilliant. This answers a question I posted on the forum last week. Mind if I quote your link in there? Mike -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] Saving an array to a string

2014-07-01 Thread Jürgen Hestermann
Am 2014-07-01 17:14, schrieb silvioprog: procedure TForm1.Button1Click(Sender: TObject); var ar: array of string; begin // your array SetLength(ar, 2); ar[0] := 'abc'; ar[1] := 'def'; ar[2] := 'ghi'; ar[2] will lead to an error if you set the length of the array to 2 (only indices

Re: [Lazarus] Saving an array to a string

2014-07-01 Thread silvioprog
2014-07-01 12:24 GMT-03:00 Jürgen Hestermann juergen.hesterm...@gmx.de: Am 2014-07-01 17:14, schrieb silvioprog: procedure TForm1.Button1Click(Sender: TObject); var ar: array of string; begin // your array SetLength(ar, 2); ar[0] := 'abc'; ar[1] := 'def'; ar[2] := 'ghi';

Re: [Lazarus] Saving an array to a string

2014-07-01 Thread silvioprog
2014-07-01 12:21 GMT-03:00 Michael Thompson mike.cornfl...@gmail.com: You can use RUtils plugin: https://github.com/silvioprog/rutils That's brilliant. This answers a question I posted on the forum last week. Mind if I quote your link in there? Mike Feel free to send it! :-) --

Re: [Lazarus] Saving an array to a string

2014-07-01 Thread Michael Thompson
That's brilliant. This answers a question I posted on the forum last week. Mind if I quote your link in there? Mike Feel free to send it! :-) Done http://forum.lazarus.freepascal.org/index.php/topic,25017.msg151539.html#msg151539 Many thanks :-) Mike --