Re: [Lazarus] DateDif function needed

2013-11-18 Thread Hans-Peter Diettrich
waldo kitty schrieb: On 11/18/2013 11:46 AM, Hans-Peter Diettrich wrote: Jürgen Hestermann schrieb: I still find "CalenderDiff" the best name for this function because it clearly states that differences are calculated for calender dates and not for an homogeneous stream of seconds/hours/days.

[Lazarus] Writing a Lazarus program with its own display, RFB?

2013-11-18 Thread vfclists .
I want to write a program to provide its own remote display without an X Window server, ie the program has its own display which can be connected to via VNC server. There is a libvncserver/libvnclient project at http://libvncserver.sourceforge.net/ which enables one to do that, but I don't know whe

Re: [Lazarus] Help reading SQLite field with more than 255 chars

2013-11-18 Thread Marcos Douglas
On Mon, Nov 18, 2013 at 7:00 PM, mulcamd wrote: > I’m reading the SQLite database of Adobe Lightroom (SQLite). > > > > I want to process the AdditionalMetadata table, see below, the XMP field, > which may be 3000 chars long. > > When retrieving the contents of this field I only get 255. > > [...]

[Lazarus] Help reading SQLite field with more than 255 chars

2013-11-18 Thread mulcamd
I'm reading the SQLite database of Adobe Lightroom (SQLite). I want to process the AdditionalMetadata table, see below, the XMP field, which may be 3000 chars long. When retrieving the contents of this field I only get 255. Question: What should I do to get the full content of this field.

Re: [Lazarus] TSpinEdit and TFloatSpinEdit

2013-11-18 Thread Avishai
Does Delphi even have a TFloatSpinEdit? I suppose it does but I haven't found anything by googling. On Mon, Nov 18, 2013 at 7:43 PM, Howard Page-Clark wrote: > On 18/11/2013 16:00, Avishai wrote: >> >> Why do we have both TSpinEdit and TFloatSpinEdit? It seems like >> TFloatSpinEdit is enough.

Re: [Lazarus] TSpinEdit and TFloatSpinEdit

2013-11-18 Thread Howard Page-Clark
On 18/11/2013 16:00, Avishai wrote: Why do we have both TSpinEdit and TFloatSpinEdit? It seems like TFloatSpinEdit is enough. TFloatSpinEdit has property DecimalPlaces and when set to 0, it displays an Integer (although it's a Float). It's easy enough to get the Integer Value, but it could have

[Lazarus] To Paul about r43447

2013-11-18 Thread FreeMan
Hello Paul, I think this line not currect place, /trunk/lcl/include/customform.inc Line 2871: SavedCursor := Screen.Cursor; Why, I have a TUniQuery on TDataModule. Rigth click on this, Select "fields editors" and on Plus key on toolbar for open "fielddefs" form. Click "cancel" button then clos

Re: [Lazarus] DateDif function needed

2013-11-18 Thread Jürgen Hestermann
Am 2013-11-18 17:46, schrieb Hans-Peter Diettrich: Jürgen Hestermann schrieb: I still find "CalenderDiff" the best name for this function because it clearly states that differences are calculated for calender dates and not for an homogeneous stream of seconds/hours/days. This raises immediat

Re: [Lazarus] DateDif function needed

2013-11-18 Thread waldo kitty
On 11/18/2013 11:46 AM, Hans-Peter Diettrich wrote: Jürgen Hestermann schrieb: I still find "CalenderDiff" the best name for this function because it clearly states that differences are calculated for calender dates and not for an homogeneous stream of seconds/hours/days. This raises immediat

Re: [Lazarus] DateDif function needed

2013-11-18 Thread Giuliano Colla
Il 18/11/2013 17:46, Hans-Peter Diettrich ha scritto: Jürgen Hestermann schrieb: I still find "CalenderDiff" the best name for this function because it clearly states that differences are calculated for calender dates and not for an homogeneous stream of seconds/hours/days. This raises immedi

Re: [Lazarus] DateDif function needed

2013-11-18 Thread Hans-Peter Diettrich
Jürgen Hestermann schrieb: I still find "CalenderDiff" the best name for this function because it clearly states that differences are calculated for calender dates and not for an homogeneous stream of seconds/hours/days. This raises immediately the next question: which calendar? DoDi -- ___

Re: [Lazarus] DateDif function needed

2013-11-18 Thread Jürgen Hestermann
Am 2013-11-18 13:11, schrieb Frederic Da Vitoria: First of all, I decided to use a different name. DateDiff comes from Excel, this is Lazarus, we should try to use names consistent with our functions. I chose DatesToAge, but I am not convinced this name is any better to any other name which h

Re: [Lazarus] DateDif function needed

2013-11-18 Thread Jürgen Hestermann
Am 2013-11-18 15:44, schrieb Frederic Da Vitoria: 2013/11/18 John Landmesser mailto:joh...@online.de>> Perhaps it's more "usual" if you change the "out" Parameters to word? Yes, it would be more usual, but since you seem interested, I will try to create a "signed version, which will of

[Lazarus] TSpinEdit and TFloatSpinEdit

2013-11-18 Thread Avishai
Why do we have both TSpinEdit and TFloatSpinEdit? It seems like TFloatSpinEdit is enough. TFloatSpinEdit has property DecimalPlaces and when set to 0, it displays an Integer (although it's a Float). It's easy enough to get the Integer Value, but it could have Property FloatValue and Property IntV

Re: [Lazarus] DateDif function needed

2013-11-18 Thread Frederic Da Vitoria
2013/11/18 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?

[Lazarus] Stored Procedure Params

2013-11-18 Thread Leonardo M . Ramé
Hi, I have to pass parameters to a PostgreSql stored procedure, but when I try to use SqlQuery1.ParamByName('myparam') I get a null pointer. The SqlQuery1.Sql.Text is "select * from mystoredproc(:param1, :param2)", and I'm trying to write param values as: SqlQuery1.ParamByName('param1').AsString

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-18 Thread Frederic Da Vitoria
2013/11/18 Michael Schnell > On 11/16/2013 06:40 PM, Michael Van Canneyt wrote: > >> >> I think it's fairly simple, really. ... >> >> This does make some sense, even for me :-) > I ask in advance all those who thought that this thread was finally dead to excuse me. I have been working on this

Re: [Lazarus] DateDif function needed

2013-11-18 Thread Michael Schnell
On 11/16/2013 06:40 PM, Michael Van Canneyt wrote: I think it's fairly simple, really. ... This does make some sense, even for me :-) -Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mail