Re: [Lazarus] chmhelp is broken in svn

2012-02-21 Thread John Landmesser
no probs here with lazarus, F1 on TFileStream Lazarus 0.9.31 r35434 FPC 2.6.0 i386-linux-gtk 2 svn 35434 I set for CHM Help Viewer the path: HelpExe and HelpFilePath nothing else! On 21.02.2012 09:53, Thomas Moritz wrote: Hello, sample: Key F1 over 'TFileStream' goes wrong! (break the

[Lazarus] open a list of packages to be installed uses a savedialog

2012-04-05 Thread John Landmesser
svn of lazarus Lazarus 1.1 r36581M FPC 2.6.0 i386-linux-gtk 2, windows and linux, german localization: if you open a list of packages to be installed, the IDE uses a savedialog to select the file to be opened. The german button caption is speichern --

[Lazarus] Strg + D doesn't invoke Jedi Code formatter ?

2012-04-05 Thread John Landmesser
Strg + d in a german Lazarus 1.1 r36581M FPC 2.6.0 i386-linux-gtk 2 does not format the actual IDE code window, but shows me a dialog JCF parse Tree and does not reformat the code. I think i changed nothing in the IDE settings for JCF. -- ___

Re: [Lazarus] Strg + D doesn't invoke Jedi Code formatter ?

2012-04-06 Thread John Landmesser
On 05.04.2012 23:35, Maxim Ganetsky wrote: 05.04.2012 22:11, John Landmesser написал: Strg + d in a german Lazarus 1.1 r36581M FPC 2.6.0 i386-linux-gtk 2 does not format the actual IDE code window, but shows me a dialog JCF parse Tree and does not reformat the code. I think i changed nothing

Re: [Lazarus] Strip debug info

2012-04-28 Thread John Landmesser
On 28.04.2012 08:57, Richard Mace wrote: Hi, What's the safest way of making the .exe smaller than default? Is it just to strip debug info? How would I do this? Thanks in advance Richard -- ___ Lazarus mailing list

Re: [Lazarus] Strip debug info

2012-04-28 Thread John Landmesser
On 28.04.2012 08:57, Richard Mace wrote: Hi, What's the safest way of making the .exe smaller than default? Is it just to strip debug info? How would I do this? Thanks in advance Richard -- ___ Lazarus mailing list

Re: [Lazarus] TStringGrid: Custom Columns x standard columns

2012-05-02 Thread John Landmesser
On 02.05.2012 17:09, Alexsander Rosa wrote: How do I get the column index (for use with Cells[]) from a TColumn's title with ColMove enabled? I need to track where the user moved the column to; at first, TColumn[0] is at column 1 (FixedCols=1). When the user moves TColumn[0] to somewhere else,

[Lazarus] package SQLDBlaz on Win XP (32bit) and lazarus svn

2012-05-03 Thread John Landmesser
For Lazarus 1.1 r37145 FPC 2.6.1 i386-win32-win32/win64 the package: C:\lazarus\components\sqldb\sqldblaz.lpk Cannot be inbstalled. Error message is: registersqldb.pas(0,0) Fatal: Can not find unit mssqlconn used by registersqldb. On my Debian-Sid 32bit Linux there are no problems with this

Re: [Lazarus] Possible TQuery or resource reader problem, all (unix) targets

2012-07-18 Thread John Landmesser
Am 18.07.2012 18:51, schrieb Mark Morgan Lloyd: Mark Morgan Lloyd wrote: I've got a problem that appears to have got into the Lazarus IDE etc. at some point after 36903. It affects all targets I've tested so far, i.e. SPARC/Solaris, SPARC/Linux, PPC/Linux and x86/Linux; I left x86 till last

Re: [Lazarus] Possible TQuery or resource reader problem, all (unix) targets

2012-07-18 Thread John Landmesser
Am 18.07.2012 19:20, schrieb John Landmesser: Second try: change you SQL to a oneliner. Query.SQL.Text := part1 + part2 + ... -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo

Re: [Lazarus] KZdesktop: tabbed IDE package

2012-07-23 Thread John Landmesser
.. a really bad name KZdesktop, isn't it? Am 23.07.2012 17:46, schrieb Reinier Olislagers: Hi list, Just wanted to inform those that don't frequent the forum or may have missed the thread. There's a Lazarus package written by Raphaelz from the forum that implements a tabbed layout for

[Lazarus] CurrencyString='' , Lazarus svn and WinXP

2012-08-23 Thread John Landmesser
CurrencyString should be auto initialized according to the locales of Windows XP, but it is empty !! Delphi shows the EURO Symbol. My Lazarus: Lazarus 1.1 r38276 FPC 2.6.1 i386-win32-win32/win64 For a Debian Linux i get $ and thats the default ?!! --

Re: [Lazarus] CurrencyString='' , Lazarus svn and WinXP

2012-08-24 Thread John Landmesser
thats it , SysToUTF8, thank you. I have to keep that UTF8 thing in mind ... finally ;-) Am 24.08.2012 00:03, schrieb Bart: On 8/23/12, John Landmesser joh...@online.de wrote: CurrencyString should be auto initialized according to the locales of Windows XP, but it is empty

