[Lazarus] PopupMenue Editor --> Access Violation

2016-04-20 Thread John Landmesser
Hi,   PopupMenue-component editor is broken.   if i try to edit an existing(!!) PopupMenue, i get access violation.   It's ok if i create a new PopupMenue   Lazarus 1.7 r5 FPC 3.0.0 i386-win32-win32/win64 -- ___ Lazarus mailing list

[Lazarus] TDataset result 1e2 instead of 100

2016-04-05 Thread John Landmesser
if i execute fo example a query with a oracle Database:    Select 100 from dual;   Result will be 1e2 ( scientific notation )   as i learned from this:   https://sourceforge.net/p/zeoslib/tickets/22/   it's probably caused  by TDataset?   Is there any reason for the result > 99

Re: [Lazarus] System variables visibility

2016-03-31 Thread John Landmesser
On 31.03.2016 17:16, John Landmesser wrote: Hi, i developed an application ( Linux ) that need to know where $ORACLE_HOME points to. The only way was to start my app with a shell-script, defining: #! /bin/bash export ORACLE_HOME=/usr/lib/oracle/ # run my app Lazarus_Oracle_app Had

[Lazarus] System variables visibility

2016-03-31 Thread John Landmesser
Hi, i developed an application ( Linux ) that need to know where $ORACLE_HOME points to. The only way was to start my app with a shell-script, defining: #! /bin/bash export ORACLE_HOME=/usr/lib/oracle/ # run my app Lazarus_Oracle_app Had no success defining this variable in bashrc or

Re: [Lazarus] Windows API calls and german Umlauts

