Re: [Lazarus] LazReport Questions

2015-05-27 Thread steveg
Thank you Jesus I will attempt workarounds a I can, and will try to narrow down the 'delete' cause On 27/05/15 23:29, Jesus Reyes A. wrote: En Mon, 25 May 2015 21:39:41 -0500, steveg escribió: Thank you Michael. I have then following problems currently - 1: I am placing a subreport in

Re: [Lazarus] Getting common documents folders

2015-05-27 Thread silvioprog
On Wed, May 27, 2015 at 6:21 PM, Michael Van Canneyt wrote: > > > On Wed, 27 May 2015, Glaucos Ginez wrote: > > Hi, you can use GetEnvironmentVariable('LocalAppData') >> >> 2015-05-27 14:53 GMT-04:00 Richard Mace : >> Hi All, >> I need to use/get a common windows folder (in Win XP,Vista,7,8

Re: [Lazarus] Getting common documents folders

2015-05-27 Thread Michael Van Canneyt
On Wed, 27 May 2015, Glaucos Ginez wrote: Hi, you can use GetEnvironmentVariable('LocalAppData') 2015-05-27 14:53 GMT-04:00 Richard Mace : Hi All, I need to use/get a common windows folder (in Win XP,Vista,7,8 and 8.1) that all users will have read/write access to by default. I think i

Re: [Lazarus] Getting common documents folders

2015-05-27 Thread Bart
On 5/27/15, Richard Mace wrote: > Hi All, > I need to use/get a common windows folder (in Win XP,Vista,7,8 and 8.1) > that all users will have read/write access to by default. > I think it is CSIDL_COMMON_DOCUMENTS Copied from winlazfileutils.inc (used by LazFieUtils unit): Procedure InitDLL; V

Re: [Lazarus] Getting common documents folders

2015-05-27 Thread Glaucos Ginez
Hi, you can use GetEnvironmentVariable('LocalAppData') 2015-05-27 14:53 GMT-04:00 Richard Mace : > Hi All, > I need to use/get a common windows folder (in Win XP,Vista,7,8 and 8.1) > that all users will have read/write access to by default. > I think it is CSIDL_COMMON_DOCUMENTS > > Any ideas how

[Lazarus] Getting common documents folders

2015-05-27 Thread Richard Mace
Hi All, I need to use/get a common windows folder (in Win XP,Vista,7,8 and 8.1) that all users will have read/write access to by default. I think it is CSIDL_COMMON_DOCUMENTS Any ideas how I can code this in Lazarus? Many thanks Richard -- ___ Lazarus

Re: [Lazarus] Date value "0"

2015-05-27 Thread waldo kitty
On 05/27/2015 03:19 AM, Michael Van Canneyt wrote: Does 12:00 am actually exist ? If so, what is that ? Midnight or midday ? Should not that be 00:00 am ? (or is that the same ?) yes... 12:00am is midnight... 00:00am is the same... so also is 00:00 or 24:00 in 24hour time... -- NOTE: No of

Re: [Lazarus] LazReport Questions

2015-05-27 Thread Jesus Reyes A.
En Mon, 25 May 2015 21:39:41 -0500, steveg escribió: Thank you Michael. I have then following problems currently - 1: I am placing a subreport in a Group footer (to run a charges query for each client in group break) It would appear that the subreport is run 'after' accessing all other fi

Re: [Lazarus] Date value 0

2015-05-27 Thread Kamen Ketev
May be using Julian day is better. Or intermediate conversion to it. http://en.wikipedia.org/wiki/Julian_day Regards, Kamen Оригинално писмо От: Michael Schnell Относно: Re: [Lazarus] Date value 0 До: Lazarus mailing list Изпратено на: Сряда, 2015, Май 27 11:17:0

Re: [Lazarus] Date value 0

2015-05-27 Thread Kamen Ketev
It works only if you don't use time. Please look at example: var t, dt: TDateTime; i: integer; s1, s2, s3, s4, s5, s6 : String; begin t := StrToDate('30.12.1899'); i := round (t); s1 := DateTimeToStr(t); s2 := IntToStr(i); t := StrToDate('29.12.1899'); i := round (t); s3 := DateTimeT

Re: [Lazarus] Date value "0"

2015-05-27 Thread Mark Morgan Lloyd
Juha Manninen wrote: Amazing! Nobody actually looked at the Mantis report nor the patch I referred to, but still answered the mail. The question is about LastUsed date of a Lazarus package link, shown in one of the IDE's dialog windows. Value "0" is wrong in this context because nobody created La

Re: [Lazarus] Date value "0"

2015-05-27 Thread Mark Morgan Lloyd
Michael Schnell wrote: On 05/27/2015 11:05 AM, Mark Morgan Lloyd wrote: No it can't. You have to be prepared to parse 12:00 a.m. by context but it's usually midnight. Of which day the one that also has 0:pm or of the previous ? Wp "12-hour clock" shows 11:59 p.m. followed by 12:00 a.m.,

Re: [Lazarus] Date value "0"

2015-05-27 Thread Michael Schnell
On 05/27/2015 11:05 AM, Mark Morgan Lloyd wrote: No it can't. You have to be prepared to parse 12:00 a.m. by context but it's usually midnight. Of which day the one that also has 0:pm or of the previous ? -Michael -- ___ Lazarus mailing list Laz

Re: [Lazarus] Date value "0"

2015-05-27 Thread Graeme Geldenhuys
On 2015-05-27 09:17, Michael Schnell wrote: > To me (being born 12/31) it's funny that that the base is not a 1/1, > especially 1/1/0001. But of course this is completely irrelevant. TDateTime's value of 0 being 1899-12-30 is something Borland adopted from Microsoft to be compatible with Microsof

Re: [Lazarus] Date value "0"

2015-05-27 Thread Mark Morgan Lloyd
Gordon Cooper wrote: We were taught that 24.00 did not exist. Time went from 23.59 to 00.00. The same rule can be applied to 11.59 am & pm. Except where there's a leap second. > The same rule can be applied to 11.59 am & pm. No it can't. You have to be prepared to parse 12:00 a.m. by context

Re: [Lazarus] Date value "0"

2015-05-27 Thread Graeme Geldenhuys
On 2015-05-27 08:19, Michael Van Canneyt wrote: > Does 12:00 am actually exist ? If so, what is that ? Midnight or midday ? Hence I stick to 24 hour time. ;-) Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ -- __