[Lazarus] What tells me the M in the version Number? Lazarus 1.1 r38545M FPC 2.6.0 i386-linux-gtk 2

2012-09-06 Thread John Landmesser
svn update just tells me: Revision 38545 without a M at the end -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

[Lazarus] error compile Lazarus svn

2012-09-11 Thread John Landmesser
Lazarus and Windows XP: for some days now i get this error message C:\lazarus\lcl\intfgraphics.pas(641,49) Error: Identifier not found TTiffIFD while trying to compile svn lazarus after svn update I tried svn cleanup and deleted the whole /lazarus directory tree without success Perhaps

Re: [Lazarus] error compile Lazarus svn

2012-09-12 Thread John Landmesser
Am 12.09.2012 09:49, schrieb Mattias Gaertner: That would be wrong. fpc 2.6.1 was changed, which broke Lazarus. Lazarus was adapted, so it can not compile with older fpc 2.6.1. Compilation with fpc 2.6.0 was not affected. Mattias meanwhile i got \fpc out of a new snapshot installer and now i

[Lazarus] IntelliSense window has a button at the right corner .. what for ??

2012-09-12 Thread John Landmesser
the symbol on the button looks like copy , but nothing is copied? -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] IntelliSense window has a button at the right corner .. what for ??

2012-09-13 Thread John Landmesser
Am 12.09.2012 23:55, schrieb Mattias Gaertner: Yes, it copies the missing parameters. Thanks, thats what the button is for ! -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

[Lazarus] Customized Lazarus IDE FileOpenDialog for windows as Jedi does it

2012-09-18 Thread John Landmesser
Project Jedi delivers for Delphi a nice customized IDE FileOpenDialog ( - open *.dpr ). It has a special feature to add favorite directories to a Listbox at the bottom of the Opendialog. Think of c:\lazarus and c:\projects\lazarus as i have. I have to jump a lot around .. between Lazarus

Re: [Lazarus] We need testers for one issue

2012-09-28 Thread John Landmesser
Am 27.09.2012 17:59, schrieb zeljko: Hi all, http://bugs.freepascal.org/view.php?id=21792 We need testing of this issue with *second* patch (minimizeddesignform_2.patch) from that issue included on win32 and carbon widgetsets. Pls. apply patch and rebuild lazarus ide to see if something strange

Re: [Lazarus] Text Export filter in LazReport

2012-10-03 Thread John Landmesser
perhaps this one makes you happy as it made me happy :-)) http://fortes4lazarus.sourceforge.net/ Get the svn version and there is a portugese(?) win Helpfile, thats better than no help file at all. If you now Quickreport from good old Delphi 5 ... you'll have no probs to use it ... and its

Re: [Lazarus] Can you reproduce the following Access Violation ?

2012-10-17 Thread John Landmesser
Am 17.10.2012 18:50, schrieb Corpsman: set a Tbutton on the TForm1 and double click ( to create the OnClick Event ) I get also the exception : The component editor of class TDefaultComponentEditor has created the error: Unable to create new method. Please fix the error shown in the message

Re: [Lazarus] TListBox.AddItem doesn't exist?

2012-10-21 Thread John Landmesser
Am 21.10.2012 16:25, schrieb Timothy Groves: So I am trying to add a TListBox to my program. Relevant code is below. TfrmFicMake = class(TForm) . . . lstVolumeList: TListBox; . . . end; procedure TfrmFicMake.btnAddVolumeClick(Sender: TObject); var index :

[Lazarus] No Name Property in Objectinspector!!

2012-10-26 Thread John Landmesser
strange! I developed my project on windows XP and linux. Now i am on linux and for a popup menu that i added on Win XP there is no name property in objectinspector on linux. But if i add now on linux a new popup to my form there is a name property in objectinspector. I don't know if that

[Lazarus] screen.cursor := crHourglass and Linux