2016-03-10 Thread John Landmesser
Am 09.03.2016 um 14:16 schrieb Mattias Gaertner: On Wed, 9 Mar 2016 13:04:50 +0100 "John Landmesser" <jmlandmes...@gmx.de> wrote: Hi, if i call a windows API function for special folder, like: uses ... shlobj; var AppDataPath: Array[0..MaxPathLen

[Lazarus] Windows API calls and german Umlauts

2016-03-09 Thread John Landmesser
Hi,   if i call a windows API function for special folder, like:   uses ... shlobj;   var AppDataPath: Array[0..MaxPathLen] of Char; begin SHGetSpecialFolderPath(0,AppDataPath,CSIDL_STARTUP,false); end;   I get on a german localized Windows XP a path containing  "\Startmenü\", but

Re: [Lazarus] Debian (Sid): fpc 3.0.0+dfsg-2 cannot compile lazarus trunc

2016-02-01 Thread John Landmesser
Am 01.02.2016 um 18:47 schrieb Mattias Gaertner: On Mon, 1 Feb 2016 18:20:59 +0100 John Landmesser <jmlandmes...@gmx.de> wrote: Is this the new FPC 3.0.0 from Debian unstable? Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepasc

[Lazarus] Debian (Sid): fpc 3.0.0+dfsg-2 cannot compile lazarus trunc

2016-02-01 Thread John Landmesser
Does anybody else has issues with Debians fpc 3.0.0+dfsg-2 Downgraded to fpc 2.6.4 to compile Lazarus trunc again! My system: Lazarus 1.7 r1.5 FPC 2.6.4 x86_64-linux-gtk 2 ( Misleading information here, its Revision 51468 ) fpc 3.0.0+dfsg-2 hangs on ..linking ok, thats Debian related, but

Re: [Lazarus] lhelp broken for Lazarus 1.7 r1.5 FPC 2.6.4 x86_64-linux-gtk 2

2016-01-28 Thread John Landmesser
Am 28.01.2016 um 12:39 schrieb Juha Manninen: Please test with r51434. Juha -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus it's ok now again :-)) Thank you very much

[Lazarus] lhelp broken for Lazarus 1.7 r1.5 FPC 2.6.4 x86_64-linux-gtk 2

2016-01-27 Thread John Landmesser
got a Mail from Silvio Clecio, but the patch, that should be in Lazarus since r51387, r51388 didn't help! Mail: Hello @JohnML1 , the |iphttpbroker| unit was added recently in the Lazarus components. If you are using a stable version of Lazarusm, get and apply all

Re: [Lazarus] Win API function calls with array as parameter

2016-01-21 Thread John Landmesser
works!! Thank you very much!! ( googled in vain for such a tip ) -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

[Lazarus] Win API function calls with array as parameter

2016-01-20 Thread John Landmesser
whàt's wrong?   my code started Excel and Word  and i want these Apllication.Windows be arranged on Desktop:   but this fails:   TileWindows(0, MDITILE_HORIZONTAL,screen.WorkAreaRect,high(MyHandles),@MyHandles);   Message: "unit1.pas(897,84) Error: Call by var for arg no. 5 has to match

Re: [Lazarus] Lazarus trunc and fpc 2.6.4

2016-01-12 Thread John Landmesser
my own fix: added unit winspool :   unit RLPrinters; {$MODE DELPHI}{$H+} interface uses   {$ifdef LCLWin32}Windows, WinUtilPrn, winspool,{$else}process,{$endif}   Classes, SysUtils, Math, Forms, Dialogs,   Graphics, Printers, RLConsts, RLTypes, RLUtils;    --

Re: [Lazarus] Lazarus trunc and fpc 2.6.4

2016-01-12 Thread John Landmesser
Am 12.01.2016 um 11:59 schrieb Juha Manninen: On Tue, Jan 12, 2016 at 10:32 AM, John Landmesser <jmlandmes...@gmx.de> wrote: unit RLPrinters; Where is that unit? I don't find it in Lazarus trunk. Juha -- ___ Lazarus mailing list L

[Lazarus] Lazarus trunc and fpc 2.6.4

2016-01-11 Thread John Landmesser
i have another issue when i try to compile Lazarus trunc:   rlprinters.pas(124,10) Error: Identifier not found "OpenPrinter" rlprinters.pas(261,73) Hint: Local variable "ResultOrientation" does not seem to be initialized rlprinters.pas(261,55) Hint: Local variable "ResultPaperHeight" does not

[Lazarus] Lazarus trunc does not compile with fpc 2.6.4 Win32

2016-01-11 Thread John Landmesser
i get this error message if i try to compile    Lazarus 1.7 r50846 FPC 2.6.4 i386-win32-win32/win64 ( last working version, December 2015 )   Message: Kompiliere Package SynEdit 1.0: Abgebrochen, Warnungen: 1, Hinweise: 2 synedithighlighterfoldbase.pas(1168,43) Hint: Mixing signed

[Lazarus] new menu designer: dblClick should show assigned code?!!

2016-01-11 Thread John Landmesser
dblClick does not actually show assignde Code?!! just svn-updated lazarus: Lazarus 1.7 r1.5 FPC 2.6.4 x86_64-linux-gtk 2 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Lazarus trunc does not compile with fpc 2.6.4 Win32

2016-01-11 Thread John Landmessser
Am 11.01.2016 um 15:23 schrieb Mattias Gaertner: On Mon, 11 Jan 2016 14:24:40 +0100 "John Landmesser" <jmlandmes...@gmx.de> wrote: [...] Kompiliere Package IDEIntf 1.0: Exit code 1, Fehler: 4, Hinweise: 1 projectintf.pas(708,14) Error: Identifier not found "RawByteStr

Re: [Lazarus] new menu designer: dblClick should show assigned code?!!

2016-01-11 Thread John Landmesser
Am 11.01.2016 um 18:26 schrieb John Landmesser: dblClick does not actually show assignde Code?!! just svn-updated lazarus: Lazarus 1.7 r1.5 FPC 2.6.4 x86_64-linux-gtk 2 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http

[Lazarus] error on startup of win64-Lazarus compiled with "Optimized IDE"

2015-10-26 Thread John Landmesser
if i start my new compiled Lazarus on windows: Lazarus 1.5 r50173 FPC 2.6.4 i386-win32-win32/win64 Optimized IDE: -O2 -g- -Xs it doesn't start up with error dialog ..."Risk of data-loss" ok and cancel All other compile options: "Debug" and "Normal" are ok. That only happens with "Optimized

Re: [Lazarus] use of function ExtractWord

2015-09-15 Thread John Landmesser
got it, thank you very much!! On 15.09.2015 15:50, Michael Van Canneyt wrote: Because you cannot specify separate begin and end separator, just 'separators'. ( is a separator, so everything before ( is the first word. if you specify ( ) as separators, there are 3 positions in the text:

[Lazarus] use of function ExtractWord

2015-09-15 Thread John Landmesser
Hi, Example: given a string: str := '2015-09-14 14:46:50 downloadrate (813 KB/s)' if i want to get the first word ( worddelim is space ) i use: Result := ExtractWord(1 ,str,[' ']); Result is '2015-09-14' That's clear :-)) But! If i want to extract '(813 KB/s)', i have to extract the

Re: [Lazarus] FormatFloat('#,##.00', -1) -> .-1,00

2015-09-07 Thread John Landmesser
ok , you are right, but see the problem: a negative value contains the thousandseperator where there is no value >1000 example: thousandseperator := '|'; FormatFloat('#,##.00', -10); result: *|*-10,00 On 07.09.2015 17:14, Werner Pamler wrote: the function FormatFloat delivers a bad

Re: [Lazarus] FormatFloat('#,##.00', -1) -> .-1,00

2015-09-07 Thread John Landmesser
ok, no i see may mistake: three symbols!! '#,##0.00' or '#,###.00' sorry!! On 07.09.2015 17:55, Werner Pamler wrote: thousandseperator := '|'; FormatFloat('#,##.00', -10); result: *|*-10,00 The behavior that you observe is a bit strange, maybe it is a bug. But you can avoid it by

Re: [Lazarus] FormatFloat('#,##.00', -1) -> .-1,00

2015-09-07 Thread John Landmesser
forgot to mention: Lazarus 1.5 r49771 FPC 2.6.4 x86_64-linux-gtk 2 On 07.09.2015 16:23, John Landmesser wrote: the function FormatFloat delivers a bad formatted negative value with(!) the dot from ThousandSeparator. In sysint.inc i found: { Character that is put every 3 numbers

[Lazarus] FormatFloat('#,##.00', -1) -> .-1,00

2015-09-07 Thread John Landmesser
the function FormatFloat delivers a bad formatted negative value with(!) the dot from ThousandSeparator. In sysint.inc i found: { Character that is put every 3 numbers in a currency } ThousandSeparator : Char absolute DefaultFormatSettings.ThousandSeparator *deprecated*; Does

Re: [Lazarus] whats wrong with that line of code?

2015-08-15 Thread John Landmesser
15.08.2015 um 11:13 schrieb John Landmesser: CurrencyString shows € FormatCurr('%M',1) - %M Expected a currency string as '111.111.111,00 €' System: Linux, Debian Sid sorry for that really idiotic question :-)) -- ___ Lazarus mailing list

[Lazarus] whats wrong with that line of code?

2015-08-15 Thread John Landmesser
CurrencyString shows € FormatCurr('%M',1) - %M Expected a currency string as '111.111.111,00 €' System: Linux, Debian Sid sorry for that really idiotic question :-)) -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] whats wrong with that line of code?

