Re: [lazarus] StrToDate error

2007-03-01 Thread Michael Van Canneyt
On Thu, 1 Mar 2007, Graeme Geldenhuys wrote: Hi, On 2/28/07, Michael Van Canneyt [EMAIL PROTECTED] wrote: You should not have to worry about it. You use TDateTime, and convert to string as needed as the user sees fit. I don't agree with Graeme's solution: it's not up to the

Re: [lazarus] StrToDate error

2007-03-01 Thread Graeme Geldenhuys
On 3/1/07, Michael Van Canneyt [EMAIL PROTECTED] wrote: opted for it after a length discussion. Storing the date/time as a string in the ISO 8601 format is forced and allows you to export data to another application without having to try and guess the date format in the new application

Re: [lazarus] StrToDate error

2007-03-01 Thread Michael Van Canneyt
On Thu, 1 Mar 2007, Graeme Geldenhuys wrote: On 3/1/07, Michael Van Canneyt [EMAIL PROTECTED] wrote: opted for it after a length discussion. Storing the date/time as a string in the ISO 8601 format is forced and allows you to export data to another application without having to try

Re: [lazarus] StrToDate error

2007-03-01 Thread Graeme Geldenhuys
On 3/1/07, Michael Van Canneyt [EMAIL PROTECTED] wrote: When doing a query, i.e. in a SQL statement, you must indeed use MM/DD/. If you use parametrized queries, you must use the internal representation. That's the one! We had some very huge and complex stored procedures (couple hundred

Re: [lazarus] StrToDate error

2007-03-01 Thread Joost van der Sluis
That wasn't our experience with MS SQL Server 2000 which uses the US date/time format even though the server was installed in the UK with UK regional settings. We had similar issues (can't remember exactly what) with Firebird. Hence the reason we now store it as strings. Ok, so there's a bug

Re: [lazarus] StrToDate error

2007-03-01 Thread Graeme Geldenhuys
On 3/1/07, Joost van der Sluis [EMAIL PROTECTED] wrote: MS SQL stores date/time fields in a TDateTime format. (That's why it's such a strange format.) Firebird uses something similar. The client- library has to convert that. If that conversion goes wrong, that's simply a a bug. But

RE: [lazarus] StrToDate error

2007-03-01 Thread Pieter Valentijn
I agree that when you can you should use TDateTime but there are cases where string presentation for storage is needed. Lets say we make a export / import function in a CSV file. There needs to be a contract on how to store dates (and numbers for that sake) that is the same. Displaying to me is

RE: [lazarus] WikiHelp

2007-03-01 Thread Pieter Valentijn
This was my implementation of that routine procedure TranslateUnitResourceStrings(const ResUnitName, BaseFilename, Lang, FallbackLang: string); begin if (ResUnitName='') or (BaseFilename='') then exit; //debugln('TranslateUnitResourceStrings BaseFilename=',BaseFilename,''); if

RE: [lazarus] StrToDate error

2007-03-01 Thread Pieter Valentijn
Well he makes a point on the redability of reports using the ISO date format. I think its all just depending on what you make. If you have a multy coparate miljoin dollar cross global sales system you would want to go for the ISO standard for dates but in most other cases you would just use

RE: [lazarus] StrToDate error

2007-03-01 Thread Pieter Valentijn
Wel I gess we all agree on the point that datetime format settings is something where theres a variaty of opinions on how to use it. IT just points out to me that the mater is not simple. If I would ask how to declare a component we would all be saying TMyComponent = class(Tcomponent) end;

Re: [lazarus] StrToDate error