2011-04-15 Thread John Landmesser
i googled for a problem with a lazarus app running on linux: no Hourglass cursor showing! do i really need allways screen.cursor := crHouglass; followed by Application.Processmessages; Linux is: infobash -v1 Host/Kernel/OS siduxhome running Linux 2.6.38-2.slh.7-aptosid-686 i686 [ sidux

Re: [Lazarus] screen.cursor := crHourglass and Linux

2011-04-16 Thread John Landmesser
Am 15.04.2011 21:41, schrieb DSK: Yes, your program is responsible for indicating that you have started [or finished] a long process. Ok, but my problem is different: in the app running on windows Hourglass is shown by: screen.cursor := crHourglass; but for linux you need: screen.cursor

Re: [Lazarus] screen.cursor := crHourglass and Linux

2011-04-16 Thread John Landmesser
Am 16.04.2011 12:05, schrieb Mattias Gaertner: Not really, because the LCL is a event based/driven GUI engine. You must leave the main thread enough processing time. When processing a long operation you must call Application.ProcessMessages or put the operation into another queue. Otherwise your

[Lazarus] deactivated items in popup menu and shortcuts

2011-04-18 Thread John Landmesser
if you defined shortcuts for a popup-menu, even deactivated items will be executed using the shortcut. Perhaps that behaviour should be changed ?!! -- John -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] deactivated items in popup menu and shortcuts

2011-04-18 Thread John Landmesser
seems to be somewhow more complicated, the shortcuts for a win app do not behave as aspected, i have to look at that first. -- John -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

[Lazarus] LongMonthNames[3] = 'M?rz' in Windows XP with german locale

2011-07-04 Thread John Landmesser
on two different PC with german locale and Windows XP LongMonthNames[3] = 'M?rz' example: interface uses {$ifdef unix}clocale,{$endif} ShowMessage('März ' + LongMonthNames[3]); Application.MainForm.Font.Charset =

[Lazarus] LongMonthNames[3] = 'M?rz' in Windows XP with german locale

2011-07-04 Thread John Landmesser
on two different PC with german locale and Windows XP LongMonthNames[3] = 'M?rz' example: interface uses {$ifdef unix}clocale,{$endif} ShowMessage('März ' + LongMonthNames[3]); Application.MainForm.Font.Charset =

Re: [Lazarus] LongMonthNames[3] = 'M?rz' in Windows XP with german locale

2011-07-04 Thread John Landmesser
Am 04.07.2011 20:15, schrieb Vincent Snijders: thank you for that tipp: Solution: ShowMessage('März ' + AnsiToUtf8( LongMonthNames[3])); LongMonthNames is RTL, which uses the ansi encoding. If you want to show it using the LCL, convert it to UTF8. 2011/7/4 John

Re: [Lazarus] LongMonthNames[3] = 'M?rz' in Windows XP with german locale

2011-07-04 Thread John Landmesser
Solution: ShowMessage('März ' + AnsiToUtf8( LongMonthNames[3])); Vincent Snijders explains: LongMonthNames is RTL, which uses the ansi encoding. If you want to show it using the LCL, convert it to UTF8. Am 04.07.2011 19:29, schrieb John Landmesser: on two different PC with german locale

[Lazarus] converted Delphi unit in a lazarus package

2011-07-08 Thread John Landmesser
Hi, attached Delphi unit containes TFindFile and a register procedure. I can add findfile1 to the uses clause of a project and then i can TFileFind.Create ...use it ... no probs. But if i put findfile1.pas to a new or existing package i can compile the package but i cannot install it to

Re: [Lazarus] converted Delphi unit in a lazarus package

2011-07-08 Thread John Landmesser
Am 08.07.2011 21:21, schrieb Mattias Gaertner: On Fri, 08 Jul 2011 21:11:46 +0200 John Landmesserjoh...@online.de wrote: Hi, attached Delphi unit containes TFindFile and a register procedure. I can add findfile1 to the uses clause of a project and then i can TFileFind.Create ...use it

Re: [Lazarus] converted Delphi unit in a lazarus package

2011-07-08 Thread John Landmesser
Am 08.07.2011 22:30, schrieb Mattias Gaertner: On Fri, 08 Jul 2011 22:11:37 +0200 John Landmesserjoh...@online.de wrote: [...] I can add findfile1 to the uses clause of a project and then i can TFileFind.Create ...use it ... no probs. But if i put findfile1.pas to a new or existing package

Re: [Lazarus] converted Delphi unit in a lazarus package

2011-07-09 Thread John Landmesser
Am 08.07.2011 23:44, schrieb Mattias Gaertner: On Fri, 08 Jul 2011 23:30:47 +0200 John Landmesserjoh...@online.de wrote: Am 08.07.2011 22:30, schrieb Mattias Gaertner: On Fri, 08 Jul 2011 22:11:37 +0200 John Landmesserjoh...@online.de wrote: [...] I can add findfile1 to the uses clause

Re: [Lazarus] converted Delphi unit in a lazarus package

2011-07-11 Thread John Landmesser
i found one problem in my unit findfile1.pas: inserted the compiler directive {$mode objfpc}{$H+} and now the package can be compiled to lazarus, and TFilefind appears in my component palette. But there is the next problem. If i add FileUtil to the uses clause of findfile1 - error -