2015-08-15 Thread John Landmesser
to understand my mistakes ... thank you! Ok, i'm stupid!!! On 15.08.2015 11:40, Michael Van Canneyt wrote: On Sat, 15 Aug 2015, John Landmesser wrote: CurrencyString shows € FormatCurr('%M',1) - %M Expected a currency string as '111.111.111,00 €' System: Linux, Debian Sid sorry

Re: [Lazarus] Strange: still Mails to my gmail Adress

2015-06-01 Thread John Landmesser
On 29.05.2015 12:15, waldo kitty wrote: additionally, if you are pulling all these mails to a local mailstore with something like thunderbird, are you sure you don't have them being stored in a folder under a different server config? what i mean by that is i keep all my accounts with

Re: [Lazarus] Strange: still Mails to my gmail Adress

2015-05-28 Thread John Landmesser
://lists.lazarus.freepascal.org/mailman/listinfo/lazarus --090305090302070008080409-- On 28.05.2015 19:40, John Landmesser wrote: long time ago i changed my profile in Lazarus@lists.lazarus.freepascal.org from gmail to gmx.de mail-address. But i still get sometimes mails to my gmail

[Lazarus] Strange: still Mails to my gmail Adress

2015-05-28 Thread John Landmesser
long time ago i changed my profile in Lazarus@lists.lazarus.freepascal.org from gmail to gmx.de mail-address. But i still get sometimes mails to my gmail account. Does Lazarus@lists.lazarus.freepascal.org still have the old Mail-adress? It's no problem but i would like to know how thats

[Lazarus] ShellExecute and german umlauts