Re: [Lazarus] Date value 0

2015-05-27 Thread Michael Schnell
For me it works as expcted var t: TDateTime; i: integer; s1, s2, s3, s4 : String; begin t := StrToDate('30-12-1899'); i := round (t); s1 := DateTimeToStr(t); s2 := IntToStr(i); t := StrToDate('29-12-1899'); i := round (t); s3 := DateTimeToStr(t); s4 := IntToStr(i); Memo1.Lines.Add (s1 +

Re: [Lazarus] Date value 0

2015-05-27 Thread Kamen Ketev
Yes but there is an error on converting date before 12/30/1899: it add 1 day. For example 27.09.1389 converts to 28.09.1389. For date after 12/30/1899 there is no problem. I am using following code: var s, S1: string; dt: TDateTime; S1 := ListItem.SubItems[1]; S

Re: [Lazarus] Date value "0"

2015-05-27 Thread Michael Schnell
On 05/27/2015 12:59 AM, Sven Barth wrote: Why should that be funny? TDateTime(0.0) is defined as "12/30/1899 12:00 am". Now add two days and we are at "1/1/1900 12:00 am", so all is well... To me (being born 12/31) it's funny that that the base is not a 1/1, especially 1/1/0001. But of cour

Re: [Lazarus] Date value "0"

2015-05-27 Thread Gordon Cooper
We were taught that 24.00 did not exist. Time went from 23.59 to 00.00. The same rule can be applied to 11.59 am & pm. Gordon. On 27/05/15 19:57, Mattias Gaertner wrote: On Wed, 27 May 2015 09:19:42 +0200 (CEST) Michael Van Canneyt wrote: [...] Does 12:00 am actually exist ? If so, what is

Re: [Lazarus] Date value "0"

2015-05-27 Thread Mattias Gaertner
On Wed, 27 May 2015 09:19:42 +0200 (CEST) Michael Van Canneyt wrote: >[...] > Does 12:00 am actually exist ? If so, what is that ? Midnight or midday ? > Should not that be 00:00 am ? (or is that the same ?) You are not alone with such questions: https://en.wikipedia.org/wiki/12-hour_clock#Confu

Re: [Lazarus] Date value 0

2015-05-27 Thread Michael Van Canneyt
On Wed, 27 May 2015, Kamen Ketev wrote: How can I use  TDateTime for date before  "12/30/1899 12:00 am". I need it for astronomical calculations. Is it possible to be add flag or something else to ignore this border?  You can use TDateTime for this, there is no problem with values < 0. M

Re: [Lazarus] Date value 0

2015-05-27 Thread Kamen Ketev
How can I use TDateTime for date before "12/30/1899 12:00 am". I need it for astronomical calculations. Is it possible to be add flag or something else to ignore this border? Regards, Kamen -- ___ Lazarus mailing list Lazarus@lists.lazar

Re: [Lazarus] Date value "0"

2015-05-27 Thread Sven Barth
Am 27.05.2015 09:19 schrieb "Michael Van Canneyt" : > > > > On Wed, 27 May 2015, Sven Barth wrote: > >> >> Am 26.05.2015 15:28 schrieb "Michael Schnell" : >> > >> > On 05/26/2015 01:30 PM, Juha Manninen wrote: >> >> >> >> Is there some convention how to show a date value "0"? >> >> By default it sh

Re: [Lazarus] Date value "0"

2015-05-27 Thread Michael Van Canneyt
On Wed, 27 May 2015, Sven Barth wrote: Am 26.05.2015 15:28 schrieb "Michael Schnell" : > > On 05/26/2015 01:30 PM, Juha Manninen wrote: >> >> Is there some convention how to show a date value "0"? >> By default it shows year 1899. The patch changed it to "?". >> > > Both funny, as DateTimeToS