[Lazarus] Can't find unit LResources used by Component1

2011-07-12 Thread John Landmesser
Hi, try this: New Package with new component derived from TComponent, select an *.png as icon and compile I get this error message: component1.pas(8,22) Fatal: Can't find unit LResources used by Component1 My lazarus Lazarus 0.9.31 r31679M FPC 2.4.4 i386-linux-gtk 2 Same error for

Re: [Lazarus] Can't find unit LResources used by Component1

2011-07-13 Thread John Landmesser
Am 12.07.2011 23:39, schrieb Mattias Gaertner: On Tue, 12 Jul 2011 22:20:24 +0200 John Landmesserjoh...@online.de wrote: Hi, try this: New Package with new component derived from TComponent, select an *.png as icon and compile I get this error message: component1.pas(8,22) Fatal: Can't

Re: [Lazarus] Can't find unit LResources used by Component1

2011-07-14 Thread John Landmesser
Am 14.07.2011 20:39, schrieb Mattias Gaertner: On Thu, 14 Jul 2011 19:53:24 +0200 John Landmesserjoh...@online.de wrote: Hi Mattias, all troubles are gone since i realized after ages that i have a corrupted component icon.lrs. Some experiences i made: Lazarus IDE is frozen for this

[Lazarus] MessageDLG and localization Win/Linux

2011-08-12 Thread John Landmesser
Hi, same lazarus app, compiled on Windows XP, german localization: Code: MessageDlg('Title', 'Text', mtInformation, [ mbCancel, mbYes, mbNo], 0); You get buttons Captions 'Yes' and 'No' until you add: procedure TForm1.FormCreate(Sender: TObject); var PODirectory, Lang, FallbackLang:

[Lazarus] fpc.cfg missing in .../snapshots/Lazarus-0.9.31-32139-fpc-2.5.1-20110901-win32.exe

2011-09-01 Thread John Landmesser
if you try to install a fresh Windows lazarus, you can't start lazarus because fpc.cfg is not installed. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] fpc.cfg missing in .../snapshots/Lazarus-0.9.31-32139-fpc-2.5.1-20110901-win32.exe

2011-09-01 Thread John Landmesser
Am 01.09.2011 22:24, schrieb Vincent Snijders: 2011/9/1 silvioprogsilviop...@gmail.com: 2011/9/1 John Landmesserjoh...@online.de: if you try to install a fresh Windows lazarus, you can't start lazarus because fpc.cfg is not installed. (0049045) Florian (administrator) 2011-06-11 23:34 You

[Lazarus] TForm.OnCreate and Application.MainForm.Caption

2011-11-14 Thread John Landmesser
Error on Lazarus Windows(!): Lazarus 0.9.31 r33456 FPC 2.5.1 i386-win32-win32/win64 procedure TForm1.FormCreate(Sender: TObject); begin // next line produces error Application.MainForm.Caption:= Application.Title; // next line does NOT produce an error Form1.Caption:= Application.Title;

[Lazarus] debugging and strip --strip-all ./lazarus* ./startlazarus

2012-12-27 Thread John Landmesser
Hi, Info: I use the svn version of lazarus, compile lazarus myself on a Debian Sid linux and windows XP. Question: do i loose any debugging possibilities of my own apps, if i strip lazarus as shown above? man strip tells me something about debugging symbols, but i think that does not

Re: [Lazarus] Can't create calculated field

2012-12-30 Thread John Landmesser
In Delphi 5 i would give you this advice; perhaps update the FieldList?! SQLQuery1.FieldDefs.Clear; .. add your Field .. SQLQuery1.FieldDefs.Update; Am 30.12.2012 15:26, schrieb Krzysztof: Hi, I have this code: f := TField.Create(FDataList); f.FieldName := 'calc'; f.FieldKind :=

[Lazarus] trunk compile error Win XP : Error: identifier idents no member StrikeThrough

2013-01-23 Thread John Landmesser
Hi, i cannot compile actual lazarus trunk version: Stops here: procedure TLazCanvas.AssignFontData(AFont: TFPCustomFont); begin if AFont = nil then Exit; Font.FPColor := AFont.FPColor; Font.Name := AFont.Name; Font.Size := AFont.Size; Font.Bold := AFont.Bold; Font.Italic :=

Re: [Lazarus] trunk compile error Win XP : Error: identifier idents no member StrikeThrough

2013-01-23 Thread John Landmesser
Am 23.01.2013 15:56, schrieb Vincent Snijders: Is your fpc 2.6.1 version up to date? Vincent Thanks for this tipp, now it compiles ok! But: I had fpc 2.6.1 from 2012 and now i extracted fpc 2.6.1 from a snapshot. There are differences between 2.6.1 and 2.6.1 ??? I have to keep that in