2007-03-01 Thread Graeme Geldenhuys
On 3/1/07, Pieter Valentijn [EMAIL PROTECTED] wrote: I agree that when you can you should use TDateTime but there are cases where string presentation for storage is needed. Lets say we make a export / import function in a CSV file. There needs to be a contract on how to store dates (and numbers

Re: [lazarus] Can´t find unit graphics...

2007-03-01 Thread tanila
Sorry the subject was wron not unit interfaces, but graphics was ment. Am Donnerstag, den 01.03.2007, 08:50 +0100 schrieb tanila: Hello, I use Lazarus SVN Rev. 10700 If I compile any projekt I got following compiler message: project1.lpr(1,1) Fatal: Can't find unit Graphics I am shure

Re: [lazarus] StrToDate error

2007-03-01 Thread Graeme Geldenhuys
On 3/1/07, Pieter Valentijn [EMAIL PROTECTED] wrote: Well he makes a point on the redability of reports using the ISO date format. I think its all just depending on what you make. If you have a multy coparate miljoin dollar cross global sales system you would want to go for the ISO standard for

Re: [lazarus] StrToDate error

2007-03-01 Thread Graeme Geldenhuys
On 3/1/07, Pieter Valentijn [EMAIL PROTECTED] wrote: Wel I gess we all agree on the point that datetime format settings is something where theres a variaty of opinions on how to use it. IT just points out to me that the mater is not simple. Now if you thought date formatting was complicated,

[lazarus] fpc.cfg for fpc2.1.1 (svn)

2007-03-01 Thread tanila
can someone tell me how to setup the fpc.cfg to compile lazarus ? Make can not find many many includes and unit since the new fpc directory layout. What do i have to change ? I am getting crasy here... regards tanila _ To

Re: [lazarus] fpc.cfg for fpc2.1.1 (svn)

2007-03-01 Thread Vincent Snijders
tanila schreef: can someone tell me how to setup the fpc.cfg to compile lazarus ? Make can not find many many includes and unit since the new fpc directory layout. What do i have to change ? I am getting crasy here... fpc.cfg can remain unchanged. Just make sure, you installed the fpc

Re: [lazarus] fpc.cfg for fpc2.1.1 (svn)

2007-03-01 Thread tanila
Am Donnerstag, den 01.03.2007, 14:16 +0100 schrieb Vincent Snijders: tanila schreef: can someone tell me how to setup the fpc.cfg to compile lazarus ? Make can not find many many includes and unit since the new fpc directory layout. What do i have to change ? I am getting crasy

[lazarus] resource strings in constants

2007-03-01 Thread Graeme Geldenhuys
Hi, Is it possible to use resource strings in constants and be able to translate them with 'gettext' unit at runtime? cGenderGUI: array[TGender] of string = ( rsGenderMale, rsGenderFemale ); cGenderDB: array[TGender] of string = ( 'M', 'F' ); Whenever I reference the

Re: [lazarus] StrToDate error

2007-03-01 Thread Joost van der Sluis
On Thu, 2007-03-01 at 12:04 +0200, Graeme Geldenhuys wrote: On 3/1/07, Joost van der Sluis [EMAIL PROTECTED] wrote: MS SQL stores date/time fields in a TDateTime format. (That's why it's such a strange format.) Firebird uses something similar. The client- library has to convert that. If

Re: [lazarus] resource strings in constants

2007-03-01 Thread Michael Van Canneyt
On Thu, 1 Mar 2007, Graeme Geldenhuys wrote: Hi, Is it possible to use resource strings in constants and be able to translate them with 'gettext' unit at runtime? No. Even in Delphi, this does not work :/ Michael. _ To

Re: [lazarus] fpc.cfg for fpc2.1.1 (svn)

2007-03-01 Thread Vincent Snijders
tanila schreef: Am Donnerstag, den 01.03.2007, 14:16 +0100 schrieb Vincent Snijders: tanila schreef: can someone tell me how to setup the fpc.cfg to compile lazarus ? Make can not find many many includes and unit since the new fpc directory layout. What do i have to change ? I am getting

[lazarus] Re: fpc.cfg for fpc2.1.1 (svn)

2007-03-01 Thread Funky Beast
tanila wrote: Am Donnerstag, den 01.03.2007, 14:16 +0100 schrieb Vincent Snijders: tanila schreef: can someone tell me how to setup the fpc.cfg to compile lazarus ? Make can not find many many includes and unit since the new fpc directory layout. What do i have to change ? I am getting

Re: [lazarus] fpc.cfg for fpc2.1.1 (svn)

2007-03-01 Thread tanila
Am Donnerstag, den 01.03.2007, 17:20 +0100 schrieb Vincent Snijders: tanila schreef: Am Donnerstag, den 01.03.2007, 14:16 +0100 schrieb Vincent Snijders: tanila schreef: can someone tell me how to setup the fpc.cfg to compile lazarus ? Make can not find many many includes and unit

Re: [lazarus] Re: fpc.cfg for fpc2.1.1 (svn)

2007-03-01 Thread tanila
Am Freitag, den 02.03.2007, 00:20 +0800 schrieb Funky Beast: tanila wrote: Am Donnerstag, den 01.03.2007, 14:16 +0100 schrieb Vincent Snijders: tanila schreef: can someone tell me how to setup the fpc.cfg to compile lazarus ? Make can not find many many includes and unit since the

Re: [lazarus] Can´t find unit graphics...

2007-03-01 Thread Gustavo Enrique Jimenez
When I mix old versions with new versions, the compiler and/or lazarus get confused about what files to compile. This is due to symlinks pointing to the wrong file. My fault, not compiler fault. Can you uninstall everything (including symlinks) and reinstall everything ? Excuse my english.

Re: [lazarus] WikiHelp

2007-03-01 Thread Christian Ulrich
I did got it to work but I now have trouble getting the data. I think it becouse you need to be loged in to go to the edit page. index.php?title=Spezial:Exportaction=submitpages='+lbFoundPages.Items[ i]+'curonly=true This was you old line. If I follow the osF wiki I get a you are not loged in

Re: [lazarus] WikiHelp

2007-03-01 Thread Vincent Snijders
Christian Ulrich schreef: I did got it to work but I now have trouble getting the data. I think it becouse you need to be loged in to go to the edit page. index.php?title=Spezial:Exportaction=submitpages='+lbFoundPages.Items[ i]+'curonly=true This was you old line. If I follow the osF wiki I

Re: [lazarus] WikiHelp

2007-03-01 Thread Christian Ulrich
Did you logout before doing the test? Maybe the wiki somehow remembers you when you run wikihelp. I have no coocie support enabled in synapse, can the wiki remember me without coocies ? OK, i have tried now with an complete clean computer where i never have logged in into lazarus wiki and