Re: [Lazarus] Date format conversion function?

2011-12-22 Thread michael . vancanneyt
On Wed, 21 Dec 2011, Howard Lee Harkness wrote: I am using SQLite in a small application, and using TDateEdit to pick a date. The date is returned in the Text field (I can't find a DateTime property in this control) in the format 'mm/dd/', and to use INSERT in SQLite, it wants dates in

[Lazarus] Run-time packages create a register unit

2011-12-22 Thread ik
Hello, I'm creating a run-time package, but it seems that Lazarus also create a register unit with the package itself. Why is that, if I do not wish to register components, but only add units to path, and how can I avoid it ? Thanks, Ido -- ___ Lazarus

Re: [Lazarus] Run-time packages create a register unit

2011-12-22 Thread Sven Barth
Am 22.12.2011 11:04, schrieb ik: Hello, I'm creating a run-time package, but it seems that Lazarus also create a register unit with the package itself. Why is that, if I do not wish to register components, but only add units to path, and how can I avoid it ? This package unit is always

[Lazarus] Bug on Lazarus Startup

2011-12-22 Thread William Oliveira Ferreira
somedays ago i´ve wrote a mail about a bug on lazarus startup. I don´t remember the date, the subject or other thing that should help to localize it. The bug heappens on the Windows 7 32bits computer that i use on my work. When start lazarus (also after a clean uninstall, removing config files

Re: [Lazarus] Run-time packages create a register unit

2011-12-22 Thread Mattias Gaertner
ik ido...@gmail.com hat am 22. Dezember 2011 um 11:04 geschrieben: Hello, I'm creating a run-time package, but it seems that Lazarus also create a register unit with the package itself. Why is that, if I do not wish to register components, but only add units to path, and how can I

[Lazarus] What's the correct way to use TRegexEngine?

2011-12-22 Thread silvioprog
Hi, The correct way to use RegEx is like I'm showing below? (I saw this code in bugtracker) uses RegEx; procedure TForm1.Button1Click(Sender: TObject); var VRegEx: TRegexEngine; VErrorCode: TRegexError; VOffset, VErrorPos, VMatchPos: Integer; begin VRegEx :=

Re: [Lazarus] Date format conversion function?

2011-12-22 Thread Howard Lee Harkness
On Thu, Dec 22, 2011 at 2:30 AM, michael.vancann...@wisa.be wrote: See FormatDateTime in sysutils. And TDateEdit has a Date property which is of type TDateTime. Michael. I discovered that about thirty minutes after I posted the request. Thanks! -- Howard Lee Harkness (214) 390-4896 --

Re: [Lazarus] Run-time packages create a register unit

2011-12-22 Thread michael . vancanneyt
On Thu, 22 Dec 2011, Mattias Gaertner wrote: ik ido...@gmail.com hat am 22. Dezember 2011 um 11:04 geschrieben: Hello, I'm creating a run-time package, but it seems that Lazarus also create a register unit with the package itself. Why is that, if I do not wish to register components,

Re: [Lazarus] Run-time packages create a register unit

2011-12-22 Thread ik
2011/12/22 michael.vancann...@wisa.be On Thu, 22 Dec 2011, Mattias Gaertner wrote: ik ido...@gmail.com hat am 22. Dezember 2011 um 11:04 geschrieben: Hello, I'm creating a run-time package, but it seems that Lazarus also create a register unit with the package itself. Why is

[Lazarus] Error compiling trunk version 34361 on win64

2011-12-22 Thread marcelo.bp
The following error occurred when compiling current trunk version (34361) on win64, issued as: make bigide OPT=”-dUseCHMHelp” Compiling lazregions.pas lazregions.pas(39,37) Error: Identifier not found TFPCustomRegion lazregions.pas(39,37) Error: class type expected, but got erroneous type

Re: [Lazarus] Error compiling trunk version 34361 on win64

2011-12-22 Thread Felipe Monteiro de Carvalho
Update your Free Pascal. -- Felipe Monteiro de Carvalho -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

[Lazarus] RE : Error compiling trunk version 34361 on win64

2011-12-22 Thread Ludo Brands
The following error occurred when compiling current trunk version (34361) on win64, issued as: make bigide OPT=-dUseCHMHelp Compiling lazregions.pas lazregions.pas(39,37) Error: Identifier not found TFPCustomRegion lazregions.pas(39,37) Error: class type expected, but got erroneous type

Re: [Lazarus] RE : Error compiling trunk version 34361 on win64

2011-12-22 Thread Alexander Shishkin
22.12.2011 19:28, Ludo Brands пишет: In lazregions.pas there are several ifdef's on the fpc version that go upto 2.6. Since you use 2.7.1 they fail. Add 2.7 to the ifdefs or use fpc 2.4.4/ 2.6.0. Officially lazarus compiles only what latest fpc release version. Ludo --

Re: [Lazarus] RE : Error compiling trunk version 34361 on win64

2011-12-22 Thread Sven Barth
Am 22.12.2011 16:28, schrieb Ludo Brands: The following error occurred when compiling current trunk version (34361) on win64, issued as: make bigide OPT=”-dUseCHMHelp” Compiling lazregions.pas lazregions.pas(39,37) Error: Identifier not found TFPCustomRegion

Re: [Lazarus] What's the correct way to use TRegexEngine?

2011-12-22 Thread Mark Morgan Lloyd
silvioprog wrote: Hi, The correct way to use RegEx is like I'm showing below? (I saw this code in bugtracker) regex1 := TRegExpr.Create; regex1.Expression := pattern1; with regex1 do begin if Exec(test1) then begin WriteLn('match'); end else WriteLn('no match'); --

Re: [Lazarus] What's the correct way to use TRegexEngine?

2011-12-22 Thread silvioprog
2011/12/22 Mark Morgan Lloyd markmll.laza...@telemetry.co.uk: silvioprog wrote: Hi, The correct way to use RegEx is like I'm showing below? (I saw this code in bugtracker)  regex1 := TRegExpr.Create;  regex1.Expression := pattern1;  with regex1 do begin    if Exec(test1) then begin    

Re: [Lazarus] Run-time packages create a register unit

2011-12-22 Thread Mattias Gaertner
On Thu, 22 Dec 2011 15:10:47 +0100 (CET) michael.vancann...@wisa.be wrote: [...] Out of curiosity: Does the package system check that for a run-time package, none of the units is flagged as a 'Has register procedure' ? No. Mattias -- ___ Lazarus

Re: [Lazarus] Run-time packages create a register unit

2011-12-22 Thread Michael Van Canneyt
On Thu, 22 Dec 2011, Mattias Gaertner wrote: On Thu, 22 Dec 2011 15:10:47 +0100 (CET) michael.vancann...@wisa.be wrote: [...] Out of curiosity: Does the package system check that for a run-time package, none of the units is flagged as a 'Has register procedure' ? No. That's one for the

Re: [Lazarus] What's the correct way to use TRegexEngine?

2011-12-22 Thread Graeme Geldenhuys
On 22 December 2011 21:25, silvioprog silviop...@gmail.com wrote: I can not use the LCL. What has regex and LCL have to do with each other? Why do you think regex requires LCL? I have many apps that use regex, and none of the depend on LCL. -- Regards,   - Graeme -