Re: [Lazarus] ValueListEditor: feedback needed from Delphi users

2013-02-27 Thread John Landmesser
Delphi 2010 Pro: Per default property Keyoptions is empty and nothing happens pressing insert, delete ... You can only select the value and edit it. Am 26.02.2013 19:03, schrieb Bart: Hi all, I'm currently working on the ValueListEditor. I have some questions on the behaviour of the

[Lazarus] test if the list is down, since 21.3.13 no mails?!!

2013-03-24 Thread John Landmesser
-- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

[Lazarus] DateDif function needed

2013-11-08 Thread John Landmesser
Hi List, i'm searching a pascal datetime function that simulates an Excel function: DateDif Excel for example knows the function DateDif that returns the number of Years, month and days between Date1 and date2. Date1 := 21.12.2012 Date2 := 01.01.2013 Result would be: 0 years, 0 moths, 11

Re: [Lazarus] DateDif function needed

2013-11-09 Thread John Landmesser
On 09.11.2013 06:55, leledumbo wrote: Date1 := EncodeDate(2012,12,21); Date2 := EncodeDate(2013,01,01); Your code Result is: 1900 Years, 1 Month, 10 days and thats incorrect. I thought about it some time and found a solution: Think of the age of an employe! We have now() and his

Re: [Lazarus] DateDif function needed

2013-11-09 Thread John Landmesser
On 09.11.2013 14:32, leledumbo wrote: Indeed that was wrong, I shouldn't exploit the internal details. Below is the correct one (still no need for that complicated code of yours): uses SysUtils,DateUtils; var Date1,Date2: TDate; Y,M,D: Word; begin Date1 := EncodeDate(2012,12,21);

Re: [Lazarus] DateDif function needed

2013-11-09 Thread John Landmesser
On 08.11.2013 21:35, John Landmesser wrote: Hi List, i'm searching a pascal datetime function that simulates an Excel function: DateDif Excel for example knows the function DateDif that returns the number of Years, month and days between Date1 and date2. Date1 := 21.12.2012 Date2

Re: [Lazarus] DateDif function needed

2013-11-11 Thread John Landmesser
On 11.11.2013 13:31, waldo kitty wrote: On 11/11/2013 3:39 AM, Michael Schnell wrote: On 11/08/2013 09:35 PM, John Landmesser wrote: Result would be: 0 years, 0 moths, 11 days IMHO a date diff in this format us desperately misleading, as the count of days in a month varies. understood

Re: [Lazarus] DateDif function needed

2013-11-11 Thread John Landmesser
That's what i realized until now:: Quote of lhelp: MonthsBetween returns the number of whole months between ANow and AThen. This number is an approximation, based on an average number of days of 30.4375 per month (average over 4 years). This means the fractional part of a month is dropped.

Re: [Lazarus] DateDif function needed

2013-11-12 Thread John Landmesser
On 12.11.2013 13:05, Bart wrote: I proposed a solution in this thread. It'll give you (at least that was the intention) the years, months, and days between two (Gregorian) dates. Bart -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] DateDif function needed

2013-11-12 Thread John Landmesser
On 12.11.2013 21:01, waldo kitty wrote: type Date_Diff = record Years, Months, Days: Word; end; function CalendarDateDiff(Date1,Date2: TDateTime): Date_Diff; var theDiffRec: Date_Diff; Cmp: Integer; loDate,hiDate: TDateTime;

Re: [Lazarus] DateDif function needed

2013-11-12 Thread John Landmesser
On 12.11.2013 21:40, John Landmesser wrote: Which is correct? Date1 := 29.2.2000 Date2 := 28.02.2001 Your function: 0 Y, 11 M, 27 D Rxlib ( Jedi ) DateDiff: 0 Y, 11 M, 28 D Libre Office Calc: 0 Y, 11 M, 30 D The table - function of Libre Office Calc is called in german DATUMDIF() Get

Re: [Lazarus] DateDif function needed

2013-11-13 Thread John Landmesser
On 13.11.2013 02:33, waldo kitty wrote: actually, i have in some cases... let's ask this question and see what your charts and routines return as the result... assuming your format is DD.MM.... Date1 := 01.01.2000 Date2 := 01.01.2000 should be 0 (zero), right? then Date1 :=

Re: [Lazarus] DateDif function needed

2013-11-13 Thread John Landmesser
On 13.11.2013 14:02, waldo kitty wrote: We don't need to invent the wheel again, because others have solutions for that! then why does this thread exist? O:) I'll try to find what the usual way is to handle these problems: c++ Libraries for example?! i don't know as i do not have

Re: [Lazarus] DateDif function needed

