[lazarus] Lazarus under GTK2

2006-06-06 Thread DarekM
Hi I'm proud to anons: Lazarus under GTK2 don't crash First screenshot: http://www.emadar.com/lazarusgtk2.png Darek PS. I send Patch _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject

Re: [lazarus] More generic RPM for SuSE and FedoraCore

2006-06-06 Thread Joost van der Sluis
On Tue, 2006-06-06 at 00:01 +0200, Mattias Gaertner wrote: On Mon, 05 Jun 2006 19:38:58 +0200 Joost van der Sluis [EMAIL PROTECTED] wrote: You can't get around providing different rpm's for different distributions. Large problem is offcourse building them... In my opinion, when you

Re: [lazarus] Not quite sure about if then construction

2006-06-06 Thread Tomas Gregorovic
John Meyer napsal(a): if i_Error 0 then begin d_SalesTax := 0; end; - you should remove the semicolon (;) after end keyword else ---line that is giving me the error if d_SalesTax 0 then begin d_SalesTax := d_SalesTax / 100

Re: [lazarus] IDE don't unload/reset debugger after project execution

2006-06-06 Thread Marc Weustink
Gabor Boros wrote: Hi! I wrote a very small test application for testing UIB. If I run the project first time everything is fine, but if run it again I get an EUIBError message. If I reset the debugger from Run menu between executions the program is start properly. My question is: why the

Re: [lazarus] MySQL Date Fields

2006-06-06 Thread David B Copeland
Bram, Thanks, I will try a newer FPC. I think you're right about NULL rather than 0. I specified NOT NULL on the date fields in the schema but I believe that the ODBC driver for Mysql converts the special 0 value to NULL because ODBC cannot handle them. Dave. On Tue, 2006-06-06 at 07:56 +0200,

Re: [lazarus] Lazarus under GTK2

2006-06-06 Thread A.J. Venter
On Tuesday 06 June 2006 10:13, DarekM wrote: Hi I'm proud to anons: Lazarus under GTK2 don't crash First screenshot: http://www.emadar.com/lazarusgtk2.png Thanks, I've been trying to track down that bug for weeks myself. What was it in the end ? A.J. -- 80% Of a hardware engineer's job is

Re: [lazarus] MySQL Date Fields

2006-06-06 Thread David B Copeland
Yes, I installed todays daily snapshot of 2.1.1 and that fixed it. Thanks, Dave. On Tue, 2006-06-06 at 07:48 -0400, David B Copeland wrote: Bram, Thanks, I will try a newer FPC. I think you're right about NULL rather than 0. I specified NOT NULL on the date fields in the schema but I

Re: [lazarus] Function to parse valid CSV string?

2006-06-06 Thread Alexandre Leclerc
2006/6/5, Luiz Americo Pereira Camara [EMAIL PROTECTED]: Alexandre Leclerc escreveu: I checked arround to see if there was a function to parse a valid CSV string and return the result in a array? procedure DecodeCSV(s: string; var a: array of string); So a string like: 123, my name, name,

Re: [lazarus] Function to parse valid CSV string?

2006-06-06 Thread Alexandre Leclerc
2006/6/5, Bisma Jayadi [EMAIL PROTECTED]: I checked arround to see if there was a function to parse a valid CSV string and return the result in a array? Try to look at TjanSQL component which has been ported to Lazarus on FPC Contributed Units section. This component is a CSV database engine

Re: [lazarus] Function to parse valid CSV string?

2006-06-06 Thread ik
I might be wrong here, but as far as I remember, in CSV the first line tells us what is the seperator of fields, and only if there is no such line, you need to assume that it is ,. Regardsing the issue, you first need to retrive the item, and then strip the char... Ido On 6/6/06, Alexandre

Re: [lazarus] Function to parse valid CSV string?

2006-06-06 Thread Timothy Ha
Alexandre Leclerc wrote: 2006/6/5, Bisma Jayadi [EMAIL PROTECTED]: I checked arround to see if there was a function to parse a valid CSV string and return the result in a array? Try to look at TjanSQL component which has been ported to Lazarus on FPC Contributed Units section. This component

[lazarus] Fwd: Question about memory leaks with array of string

2006-06-06 Thread Alexandre Leclerc
Since the fpc list is down, I post my message here... -- Forwarded message -- From: Alexandre Leclerc [EMAIL PROTECTED] Date: 05.06.2006 17:27 Subject: Question about memory leaks with array of string To: FPC-Pascal users discussions fpc-pascal@lists.freepascal.org I made the

[lazarus] Server replacement

2006-06-06 Thread Vincent Snijders
Hi, One of the servers for of the fpc team is going to be replaced. For Lazarus this affects the lazarus wiki and the snapshots. The wiki is now located at http://wiki.lazarus.freepascal.org. It is currently in read-only mode to prevent loss of data. Until a new server has come into service a

Re: [lazarus] Fwd: Question about memory leaks with array of string