2015-05-21 Thread John Landmesser
i want to send a mail on windows using shellexecute with german Umlauts ( ,, .. ) in the body of the mail. This Code doesnt work: var s: string; s := shellexecute(Application.Mainform.handle, open,PChar(mailto: + exam...@gmail.com + ?subject= + ARJ-ChapterArchiv: + body= +

Re: [Lazarus] ShellExecute and german umlauts

2015-05-21 Thread John Landmesser
Am 21.05.2015 um 11:37 schrieb Henry Vermaak: On Thu, May 21, 2015 at 10:06:28AM +0200, John Landmesser wrote: i want to send a mail on windows using shellexecute with german Umlauts ( ö,å,ü .. ) in the body of the mail. This Code doesn't work: var s: string; s := 'öö' shellexecute

[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 doesnt work: Memo2.SelStart:=Length(Memo2.lines.Text); Memo2.VertScrollBar.Position:=1; {ELSE } // thats ok on windows SendMessage(Memo2.Handle,

[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. -- ___

Re: [Lazarus] howto change the order the components of a Form are created?

2015-04-09 Thread John Landmesser
On 09.04.2015 20:27, Howard Page-Clark wrote: Project Options lets you order the creation of auto-created forms, but it does not handle other objects. Can you not dynamically create these two objects in order like this? procedure TForm1.FormCreate(Sender: TObject); begin

[Lazarus] howto change the order the components of a Form are created?

2015-04-09 Thread John Landmesser
from Delphi i know there is a editor to change the order in which objects of the Application are created: I have a IniPropStorage and that has to be created before a FileListView. Searched the IDE, i know its there, but i can't find it! Thank you! --

[Lazarus] Does sdfdataset support locate and lookup?

2015-04-02 Thread John Landmesser
Tipps are welcome: This code snippet doesn't work: var val : Variant; begin val := Editinput.Text; val := SdfDataSetNew1.Lookup('Spalte1',VarArrayOf([val]),'Spalte3'); if not VarIsNull(val) then Editoutput.Text:=val[0] else Editoutput.Text:= 'VarIsNull'; perhaps i ask here

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] 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

[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

Re: [Lazarus] Play video files in a row without delay

2015-02-21 Thread John Briggs
On Fri, Feb 20, 2015 at 12:04:06AM -0800, aradeonas wrote: Thank you Mike and John. But I test playlists with VLC,mplayer and ffplay and problem is after first file finish thery is a 0.5 second delay for opening second file and its not good for project because files are tiny videos(less than

Re: [Lazarus] Play video files in a row without delay

2015-02-19 Thread John Briggs
As mentioned by Mike earlier generate a plaaylist of the videos you want to watch and vlc/mplayer will play them for you with little or no delay between videos. John -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http

[Lazarus] vin...@gmail.com

2015-02-16 Thread john
with Delphi, then Kylix and now Lazarus, good luck. John A. Ward, j...@mbstemps.com -Original Message- From: lazarus-requ...@lists.lazarus.freepascal.org [mailto:lazarus-requ...@lists.lazarus.freepascal.org] Sent: Monday, February 16, 2015 11:52 AM To: lazarus@lists.lazarus.freepascal.org

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] 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!

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

[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

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] 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

[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

[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

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] 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] 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.

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

[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] 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] 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

[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] 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] 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!! -- ___

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

Re: [Lazarus] Application Information

2013-12-23 Thread John Meyer
I think we're talking about the compiled application's version number. On 12/23/2013 10:18 AM, Bart wrote: On 12/23/13, Hew Lines hewli...@shaw.ca wrote: Can anyone give me any ideas on how to access the data in the Project Application dialogue ? Specifically the Version Number. I would

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] 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-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-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-12 Thread John Landmesser
hacking ... John -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

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-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-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

[Lazarus] DateDif function needed

2013-11-08 Thread John Landmesser
days I tried to do it on my own, but without success. But i think there is a function out there but i don't know its name :-(( Thanks for your tipps John -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http

Re: [Lazarus] Printing

2013-09-07 Thread John Meyer
Even if you find it out, always good to tell how you found it out so others see. On 9/7/2013 3:22 PM, Terry A. Haimann wrote: Never mind, I figured it out. On Sat, 2013-09-07 at 15:58 -0500, Terry A. Haimann wrote: What is the current documentation on printing? I have an app, I am trying to

Re: [Lazarus] try finally exit

2013-06-28 Thread John Meyer
pray tell what does using a production machine have to do with testing a trivial section of code? Junior wrote: because I use a production machine plese be patiente! Em 28-06-2013 17:34, Bart escreveu: On 6/28/13, Junior lazarus.li...@gmail.com wrote: strList.TStringList.Create; try if

[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] Opening a file with spaces in the filename (again)

2013-03-05 Thread John
used OpenDocument to open a file (as opposed to a URL), and it should not be limited only to opening files in browsers. thanks, John Sunderland -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org

Re: [Lazarus] Opening a file with spaces in the filename (again)

2013-03-05 Thread John
On 03/06/2013 04:49 AM, Bart wrote: On 3/5/13, John jszc...@netspace.net.au wrote: I want to open a tiff file using what ever viewer the PC knows about that can do it (it will be irfanview on the test PC). It seemed that OpenDocument is the appropriate method. This works fine so long

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

Re: [Lazarus] Append or Insert?

2013-02-20 Thread John
, then commit the transaction. But I will leave detailed descriptions to someone who knows SQLIte - I have always had trouble with it. There is heaps of information on the wiki, see eg http://wiki.lazarus.freepascal.org/Databases hope this helps a bit John Sunderland

[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] 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 :=

  1   2   3   >