2013-11-13 Thread John Landmesser
On 13.11.2013 18:31, waldo kitty wrote: On 11/13/2013 9:37 AM, John Landmesser wrote: On 13.11.2013 14:02, waldo kitty wrote: We don't need to invent the wheel again, because others have solutions for that! then why does this thread exist? O:) I'll try to find what the usual way

Re: [Lazarus] DateDif function needed

2013-11-13 Thread John Landmesser
On 13.11.2013 23:14, Bart wrote: On 11/13/13, John Landmesser joh...@online.de wrote: I'm just a hobbyist, never went to university to study computer science. So am I. (For my background, see my userpage on the wiki) Found your userpage , read it with great interest. Your experience

Re: [Lazarus] DateDif function needed

2013-11-14 Thread John Landmesser
On 14.11.2013 10:50, Reimar Grabowski wrote: For MySQL: DATEDIFF(expr1,expr2) DATEDIFF() returns expr1 – expr2 expressed as a value in days from one date to the other. expr1 and expr2 are date or date-and-time expressions. Only the date parts of the values are used in the calculation. :) R.

Re: [Lazarus] DateDif function needed

2013-11-14 Thread John Landmesser
On 14.11.2013 14:16, Mattias Gaertner wrote: On Thu, 14 Nov 2013 13:48:46 +0100 John Landmesser joh...@online.de wrote: [...] Our function delivers the age of a person in years, months, days. What is your diff between 31th Jan and 30 March 2013? Mattias

Re: [Lazarus] DateDif function needed

2013-11-16 Thread John Landmesser
On 08.11.2013 21:35, John Landmesser wrote: Hi List, i'm searching a pascal datetime function that simulates an Excel function: DateDif Excel for example knows the function DateDif that returns the number of Years, month and days between Date1 and date2. Date1 := 21.12.2012 Date2

Re: [Lazarus] DateDif function needed

2013-11-18 Thread John Landmesser
On 18.11.2013 13:11, Frederic Da Vitoria wrote: procedure DatesToAge (Date1, Date2: TDate ; out Years, Months, Days: integer); var Hi Frederic, your code works as aspected! Perhaps it's more usual if you change the out Parameters to word?! Regards John --

Re: [Lazarus] Getting and setting the x numbered word in a sentence

2014-01-08 Thread John Landmesser
On 07.01.2014 19:04, Richard Mace wrote: Hi, Is there an existing routine in Lazarus that will get and set effectively the x numbered word in a sentence without actually knowing what the actual word is? E.g with the string the cat sat on the mat You could say replace word 3 with string stood

[Lazarus] Windows DOS-Box behind a running app, why??

2014-03-04 Thread John Landmesser
Hi, i developed a project-template and it works ok! But some project-options(?) leed to a Dos-Box behind my running application. I could not find the checkbox(?) in project-options(?) that results to such a behaviour! Tipps are welcome!! -- ___

[Lazarus] Howto dropdown the calendar of TDateEdit programmatically

2014-03-07 Thread John Landmesser
Hi, i want to dropdown the calendar of an DateEdit at start of my app, so the user will see what to do next. There is a DateEdit.Button.Clicḱ procedure and TCustomMaskEdit.DoButtonClick, but they don't show the calendar. Is it possible to show the calendar by code? thank you for a tipp!!

[Lazarus] Debian: fpc-source update

2014-05-01 Thread John Landmesser
Ok, a little bit off topic, but perhaps someone has the answer. On my Debian ( sid ) i installed fpc-source with apt-get. After dist-upgrade i have two versions of fpc-source: apt-cache policy fpc-source fpc-source: Installiert: 2.6.4+dfsg-1 Installationskandidat: 2.6.4+dfsg-1

[Lazarus] ZeosLib and Lazarus svn

2014-05-03 Thread John Landmesser
Hi List, i have Lazarus svn on Debian: Lazarus 1.3 r44902 FPC 2.6.4 x86_64-linux-gtk 2 i cannot compile and install Zeoslib 7 (stable) got it with svn Error: ZEOSDBO/src/component/ZAbstractDataset.pas(524,13) Error: Incompatible types: got AnsiString expected Pointer I think i have to

Re: [Lazarus] Option hints popup truncated

2014-06-03 Thread John Landmesser
.. same issue ( sometimes ) with toolbar button hints. GTK2 and Linux 2014-06-02 22:00 GMT+02:00 Mattias Gaertner nc-gaert...@netcologne.de: On Mon, 2 Jun 2014 21:44:53 +0200 Bart bartjun...@gmail.com wrote: On 6/2/14, Michael Van Canneyt mich...@freepascal.org wrote: The popup with

[Lazarus] Compiling svn Lazarus on Linux/windows