2006-06-06 Thread David Nicolás Abdala
Since the fpc list is down, I post my message here... -- Forwarded message -- From: Alexandre Leclerc [EMAIL PROTECTED] Date: 05.06.2006 17:27 Subject: Question about memory leaks with array of string To: FPC-Pascal users discussions fpc-pascal@lists.freepascal.org I

RE: [lazarus] JCL and JVCL

2006-06-06 Thread George Birbilis
Has anybody managed to pot JCL and maybe JVCL too to Lazarus? Plus Turbo Power set of components (Orpheus,Abbrevia,B-Filer SQL database,XML Parner,LockBox,OnGuard etc) :-) Nice idea. Who's brave ? That's a big challenge.However in first stage we could easily drop those components which

RE: [lazarus] Fwd: Question about memory leaks with array of string

2006-06-06 Thread George Birbilis
I made the following dynamic array: a: array of string. I do SetLength(a, 10) then assign values. In order to prevent memory leaks, does a simple SetLength(a, 0) will do the job, or do I have to also SetLength(a[n], 0) of all the values? I'm not sure you need to do either

Re: [lazarus] Fwd: Question about memory leaks with array of string

2006-06-06 Thread Michael Van Canneyt
On Tue, 6 Jun 2006, David Nicolás Abdala wrote: Since the fpc list is down, I post my message here... -- Forwarded message -- From: Alexandre Leclerc [EMAIL PROTECTED] Date: 05.06.2006 17:27 Subject: Question about memory leaks with array of string To: FPC-Pascal users

Re: [lazarus] Function to parse valid CSV string?

2006-06-06 Thread Alexandre Leclerc
My goal is not to interprete a csv file, but interpret a record in a csv file. All this logic could be implemented in a class that would then call the function I'm completing. But usually, you just can't detect what is the field separator. This is why, for example, OpenOffice is always prompting

Re: [lazarus] Fwd: Question about memory leaks with array of string

2006-06-06 Thread Alexandre Leclerc
2006/6/6, Michael Van Canneyt [EMAIL PROTECTED]: On Tue, 6 Jun 2006, David Nicolás Abdala wrote: Since the fpc list is down, I post my message here... -- Forwarded message -- From: Alexandre Leclerc [EMAIL PROTECTED] Date: 05.06.2006 17:27 Subject: Question about

[lazarus] New function proposal in strutils: DecodeCSVStr()

2006-06-06 Thread Alexandre Leclerc
Hi all, here is the CSV decoding function. I have a problem with the array of string as the compiler is saying the type is not good when trying the SetLength(a). I must create a type for this. Now I submit this procedure (because a function cant' return an array of string, but could probably

Re: [lazarus] empty TDateEdit

2006-06-06 Thread Michael Van Canneyt
On Tue, 6 Jun 2006, Fernando Kochhann wrote: Why TDateEdit can't be empty? Executing my software, when I leave the TDateEdit and it's empty the today's date is inserted automatically! But I need it empty. And the calendar of TDateEdit is confused, the days of the week are overlapped,

Re: [lazarus] empty TDateEdit

2006-06-06 Thread Fernando Kochhann
Sorry but I didn't found a property(?) 'DefaultToday'. I was looking for it in Object Inspector, and setting 'dateedit.DefaultToday := false' occurs a error at compile ('uctapagar.pas(992,14) Error: identifier idents no member "defaulttoday"'). What I do wrong? Michael Van Canneyt wrote:

Re: [lazarus] New function proposal in strutils: DecodeCSVStr()

2006-06-06 Thread David Nicolás Abdala
Hi all, here is the CSV decoding function. I have a problem with the array of string as the compiler is saying the type is not good when trying the SetLength(a). I must create a type for this. Now I submit this procedure (because a function cant' return an array of string, but could

Re: [lazarus] New function proposal in strutils: DecodeCSVStr()

2006-06-06 Thread Alexandre Leclerc
2006/6/6, David Nicolás Abdala [EMAIL PROTECTED]: Hi all, here is the CSV decoding function. I have a problem with the array of string as the compiler is saying the type is not good when trying the SetLength(a). I must create a type for this. Now I submit this procedure (because a

Re: [lazarus] MySQL Date Fields

2006-06-06 Thread Graeme Geldenhuys
On 6/6/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: has a value of 0. This will occur both in the Designer and in execution. Sometimes the string of numbers varies some. SQL Date and Time fields, in most SQL Servers, cannot have a 0 value like integers or (empty string) for characters.

Re: [lazarus] Function to parse valid CSV string?

2006-06-06 Thread Bisma Jayadi
Free Pascal - Unit contribution form http://www.freepascal.org/contrib/db.php3?category=all laz-*TjanSQL* v.1.2 is modified version of *TjanSQL* v.1.1 to make it *...* *TjanSQL* itself is a text comma-separated-value database engine with SQL ability. *...*