2014-07-03 Thread John Landmesser
i can compile any svn version of lazarus on linux using fpc 2.6.2 but on windows i have(!!) to use fpc 2.6.4. Why that? -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Compiling svn Lazarus on Linux/windows

2014-07-05 Thread John Landmesser
thank you!! Am Samstag, den 05.07.2014, 00:06 -0700 schrieb leledumbo: The basic rule is that svn version should always be compilable with latest release version, not necessarily previous ones. -- View this message in context:

Re: [Lazarus] Compiling svn Lazarus on Linux/windows

2014-07-05 Thread John Landmesser
Am Samstag, den 05.07.2014, 13:59 +0300 schrieb Juha Manninen: On Thu, Jul 3, 2014 at 2:10 PM, John Landmesser jmlandmes...@gmail.com wrote: i can compile any svn version of lazarus on linux using fpc 2.6.2 but on windows i have(!!) to use fpc 2.6.4. If you really need to use fpc 2.6.2

Re: [Lazarus] Unable to debug GUI

2014-07-16 Thread John Landmesser
..reminds me at a bug in intel Drivers i had trouble with on Linux-Mint cinnamon: try this (quote from a forum http://forums.linuxmint.com/viewtopic.php?f=221t=146477 ): * I have a Intel GPU, and i have these annoying black windows.

[Lazarus] Error message if lazarus is closed

2014-09-29 Thread John Landmesser
Hi list, since some time i get an error message if i close lazarus: content of the message dialog: In 'file:///home/john1/.lazarus' (line 1 pos 1): Root element is missing In 'file:///home/john1/.lazarus' (line 1 pos 1): Root element is missing But there is no .lazarus file, but the folder

Re: [Lazarus] Error message if lazarus is closed

2014-09-29 Thread John Landmesser
) *** Am Montag, den 29.09.2014, 15:35 +0200 schrieb John Landmesser: Hi list, since some time i get an error message if i close lazarus: content of the message dialog: In 'file:///home/john1/.lazarus' (line 1 pos 1): Root element is missing

Re: [Lazarus] Error message if lazarus is closed

2014-09-29 Thread John Landmesser
Hi Mattias: notice: just startet lazarus from Terminal and saw this line: [TJITComponentList.DestroyJITComponent] ERROR destroying component Error: In 'file:///home/john1/.lazarus' (line 1 pos 1): Root element is missing that should give a important hint ( ... but not for me )

Re: [Lazarus] TTIGrid crashed after calling ListObject.Add

2014-12-09 Thread John Landmesser
no crash on a 32bit Windows XP with Lazarus 1.3 r47147 FPC 2.6.4 i386-win32-win32/win64 2014-12-09 4:39 GMT+01:00 Kiên Nguyễn Tiến Trung kc97...@gmail.com: I'm finding the way to add something into a TCollection while using TTIGrid on it. I've tried following code, however, when I click

[Lazarus] How to use ZMSQL?

2014-12-16 Thread John Landmesser
Hi, trying to use ZMSQL to read a flat file: there is an articel in the wiki, a sample app from sourceforge and my own unsuccesfull tries to get one single file opened! Even the example projects don't work! Does anybody can point me in the right direction how to use ZMConnection and

[Lazarus] SQL Editor produces wrong string constant

2014-12-19 Thread John Landmesser
Hi, Lazarus 1.3 r47221 FPC 2.6.4 x86_64-linux-gtk 2 example SQL-Editor: SELECT Datum, Zeit FROM Daten WHERE Datum '01.01.2014' After create String constant: SQL = 'SELECT Datum, Zeit FROM Daten'+LineEnding+ 'WHERE Datum ''01.01.2014'''; This statement will not be executed! Before and after

Re: [Lazarus] Is FPDoc Editor working?

2014-12-20 Thread John Landmesser
sorry, this is off topic: do you see this in your mailing list: Topic. SQL Editor produces wrong string constant from John Landmesser ( /Fri Dec 19 16:28:09 CET 2014 )/ I can't find it in my Mail-Client. I can see it in pipermail -archive December. http://lists.lazarus.freepascal.org

Re: [Lazarus] Is FPDoc Editor working?

2014-12-20 Thread John Landmesser
On 20.12.2014 10:40, Vincent Snijders wrote: 2014-12-20 10:18 GMT+01:00 John Landmesser jmlandmes...@gmail.com mailto:jmlandmes...@gmail.com: sorry, this is off topic: do you see this in your mailing list: Topic. SQL Editor produces wrong string constant from John

Re: [Lazarus] Developing on Linux with files on Windows NTFS

2015-02-06 Thread John Landmesser
Am 05.02.2015 um 16:53 schrieb Donald Ziesig: Hi All! I have been trying to develop a multi-platform app with the IDE on Linux (MInt) and the source files on a Windows NTFS partition. I build and test on windows but my primary work is done on linux so I don't stay logged in to windows very

Re: [Lazarus] CHM help age and readmechm.txt in a fresh installation

2015-01-20 Thread John Landmesser
perhaps that is the solution? http://sourceforge.net/projects/lazarus/files/Lazarus%20Documentation/Lazarus%201.2/ Am 20.01.2015 um 11:37 schrieb Andi: I do a complete fresh installation of Lazarus (lazarus-1.2.6-fpc-2.6.4-win32.exe) from 20.1.2015, on a complete fresh PC. I found the chm

[Lazarus] Error after Application.Terminate

2015-01-20 Thread John Landmesser
which compiler-option(?) produces such a error Dialog? --- Error --- Heap dump by heaptrc unit 51266 memory blocks allocated : 8658068/8812400 51266 memory blocks freed : 8658068/8812400 0 unfreed memory blocks : 0 True heap size : 294912

Re: [Lazarus] German Umlauts and Oracle Connection

2015-02-10 Thread John Landmesser
Am 09.02.2015 um 20:37 schrieb Michael Van Canneyt: Normally, I'd expect you'd have to specify UTF8 as the charset, since that is what the LCL uses. Tried a lot to get OracleConnection working with german special characters like ö ä ü ß but without success. Then i tried ZeosLib that

Re: [Lazarus] German Umlauts and Oracle Connection

2015-02-10 Thread John Landmesser
Am 10.02.2015 um 16:17 schrieb Mattias Gaertner: SQLDB has CharSet, but unit oracleconnection does not seem to use it. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

[Lazarus] Howto close my Bugreport in Mantis??

2015-01-25 Thread John Landmesser
sorry, i couldn't find a way to close my own Bugreport 0027202 It's no bug!! -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

[Lazarus] German Umlauts and Oracle Connection

2015-02-09 Thread John Landmesser
i get Citynames from a oracle Database, but i get for example Gie?en instead of Gießen In a TDBGrid. I tried different Charset in my OracleConnection.Charset as mentioned from Oracle on http://docs.oracle.com/cd/B28359_01/server.111/b28298/applocaledata.htm#CIAJAGCB but without success!

[Lazarus] svn version of Lazarus broken?

2015-03-30 Thread John Landmesser
to the uses clause of my project that uses TSynMemo , but that perhaps went wrong too? perhaps somebody else has this issue too? For lazarus on linux everything is ok!! Lazarus 1.5 r47221 FPC 2.6.4 x86_64-linux-gtk 2 John Landmesser -- ___ Lazarus

Re: [Lazarus] svn version of Lazarus broken?

2015-03-31 Thread John Landmesser
found the solution: TSynEdit!! http://forum.lazarus.freepascal.org/index.php?topic=15106.0 it's nearly the same as TSynMemo -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

[Lazarus] popup menu-editor

2015-03-04 Thread John Landmesser
Hi, just an Align := alClient for the Menu-entries would help me to see which menu-entries are there :-)) Lazarus 1.5 r47221 FPC 2.6.4 x86_64-linux-gtk 2 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

[Lazarus] Howto scrolldown a TMemo on Linux by code?

2015-05-12 Thread John Landmesser
for windows this code works ok, but no success for Linux, GTK: (* Memo2 ans Ende scrollen *) {IFDEF LINUX} // that doesnt work: Memo2.SelStart:=Length(Memo2.lines.Text); Memo2.VertScrollBar.Position:=1; {ELSE } // thats ok on windows SendMessage(Memo2.Handle,

[Lazarus] Lazarus svn broken?

2015-05-13 Thread John Landmesser
Lazarus 1.5 r47981 FPC 2.6.4 x86_64-linux-gtk 2 if i choose a *.lpi out of the projects history list, lazarus crashes! Its ok, if i open *.lpi as open with lazarus! -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

[Lazarus] Howto scrolldown a TMemo on Linux by code?

2015-05-12 Thread John Landmesser
for windows this code works ok, but no success for Linux, GTK: (* Memo2 ans Ende scrollen *) {$IFDEF LINUX} // that doesn't work: Memo2.SelStart:=Length(Memo2.lines.Text); Memo2.VertScrollBar.Position:=1; {$ELSE } // thats ok on windows

[Lazarus] Error in project path settings editor : TControl.InvalidatePreferredSize loop detected PathEditorDialog:TPathEditorDialog Bounds

2015-04-13 Thread John Landmesser
newest svn Lazarus Win32, all clean build. Lazarus 1.5 r48740 FPC 2.6.4 i386-win32-win32/win64 Full error message: TControl.InvalidatePreferredSize loop detected PathEditorDialog:TPathEditorDialog Bounds=l=420,t=156,r=16981,b=572. -- ___

  1   2   >