RE: [lazarus] Google's Android OS :)

2007-11-23 Thread Pieter Valentijn
Hi Willem Nice to see your from holland to.
Im sure where all intrested in what ever you can produce.
You seem to have a impressive ambition that is supporten by your
experience.




Met vriendelijke groet, 
Pieter Valentijn
 
Delphidreams
http://www.delphidreams.nl
 


-Oorspronkelijk bericht-
Van: willem [mailto:[EMAIL PROTECTED] 
Verzonden: vrijdag 23 november 2007 0:56
Aan: lazarus@miraclec.com
Onderwerp: Re: [lazarus] Google's Android OS :)


Marco van de Voort wrote:
 On Thu, Nov 22, 2007 at 07:52:59PM +0100, willem wrote:
   
 I know that the lazarus grammar is based on yacc
 

I did some google search on the fpc
I do know that google searches results are not always correct. I a a
newby to the lazarus project. but i did study compiler comnstruction 30
years ago. Pascal has been founded by Prof niklaus Wirth as an an
educational 
computer language
and he has extended the backus -nauer form to EBNF.
Well I am going to extend ENBF with XML.
Grammar is very important as a base to study a language.
I want to start Andromedia.
 The first  effort will be documenting the delphi antlr grammar. I will
use XML for that. because the the delphi grammar can easily be expanded
with an XML 
specification.

I did study websites with html and javascript. That horrible and it 
takes a lot of time to understand that kind of thing

well i have 30 years of experience with computing problems
my first computer experience was with the intel 4004 but i am a newby on

this forum.
My intentention is is to start the androida project on sourceforge I
will then publish the delphi grammar for antlr. Experienced Lazarus
developpers can then suggest improvements on this 
delphi grammar and so it becomes
lazarus grammar. I want to extend the delphi grammar with XML So EBNF
becomes XEBNF !!!



















 The FPC is recursive descent and is not based on yacc. Syntax 
 highlighter parsers don't have to be 100% correct.

   
 Before you start you might also learn your target better, and at 
 least
 have
 an idea how you are going to tackle porting unmanaged constructs to
a
 managed version.
   
   
 Sorry you are wrong.
 I have already the delphi grammar for antlr
 

 There is even one in the Delphi's manual. But even that is not 
 complete. How can you be so sure yours is?

 _
  To unsubscribe: mail [EMAIL PROTECTED] with
 unsubscribe as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives

   

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


RE: [lazarus] Google's Android OS :)

2007-11-23 Thread Pieter Valentijn
Im not realy a core guys my specialty is to create programs (GUI) or
SOAP services. Im more a user then a core designer so im not realy
familiar with this.

But im sure it will aid somehow to bringing te Lazarus project to a
other level.
Im stil waiting for the day I can have everyting I need to recompile
osFinancials with Lazarus.

I gess I also need the time to reinvest to see if this is posible yet.

You know how it goes when you have users Bugs first :-)



Met vriendelijke groet, 
Pieter Valentijn
 
Delphidreams
http://www.delphidreams.nl
 


-Oorspronkelijk bericht-
Van: willem [mailto:[EMAIL PROTECTED] 
Verzonden: vrijdag 23 november 2007 10:07
Aan: lazarus@miraclec.com
Onderwerp: Re: [lazarus] Google's Android OS :)


Pieter Valentijn wrote:
 Hi Willem Nice to see your from holland to.
 Im sure where all intrested in what ever you can produce.
 You seem to have a impressive ambition that is supporten by your 
 experience.

 Hello Pieter,
   
Yes i am from  holland.
i am experienced but ia newby in the lazarus field.
So i start with the grammar.
simply because i got a lot of teaching about  grammar at school. i
downloaded the pascal grammar of the web. and run it strough antlrwork
and checked the pascal grammar.

this was the result.

[08:54:51] Checking Grammar...
[08:54:53] warning(200): java.g:777:5: Decision can match input such as 
'0'..'9'{'E', 'e'}{'+', '-'}'0'..'9'{'D', 'F', 'd', 'f'} using 
multiple alternatives: 3, 4
As a result, alternative(s) 4 were disabled for that input

so thats interesting !!
i have no idea what it means but i will find.
because i did study study 30 years ago
so i have to refresh my knowledge.
i have attached the pascal grammar in this post.

regards

 Met vriendelijke groet,
 Pieter Valentijn
  
 Delphidreams
 http://www.delphidreams.nl
  


 -Oorspronkelijk bericht-
 Van: willem [mailto:[EMAIL PROTECTED]
 Verzonden: vrijdag 23 november 2007 0:56
 Aan: lazarus@miraclec.com
 Onderwerp: Re: [lazarus] Google's Android OS :)


 Marco van de Voort wrote:
   
 On Thu, Nov 22, 2007 at 07:52:59PM +0100, willem wrote:
   
 
 I know that the lazarus grammar is based on yacc
 
   

 I did some google search on the fpc
 I do know that google searches results are not always correct. I a a 
 newby to the lazarus project. but i did study compiler comnstruction 
 30 years ago. Pascal has been founded by Prof niklaus Wirth as an an 
 educational computer language
 and he has extended the backus -nauer form to EBNF.
 Well I am going to extend ENBF with XML.
 Grammar is very important as a base to study a language.
 I want to start Andromedia.
  The first  effort will be documenting the delphi antlr grammar. I
will
 use XML for that. because the the delphi grammar can easily be
expanded
 with an XML 
 specification.

 I did study websites with html and javascript. That horrible and it
 takes a lot of time to understand that kind of thing

 well i have 30 years of experience with computing problems
 my first computer experience was with the intel 4004 but i am a newby 
 on

 this forum.
 My intentention is is to start the androida project on sourceforge I 
 will then publish the delphi grammar for antlr. Experienced Lazarus 
 developpers can then suggest improvements on this delphi grammar and 
 so it becomes lazarus grammar. I want to extend the delphi grammar 
 with XML So EBNF becomes XEBNF !!!


















   
 The FPC is recursive descent and is not based on yacc. Syntax
 highlighter parsers don't have to be 100% correct.

   
 
 Before you start you might also learn your target better, and at
 least
 have
 an idea how you are going to tackle porting unmanaged constructs to
 
 a
   
 managed version.
   
   
 
 Sorry you are wrong.
 I have already the delphi grammar for antlr
 
   
 There is even one in the Delphi's manual. But even that is not
 complete. How can you be so sure yours is?

 _
  To unsubscribe: mail [EMAIL PROTECTED] with
 unsubscribe as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives

   
 

 _
  To unsubscribe: mail [EMAIL PROTECTED] with
 unsubscribe as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives

 _
  To unsubscribe: mail [EMAIL PROTECTED] with
 unsubscribe as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives

   


_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


RE: [lazarus] Web Model for future FPC/Lazarus

2007-09-01 Thread Pieter Valentijn
So creating 1 plugin that can run lets say anny DLL form would solve
this right? So we have 1 plugin skeleton that allows downloading from a
URL where a DLL is that has a interface to create atleast 1 form and
past it in to the plugins main form. Then from there anny program could
be started and we don't bother the users if he puts the url in a trusted
list or something (we can manage the plugin execution our selfs).


Met vriendelijke groet, 
Pieter Valentijn
 
Delphidreams
http://www.delphidreams.nl
 


-Oorspronkelijk bericht-
Van: Razvan Adrian Bogdan [mailto:[EMAIL PROTECTED] 
Verzonden: 31 August 2007 14:53
Aan: lazarus@miraclec.com
Onderwerp: Re: [lazarus] Web Model for future FPC/Lazarus


But many browsers can be enhanced to do almost anything, IE (on
Windows) has ActiveX and all other browsers support netscape plugins on
all platforms which are similar to activex. Some people on this list
already made their own netscape plugins if i remember correcly and they
work  everywhere. This is exactly how flash works :) The only trouble is
the requirement to install the plugins ...

Razvan

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


RE: [lazarus] Systems 2007 Hotel

2007-08-21 Thread Pieter Valentijn
But still if we can get a discount I dont mind sleeping in a hostel.
I just want to stay somewhere where I atleast know some people even if
its just true this mail list :-)
My gole is to compile osFinancials on Lazarus one day and im sure that
meeting up with you guys is a good start towards commiting my self to
this conversion. All do It will take some time before I can crossover I
am verry intrested to speek to you all.


Met vriendelijke groet, 
Pieter Valentijn
 
Delphidreams
http://www.delphidreams.nl
 


-Oorspronkelijk bericht-
Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Namens Michael Van Canneyt
Verzonden: 20 August 2007 21:33
Aan: lazarus@miraclec.com
Onderwerp: Re: [lazarus] Systems 2007 Hotel




On Mon, 20 Aug 2007, Pieter Valentijn wrote:

 So are there anny others with the same problem as me please respond on

 this mailtread. Im comming from a other country and I am in need of a 
 hotel. I would be nice if the ones that need a hotel are in the same 
 hotel. I don't mind the cost af the hotel I can deduct it all from my 
 buisnis :-0
 
 So if there are more guys going to the system 2007 and in need of a 
 room please replay so we can see where and what hotel we can book.

Normally, I'll be staying in a youth hostel. By far the cheapest option,
and since I cannot deduct it from my costs, the only option as far as
I'm concerned :-)

Michael.

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


RE: [lazarus] report writer 4 Lazarus?

2007-08-21 Thread Pieter Valentijn
I Thouth reportman was the way to go?
I have seen his Lazarus changes (write out of clientdataset) but I never
compiled it in lazarus yet.
It mite be a bit akward interface but it gets the job don. I prefere it
to freereport (that is also in osF) as its more dynamic like cristal
reports and the freereports to me was more static linked to Queries.
The reportman also gives you a user tool to edit reports. Even if its
just picking fields for them out a your predefined Query.

Met vriendelijke groet, 
Pieter Valentijn
 
Delphidreams
http://www.delphidreams.nl
 


-Oorspronkelijk bericht-
Van: Jesus Reyes [mailto:[EMAIL PROTECTED] 
Verzonden: 21 August 2007 17:33
Aan: lazarus@miraclec.com
Onderwerp: Re: [lazarus] report writer 4 Lazarus?



--- Graeme Geldenhuys [EMAIL PROTECTED] escribió:

 On 20/08/07, David Lyon [EMAIL PROTECTED] wrote:
 
  Do people think we should try to package LazReport into Lazarus
 at some
  future point?
 
 Someone else also mentioned that idea a while back. I think that would
 be a good idea and a step forward in the right direction.  Unless
 other reporting tools are available and deem it unfair. (Oh such
 business thinking!) :-)
 
 Regards,
   - Graeme -
 

Indeed. Last time I asked there wasn't negative feedback, the only thing
is that I prefer to fix
http://www.freepascal.org/mantis/view.php?id=7151 before that. I will
take a look to it next week.

Jesus Reyes A.


 


¡Sé un mejor fotógrafo!
Perfecciona tu técnica y encuentra las mejores fotos.

http://mx.yahoo.com/promos/mejorfotografo.html

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


RE: [lazarus] report writer 4 Lazarus?

2007-08-21 Thread Pieter Valentijn
In Delphi mode he uses Clientdataset (midas) for lazarus it was changed
to a memory dataset. 


Met vriendelijke groet, 
Pieter Valentijn
 
Delphidreams
http://www.delphidreams.nl
 


-Oorspronkelijk bericht-
Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Namens Michael
Van Canneyt
Verzonden: 21 August 2007 21:06
Aan: lazarus@miraclec.com
Onderwerp: RE: [lazarus] report writer 4 Lazarus?




On Tue, 21 Aug 2007, Pieter Valentijn wrote:

 I Thouth reportman was the way to go?

No. It can probably be used, but lazreport is more 'native' for lazarus.

 I have seen his Lazarus changes (write out of clientdataset) but I 
 never compiled it in lazarus yet.

I am not sure what you mean by 'write out of clientdataset' ?

Michael.

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


RE: [lazarus] report writer 4 Lazarus?

2007-08-21 Thread Pieter Valentijn
Heres the unit

http://reportman.cvs.sourceforge.net/reportman/reportman/rpdataset.pas?v
iew=markup

He put in freepascal support it says in the header.


Met vriendelijke groet, 
Pieter Valentijn
 
Delphidreams
http://www.delphidreams.nl
 


-Oorspronkelijk bericht-
Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Namens Michael
Van Canneyt
Verzonden: 21 August 2007 21:06
Aan: lazarus@miraclec.com
Onderwerp: RE: [lazarus] report writer 4 Lazarus?




On Tue, 21 Aug 2007, Pieter Valentijn wrote:

 I Thouth reportman was the way to go?

No. It can probably be used, but lazreport is more 'native' for lazarus.

 I have seen his Lazarus changes (write out of clientdataset) but I 
 never compiled it in lazarus yet.

I am not sure what you mean by 'write out of clientdataset' ?

Michael.

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


RE: [lazarus] VOOE Programming ?

2007-08-20 Thread Pieter Valentijn
I have not heard about that systems 2007 anny more.
I asked who is coming and what hotel will you guys stay.
I have clearance with my wive (I have 2 childeren so I must get clerance
first :-) but I don't know more details about where to stay. I thouth
someone was sugesting we get the rooms together so we mite get a
discount. Or did you guys already book a hotel ?


Met vriendelijke groet, 
Pieter Valentijn
 
Delphidreams
http://www.delphidreams.nl
 


-Oorspronkelijk bericht-
Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Verzonden: 20 August 2007 15:45
Aan: lazarus@miraclec.com
Onderwerp: Re: [lazarus] VOOE Programming ?


 Vincent Snijders wrote:
 I mean, do you think Lazarus is ready for 1.0, if there are more than

 700 open bug reports? To me, this is not only an indication that 
 Lazarus is being used, but also that it is not ready for 1.0 yet and 
 adding new components to it is the way to get it 1.0 ready.
 I was told early in my career that if you can't find at least 1000 
 defects in a complex software project then the testers aren't doing 
 their jobs properly :-)

 Hey, it's a ver. 1.00. That already tells users to expect one or two 
 things that don't work correctly to be sorted out in ver. 1.10

 More importantly, we have a deadline approaching

 Systems-2007

 promotion time.

 so we should be looking to exploit all the hard effort so far and show

 off a bit maybe we can even find some commercial sponsors to help 
 with funds to do it...

 right ?

I have some serious objections to the way this discussion is going. It
does seem that catchy logo's and major version numbers are considered
more important than quality of code. IMHO nothing beats quality and as
long as lazarus has loads of serious bugs there's no use to take the
next hurdle already. Want to speed things up? Then start sending
patches. If you can find a sponsor, even better. But the baseline is
there's a lot of stuff that needs to be fixed. What good is promoting a
non finished piece of software in such a high profile way? It will only
dissapoint expectencies and turn down potential users.

Darius

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


RE: [lazarus] Systems 2007

2007-08-17 Thread Pieter Valentijn
Will you guys be there from 23 to 26 ?
I looking if I can fly over from 23(arive 10.10) till 25 (go 9.00 to
Amsterdam) but I will be aloan and it would be 
great to meet up with you guys.



Met vriendelijke groet, 
Pieter Valentijn
 
Delphidreams
http://www.delphidreams.nl
 


-Oorspronkelijk bericht-
Van: Mattias Gaertner [mailto:[EMAIL PROTECTED] 
Verzonden: donderdag 16 augustus 2007 19:06
Aan: lazarus@miraclec.com
Onderwerp: Re: [lazarus] Systems 2007


On Thu, 16 Aug 2007 11:58:13 +0200
Sebastian Günther [EMAIL PROTECTED] wrote:

 David Lyon schrieb:
  
  Oh, and maybe the address of the Greek restaurant we were in 2005
  (Mattias
  maybe remembers it :-)

  I could only find this:
  
  http://www.xs4all.nl/~patto1ro/munipubs.htm
 
 
 There are so many pubs, bars, restaurants etc. in Munich...
 
 Marco: In about which area was the Greek restaurant? Near the youth
 hostel, i.e. near Rotkreuzplatz / in Neuhausen?

Yes. AFAIR it was west of the youth hostel.


Mattias

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


RE: [lazarus] Systems 2007

2007-08-17 Thread Pieter Valentijn
I duscused it with my wife and I have the green light.
Can I help you guys over there i.e. get coffe and hold of anny female
fans who want to rip of the cloths of you bodies :-)
If so I will get the ticket now have a great 2 days in muchen.


Met vriendelijke groet, 
Pieter Valentijn
 
Delphidreams
http://www.delphidreams.nl
 


-Oorspronkelijk bericht-
Van: David Lyon [mailto:[EMAIL PROTECTED] 
Verzonden: vrijdag 17 augustus 2007 16:02
Aan: lazarus@miraclec.com
Onderwerp: Re: [lazarus] Systems 2007


Pieter Valentijn wrote:
 Will you guys be there from 23 to 26 ?
 I looking if I can fly over from 23(arive 10.10) till 25 (go 9.00 to
 Amsterdam) but I will be aloan and it would be
 great to meet up with you guys.
   
Hi Pieter,

It's looking fairly safe to go ahead and book your tickets for those
dates.

We're trying to tie down some venues to meet up for an official dinner

and we expect to have the venue and time available in the next week or
so.

So far, by my rough count, there are about 8 people so far coming. Of 
course we expect numbers to grow on that so you certainly won't be
alone.

Regards

David








_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


RE: [lazarus] going legal, time for a name change....

2007-08-13 Thread Pieter Valentijn
So is this already posible ?
I mean where do I send my 100 Euro to :-)
I want to support your effort.

When I forked from Turbocash to osFinancials we also made a foundation
to make sure rights etc are not under 1 person but under the foundation
name. We did register the name osFinancials atleast in the Benelux
(belgium Netherlands and Luxembourg) so in our home we can savely use
the name. When it was called Turbocash there was a company here in
Holland named Cash that tried to Sew me. It cost me about 1000 Euro's on
a good loyer but he wrote them a letter and I never heard from them
again. I gess theres not mutch to worry about for you gusy theres not
mutch compilers out there and im sure theres non starting today that
will use the name Lazarus.
Enny judge will recognize the global known name for this compiler. Anny
other products using the name does not count as the assosiantion must be
in the same brance. (a company called OPEL who sells bread cannot be
sewd by OPEL who makes cars. Now if they use the same sign and lettres
there mite be a case but purly on the name they can forget. Theres manny
companies that bare the last name of there founder. If its not in the
same market there is no problem. The problem comes from confunsion with
the customer. Getting confused with the compiler you use looks to me
like something inposible. And im sure annyone will agree this with me.

So keep up the good work guys. If you become a foundation you will be
more open to donations and other companies can give you cash.  


Met vriendelijke groet, 
Pieter Valentijn
 
Delphidreams
http://www.delphidreams.nl
 


-Oorspronkelijk bericht-
Van: David Lyon [mailto:[EMAIL PROTECTED] 
Verzonden: maandag 13 augustus 2007 3:20
Aan: lazarus@miraclec.com
Onderwerp: Re: [lazarus] going legal, time for a name change


Hi Vincent,

Vincent Snijders wrote:
 If you want public editing, better put it on
 http://wiki.lazarus.freepascal.org/foundation_charter
 or
 http://wiki.freepascal.org/foundation_charter
Yes, that seemed to work for me.

How do we add sections ?

Regards

David

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


RE: [lazarus] Systems 2007

2007-08-13 Thread Pieter Valentijn
Where is this held ?
I cant find anny info on the net about it.




Met vriendelijke groet, 
Pieter Valentijn
 
Delphidreams
http://www.delphidreams.nl
 


-Oorspronkelijk bericht-
Van: David Lyon [mailto:[EMAIL PROTECTED] 
Verzonden: maandag 13 augustus 2007 14:42
Aan: lazarus@miraclec.com
Onderwerp: Re: [lazarus] Systems 2007


Michael Van Canneyt wrote:
 Furniture is not necessary, it's a simple place with room for some 
 laptops. (there are probably somewhere fotos from last year which show

 this).

 Manning: I guess there'll be at least 5 persons:

 Florian
 Mattias
 Marco
 Me
 Sebastian

   
sounds like most of the brainy ones anyway...

now just to find the ones prepared to wear the bikinis ... :-)

(no - i didn't say mankinis)

David

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


RE: [lazarus] OutKafe 5.1.0 Released !

2007-06-03 Thread Pieter Valentijn
I still enjoy the conversation for me theres no need to take it off list
:-)


Met vriendelijke groet, 
Pieter Valentijn
 
Delphidreams
http://www.delphidreams.nl
 


-Oorspronkelijk bericht-
Van: A.J. Venter [mailto:[EMAIL PROTECTED] 
Verzonden: Sunday, June 03, 2007 8:24 AM
Aan: lazarus@miraclec.com
Onderwerp: Re: [lazarus] OutKafe 5.1.0 Released !


Hi Philip,
It should be very little - as far as I can see - it should in fact be
working - it just isn't yet (I'll bet it's a small problem though), and
then packaged so it can be installed with relative ease.

To give more idea -there is some major bug that's making it exit without
an error message on launch - dunno what that bug is - that needs to be
fixed. The windows client should be able to take connection details from
a config file, connect to a postgresql server with an outkafe database,
and then log in etc. Virtually all this code is written, it simply needs
to be properly ported, packaged and shipped - by somebody with the
experience to do so (I work as exclusively on Linux as you do on windows
:p ) Of course the packaged version should also include whatever dll's
are needed for a windows app to be a postgresql client.

Are you up for giving it a shot ? You don't REALLY need a Linux server,
you could just set up a postgresql server on windows, load the OutKafe
table-scheme and manually generate one user to test with.

A.J.

PS. If you're really interested, I suggest we take it offlist at this
point as it's becoming less and less lazarus related :)



On 6/3/07, Hess, Philip J [EMAIL PROTECTED] wrote:
 A.J.,

 Still sounds interesting.

 Could you write a few sentences about what needs to be done to finish 
 the Windows client?

 What's necessary for development? I work exclusively in Windows and OS

 X, but don't use Linux for anything and don't have access currently to

 a Linux machine.

 Thanks.

 -Phil


 -Original Message-
 From: A.J. Venter [mailto:[EMAIL PROTECTED]
 Sent: Sat 6/2/2007 7:40 PM
 To: lazarus@miraclec.com
 Subject: Re: [lazarus] OutKafe 5.1.0 Released !

 On 6/3/07, Hess, Philip J [EMAIL PROTECTED] wrote:
  That sound interesting. Maybe you could include that description on 
  your Web page.
 Heh, fair enough - though I thought I basically had :p
 
  Where does OutKafe run? Does the cafe have a network server or 
  something that the cafe's computers are hooked up to?
 OutKafe comprises basically three parts (this I KNOW is on the 
 website). The postgresql database server does all the network serving,

 so I don't code any of that, I just interact with it. OutKafe has:
 1) A daemon which counts down time on logged in accounts (it's done 
 centrally for security reasons)
 2) An administration tool which allows the icafe operator to sell 
 time, create user accounts, reset passwords, define offers etc.
 3) Client programs which let a user log in, counts him down and logs 
 him out again. Currently only the Linux client is in a working state. 
 The win32 client is very close - but I need somebody with genuine 
 windows coding experience to help me finish it.
 There is also a WIFI client very similiar to what you describe below,
 but that is not very complex and at this stage barely started.
 
  I guess I'm not familiar with Internet cafes like this. Usually here

  the cafe has wireless and you get a login code for your laptop when
you buy a coffee.
 That is common in some countries, here in the developing world the 
 kind with computers hooked up that you buy time on is still very 
 common, for many people such outlets ARE their offices. Having a GPL'd

 tool to manage them is an important (I believe) way to ensure software

 freedom in the developing world.  OutKafe is the only such tool out 
 there (OpenKIOSK is only partially free software - I'm not aware of 
 any other free projects that are still actively developed though there

 are quite a few proprietory ones like smartlaunch). Of course the 
 whole thing is also done in Lazarus and is one of the oldest 
 continuing lazarus developments (the original app was started in 
 November 2002, the Lazarus website carried a story on the 3.0 release 
 in May 2005).

 Ciao
 A.J.


 --
 A.J. Venter
 CEO - OutKast Solutions C.C. http://www.outkastsolutions.co.za
 Cell: +27 83 455 9978
 Fax: +27 21 413 2800
 Office: +27 21 591 6766

 _
  To unsubscribe: mail [EMAIL PROTECTED] with
 unsubscribe as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives





-- 
A.J. Venter
CEO - OutKast Solutions C.C.
http://www.outkastsolutions.co.za
Cell: +27 83 455 9978
Fax: +27 21 413 2800
Office: +27 21 591 6766

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

RE: [lazarus] TDBgrid float: bug?

2007-05-08 Thread Pieter Valentijn
Use numeric(12,2) or what ever to create a numeric field with set
decimal.


Met vriendelijke groet, 
Pieter Valentijn
 
Delphidreams
http://www.delphidreams.nl
 


-Oorspronkelijk bericht-
Van: Andrea Mauri [mailto:[EMAIL PROTECTED] 
Verzonden: dinsdag 8 mei 2007 17:33
Aan: lazarus@miraclec.com
Onderwerp: [lazarus] TDBgrid float: bug?


Dear all,
I have some problems with TDBgrid and float values.
Firebird database.
I have a table with two fields.
One field is a (FIELD_FLOAT) FLOAT and the other DOUBLE PRECISION 
(FIELD_DOUBLE).
I tried some inserts and I show the table using DBGrid.
If I exec this:
insert into TABLE1 (FIELD_FLOAT, FIELD_DOUBLE) values (0.15, 9.11)

In the DBgrid I see:
FLOAT field: 0.15005960464
DOUBLE field: 9.109

In delphi I see the same as in lazarus for the float field but for the 
double I see correctly 9.11

I think that there are some problems with significant digits.
I tried to explore the code of TDBgrid ut I was not able to understand 
it. I am a newbie.
Any help, suggestion?
a.


_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


RE: [lazarus] Ring-Watch crashes on GTK2 and works on GTK

2007-04-12 Thread Pieter Valentijn
Sounds like a good description of my dayly job :-)
 
Met vriendelijke groet, 

Pieter Valentijn

 

Delphidreams

http://www.delphidreams.nl http://www.delphidreams.nl/ 

 

-Oorspronkelijk bericht-
Van: Alex Smirnov [mailto:[EMAIL PROTECTED] 
Verzonden: woensdag 11 april 2007 20:47
Aan: [EMAIL PROTECTED]
Onderwerp: Re: [lazarus] Ring-Watch crashes on GTK2 and works on GTK


Felipe Monteiro de Carvalho пишет: 

I have no idea what is wrong, but I advice you to find yourself what 
is wrong with the component and later send us a fixed version =) 

Gtk is quite hard to work with, so don´t dispair if it seams 
impossible to make things work at first. Just debug the problem, raise 
hipotesis about what could be wrong and test them until you find the 
problem. Check if all parameters are correct, check all the values 
that go to the function, etc... 

Just debug until you find out what is wrong. 



Hello, Felipe!

So the problem is solved. I had fixed two files - intfbaselcl.inc and
graphmath.pp. Now Ring-Chart is working both in GTK and in GTK2. New
files with fixes applied are in .ZIP file that is added to the letter.
The main problem was in intfbaselcl.inc. In graphmath.pp I had rewrote
PolyBezierArcPoints function - I think it is a good solution - it seems
that it is faster and more logical in code. Several checks were removed
and some important added. 

Also, I think it is a good idea to check all graphmath.pp - to move some
widely used constants to the top of the file and to cleanup some code.
It seems that there may be some double checking inside of it (as it
was in BezierArcPoints function). Should I do this work?

Best regards, Alexey.




RE: [lazarus] Delphi for PHP

2007-04-08 Thread Pieter Valentijn
I just Bouth it as well.
Even do its class herachie is not optimal it's mutch beter than notepad
:-)
And hey they need to start somewhere right :-)


Met vriendelijke groet, 
Pieter Valentijn
 
Delphidreams
http://www.delphidreams.nl
 


-Oorspronkelijk bericht-
Van: Cesar Romero [mailto:[EMAIL PROTECTED] 
Verzonden: zondag 8 april 2007 20:09
Aan: lazarus@miraclec.com
Onderwerp: Re: [lazarus] Delphi for PHP


Marco,

Im already using here, dispite any other opinion, D4PHP is a very 
productive tool.

[]s


Cesar
 On Fri, Apr 06, 2007 at 01:51:20PM +0200, Pieter Valentijn wrote:
   
 Remember this topic?
 Well the source is now there on sourceforge :-)

 I have seen the demo and I like it.
 All do my knowledge of php syntax is not big I hope the code inside 
 will change that :-)
 
  
   
 https://sourceforge.net/project/showfiles.php?group_id=189419
 

 Some first opinions:

 http://www.itwriting.com/blog/?p=175

 (the comments have more reviews)

 Docs/help seems to be bad. Some concerns about security too.

 _
  To unsubscribe: mail [EMAIL PROTECTED] with
 unsubscribe as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives

   

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


RE: [lazarus] PHP IDE-plugin

2007-04-08 Thread Pieter Valentijn
:-0 I gess you mean for lazarus :-)
Well lets first get the currenct stuff compiling most delphi apps and
worrie about that later :-)
Or is someone realy bored?.

Met vriendelijke groet, 
Pieter Valentijn
 
Delphidreams
http://www.delphidreams.nl
 


-Oorspronkelijk bericht-
Van: Al Boldi [mailto:[EMAIL PROTECTED] 
Verzonden: zondag 8 april 2007 22:49
Aan: lazarus@miraclec.com
Onderwerp: [lazarus] PHP IDE-plugin


Cesar Romero wrote:
 Im already using here, dispite any other opinion, D4PHP is a very 
 productive tool.

Pieter Valentijn wrote:
 I just Bouth it as well.
 Even do its class herachie is not optimal it's mutch beter than 
 notepad

It sure is!

But the real question is:

How difficult would it be to have a PHP IDE-plugin based on VCL4PHP?


Thanks!

--
Al

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


RE: [lazarus] Delphi for PHP

2007-04-06 Thread Pieter Valentijn
Remember this topic?
Well the source is now there on sourceforge :-)

I have seen the demo and I like it.
All do my knowledge of php syntax is not big I hope the code inside will
change that :-)

https://sourceforge.net/project/showfiles.php?group_id=189419


Met vriendelijke groet, 
Pieter Valentijn
 
Delphidreams
http://www.delphidreams.nl
 


-Oorspronkelijk bericht-
Van: nataraj narayan [mailto:[EMAIL PROTECTED] 
Verzonden: maandag 26 februari 2007 4:56
Aan: lazarus@miraclec.com
Onderwerp: RE: [lazarus] Delphi for PHP


_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


RE: [lazarus] XML and Record type

2007-03-19 Thread Pieter Valentijn
) then
  begin
SetXmlToPersistent(Add, '' ,
ANode.indexNode[CollCount]);
  end;
end;
end else
begin
for CollCount := 0 to ANode.Nodes.Count - 1 do
begin
  if ANode.SelectSingleNode('OBJ' +
IntToStr(NummerNode))  nil then
  begin
SetXmlToPersistent(Add, Propname + '_' +
'OBJ' + IntToStr(NummerNode), ABaseNode);
Inc(NummerNode);
  end;
end;
   end; // alternate collection add
  end
end; // end with
  end; //end is collection
 
SetXmlToPersistent(TPersistent(GetObjectProp(APersistent, PropList[i])),
Propname, ABaseNode);
end;
  end;
tkArray:
  begin
Showmessage('Set array ' + PropList[i]^.Name);
  end;

  end; // end case
  except
on e: Exception do

  end;

end;
  finally
FreeMem(PropList, SizeOf(PPropInfo) * ClassTypeData.PropCount);
  end;
end;






Met vriendelijke groet, 
Pieter Valentijn
 
Delphidreams
http://www.delphidreams.nl
 


-Oorspronkelijk bericht-
Van: Bram Kuijvenhoven [mailto:[EMAIL PROTECTED] 
Verzonden: zondag 18 maart 2007 22:05
Aan: lazarus@miraclec.com
Onderwerp: Re: [lazarus] XML and Record type


George Lober wrote:
 A question guys. Are there any utilities/functions out there to 
 convert
 a pascal record type into XML format and back?  Is there such an
animal, 
 or am I asking for too much?

Not for as far as I known, but I think you could either
- use classes with published methods  RTTI; there might already be some
code dealing with this; have a look at TXMLPropStorage
- write a program that parses the record declaration and produces XML
read/write functions for these record types

Regards,

Bram

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


RE: [lazarus] Custom components Mouse events

2007-03-19 Thread Pieter Valentijn
Yes you can use this property to find out things or you can remember
your own variabel.
the key here is that only 1 control will recieve then key down. So if
you want to move a notebook with controls you need to write a routine to
handel there mouse down to.
 
I think theres lots of solutions to this problem but on would be to
itereating owners to find the tabcontrol.
 
You can also look at the lazarus implementation for form (Drag buttons
etc) designer i think its in the unit lazarus\desiger\designer.pp
This routine looks like the main routine for mousedown.
 
procedure TDesigner.MouseDownOnControl(Sender: TControl;
  var TheMessage: TLMMouse);  
 
 
 
 
 

Met vriendelijke groet, 

Pieter Valentijn

 

Delphidreams

http://www.delphidreams.nl http://www.delphidreams.nl/ 

 

-Oorspronkelijk bericht-
Van: Charl van Jaarsveldt [mailto:[EMAIL PROTECTED] 
Verzonden: maandag 19 maart 2007 14:23
Aan: lazarus@miraclec.com
Onderwerp: Re: [lazarus] Custom components Mouse events


I guess I was secretly hoping that things like the right lick menu on
the notebook control can just be enabled on the notebook in my control
since it is already implemented. So, can the right click event on the
notebook in the wizard be propagated from the wizard to the notebook? I
wonder if that made any sense at all? :-) 

I see there are ControlState property that I can set for each control in
my Wizard component, and this control state property has a few values
relating to mouse events. What are these for?

Thanks
Charl


On 3/14/07, Pieter Valentijn [EMAIL PROTECTED] wrote: 

Theres 3 main events when working with a mouse.
 
1 onMouseDown (like when someone clicks your control the rect here is a
client rect you need to store this to execute the next event and you
need to set some boolean to indicate the mouse is down.
 
2 OnMouseMove  When the mouse is down you can shif the object below. The
point you get here is the point of the mouse in the other control. The
diverence between this pos and the pos at mouse down needs to be used to
correct the top and left of the drag control.
 
3 OnMouseUp Here you release the mouse by setting the boolean from
onMouseDown to false again so mousemove does not do annything.
 
 
 
 

Met vriendelijke groet, 

Pieter Valentijn

 

Delphidreams

http://www.delphidreams.nl http://www.delphidreams.nl/ 

 

-Oorspronkelijk bericht-
Van: Charl van Jaarsveldt [mailto:[EMAIL PROTECTED] 
Verzonden: woensdag 14 maart 2007 13:42
Aan: lazarus@miraclec.com
Onderwerp: [lazarus] Custom components Mouse events


Hello,

I am trying to make a wizard component and I am using the TButtonPanel
as my example. So, I have the main component that inherits from
TCustomPanel and then all the sub controls in there - buttons, caption
label and a TNotebook for the main control to handle the wizard pages. 

Now while trying to test it I found a problem: Mouse events is not what
I expect them to be and I would like to know what to do to make them
work. 
Specific problems:
* When I try to move the component I have to carefully place my mouse on
the little part of the panel that sticks out in the area between
components (result of BorderSpacing) to move the whole thing. If I try
to click and drag anywhere else (say with my mouse on the notebook)
nothing happens. How can I make the normal movement possible? 
* When I try to right-click on the Notebook component, nothing happens.
I need that normal pop-up menu to add/remove pages and to select the
current page. 

Thanks
Charl

-- 
I love deadlines. I especially love the whooshing sound they make as
they fly by. - Douglas Adams 




-- 
I love deadlines. I especially love the whooshing sound they make as
they fly by. - Douglas Adams 



RE: [lazarus] XML and Record type

2007-03-19 Thread Pieter Valentijn
This soultion will not but if rewriten thwen it can handel a better
suport for records.
Its now ordered (by indexed name) but it can be changed to use nodes.

TJanXml is a opensource XML parcer in Delphi made by Jan Verhoeven He is
a Ducth man who inspired me sometime ago to make opensource my self.

Theres nothing special about it than that its fast. It's a DOM parcer
and it cant handel all types correctly (like encoding and decoding) but
for some purposes it was still great to use.

Theres no reason that you cant rebuild this to the XMLParcer in Lazarus.
All do I have noticed the new unit for the XML parcer are better then
the default installed with laz latest full install.



Met vriendelijke groet, 
Pieter Valentijn
 
Delphidreams
http://www.delphidreams.nl
 


-Oorspronkelijk bericht-
Van: George Lober [mailto:[EMAIL PROTECTED] 
Verzonden: maandag 19 maart 2007 20:17
Aan: lazarus@miraclec.com
Onderwerp: Re: [lazarus] XML and Record type


Interesting. I have to mention that the main reason for my question is 
that I want to use XML for data storage, because I can see XML being 
able to withstand changes in the data format. So that brings up the 
question in my mind, how would the example code handle addition or 
removal of record elements? Would that be a problem? 

BTW is there anything special about the TjanXMLNode type ?


Regards,
George


Pieter Valentijn wrote:
 I think if you need a dynamic way to extract data use Tpersistent + to

 store the data. If you need 1 to manny use TCollection.
 (http://www.delphi3000.com/articles/article_1844.asp?SK=)

 I wrote a article on how to get data from and to the GUI
 http://www.delphi3000.com/articles/article_1846.asp?SK=
 This shows how to use RTTI I think this all works in Lazarus.

 Something like this is also implemeted in the RTTI tab of Lazarus. 
 Streaming object to a XML File (and retrieving them) should not be 
 hard to implement based on the RTTI routines.

 So all you need to do is to create at least a TPersistant with your 
 fields published that can be read by RTTI and so iterated in e general

 function.

 Heres some code I found on how to make XML form a object.
 You will need to rewrite it im sure.

 procedure TXMLBaseParcer.MakeXmlFromPersistent(APersistent:
TPersistent;
   Parentname: string; ABaseNode: TjanXMLNode);
 var
   PropList: PPropList;
   PropCount: Integer;
   ClassTypeInfo: PTypeInfo;
   ClassTypeData: PTypeData;
   i, EnumCount, CollectionCount: integer;
   Propname: string;
   ANode, AddedNode: TjanXMLNode;
 begin
   if APersistent = nil then exit;
   AddedNode := nil;
   ClassTypeInfo := APersistent.ClassInfo;
   ClassTypeData := GetTypeData(ClassTypeInfo);
   PropCount := ClassTypeData.PropCount - 1;

   //  reserveer geheugen
   GetMem(PropList, SizeOf(PPropInfo) * ClassTypeData.PropCount);
   // Error trap
   try
   // Vul de prop list
 GetPropInfos(APersistent.ClassInfo, PropList);
 if Parentname  '' then
   ANode :=
ABaseNode.SelectSingleNode(UnderscoresToName(Parentname))
 else
   ANode := ABaseNode;
 if ANode  nil then
   for i := 0 to PropCount do
   begin

 Propname := Parentname + '_' + PropList[i]^.Name;
 if Propname[1] = '_' then Propname[1] := ' ';
 Propname := trim(Propname);


 case PropList[i]^.PropType^.Kind of
   tkString, tkLString,
 tkWString, tkWChar,
 tkChar:
 begin
   if (APersistent is tcomponent) and (PropList[i]^.Name =
 'Name') then
 AddedNode := nil
   else
 AddedNode := ANode.AddNode(PropList[i]^.Name,
   GetStrProp(APersistent, PropList[i]));
 end;

   tkInteger,
 tkEnumeration:
 begin
   if (PropList[i]^.PropType^.Name = 'Boolean') then
   begin
 if GetOrdProp(APersistent, PropList[i]) = 0 then
   AddedNode := ANode.AddNode(PropList[i]^.Name,
 false)
 else
   AddedNode := ANode.AddNode(PropList[i]^.Name,
 true);

   end
   else
 AddedNode := ANode.AddNode(PropList[i]^.Name,
   GetOrdProp(APersistent, PropList[i]));
 end;
   tkFloat:
 begin
   if (PropList[i]^.PropType^.Name = 'TDateTime') then
   begin
 AddedNode := ANode.AddNode(PropList[i]^.Name,
   VarFromDateTime(GetFloatProp(APersistent,
 PropList[i])))
   end

   else
 AddedNode := ANode.AddNode(PropList[i]^.Name,
   GetFloatProp(APersistent, PropList[i]));

 end;
   tkClass:
 begin
   if GetObjectProp(APersistent, PropList[i]) is 
 TPersistent then
   begin
 AddedNode := ANode.AddNode(PropList[i]^.Name

RE: [lazarus] XML and Record type

2007-03-19 Thread Pieter Valentijn
Sorry I have problems with spelling sometimes :-0
I gess a lot of programmers have this.

Met vriendelijke groet, 
Pieter Valentijn
 
Delphidreams
http://www.delphidreams.nl
 


-Oorspronkelijk bericht-
Van: Bram Kuijvenhoven [mailto:[EMAIL PROTECTED] 
Verzonden: maandag 19 maart 2007 23:08
Aan: lazarus@miraclec.com
Onderwerp: Re: [lazarus] XML and Record type


Pieter Valentijn wrote:
 TJanXml is a opensource XML parcer in Delphi made by Jan Verhoeven He 
 is a Ducth man who inspired me sometime ago to make opensource my 
 self.

It is spelled 'parser' with an s :)

Bram

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


RE: [lazarus] Custom components Mouse events

2007-03-14 Thread Pieter Valentijn
Theres 3 main events when working with a mouse.
 
1 onMouseDown (like when someone clicks your control the rect here is a
client rect you need to store this to execute the next event and you
need to set some boolean to indicate the mouse is down.
 
2 OnMouseMove  When the mouse is down you can shif the object below. The
point you get here is the point of the mouse in the other control. The
diverence between this pos and the pos at mouse down needs to be used to
correct the top and left of the drag control.
 
3 OnMouseUp Here you release the mouse by setting the boolean from
onMouseDown to false again so mousemove does not do annything.
 
 
 
 

Met vriendelijke groet, 

Pieter Valentijn

 

Delphidreams

http://www.delphidreams.nl http://www.delphidreams.nl/ 

 

-Oorspronkelijk bericht-
Van: Charl van Jaarsveldt [mailto:[EMAIL PROTECTED] 
Verzonden: woensdag 14 maart 2007 13:42
Aan: lazarus@miraclec.com
Onderwerp: [lazarus] Custom components Mouse events


Hello,

I am trying to make a wizard component and I am using the TButtonPanel
as my example. So, I have the main component that inherits from
TCustomPanel and then all the sub controls in there - buttons, caption
label and a TNotebook for the main control to handle the wizard pages. 

Now while trying to test it I found a problem: Mouse events is not what
I expect them to be and I would like to know what to do to make them
work. 
Specific problems:
* When I try to move the component I have to carefully place my mouse on
the little part of the panel that sticks out in the area between
components (result of BorderSpacing) to move the whole thing. If I try
to click and drag anywhere else (say with my mouse on the notebook)
nothing happens. How can I make the normal movement possible? 
* When I try to right-click on the Notebook component, nothing happens.
I need that normal pop-up menu to add/remove pages and to select the
current page. 

Thanks
Charl

-- 
I love deadlines. I especially love the whooshing sound they make as
they fly by. - Douglas Adams 



RE: [lazarus] WikiHelp

2007-03-03 Thread Pieter Valentijn
Still I manage to get the program working for the step list the topics.

I have downloaded your new source and compiled it but if I hit create I
get a error about the XML not being valide.

I saved the output in a memo and pasted that in to a document.
There was nothin invalide about this XML. So I gess it's the parcer that
is faulty.
You say you use SVN lazarus right. I gess I need to refresh my XML pare
unit so it works beter.

Just to make sure that's the case you can import something from the osF
wiki ?
The XML my parcer can read for instance is 

mediawiki xmlns=http://www.mediawiki.org/xml/export-0.3/;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://www.mediawiki.org/xml/export-0.3/
http://www.mediawiki.org/xml/export-0.3.xsd; version=0.3
xml:lang=nl
  siteinfo
sitenameOsFinancials Wiki/sitename
 
basehttp://www.osfinancials.org/mediawiki/index.php/Hoofdpagina/base
generatorMediaWiki 1.6.8/generator
casefirst-letter/case
  namespaces
  namespace key=-2Media/namespace
  namespace key=-1Speciaal/namespace
  namespace key=0 /
  namespace key=1Overleg/namespace
  namespace key=2Gebruiker/namespace
  namespace key=3Overleg gebruiker/namespace
  namespace key=4OsFinancials Wiki/namespace
  namespace key=5Overleg OsFinancials Wiki/namespace
  namespace key=6Afbeelding/namespace
  namespace key=7Overleg afbeelding/namespace
  namespace key=8MediaWiki/namespace
  namespace key=9Overleg MediaWiki/namespace
  namespace key=10Sjabloon/namespace
  namespace key=11Overleg sjabloon/namespace
  namespace key=12Help/namespace
  namespace key=13Overleg help/namespace
  namespace key=14Categorie/namespace
  namespace key=15Overleg categorie/namespace
/namespaces
  /siteinfo
  page
titleBackup Path/title
id1478/id
revision
  id1831/id
  timestamp2006-11-14T22:10:57Z/timestamp
  contributor
usernameDigidan/username
id29/id
  /contributor
  text xml:space=preserveThis option allows you to select the
drive and /or folders on which you wish to make your Backups. This is
normally your A: Drive, but you could also make backups in any available
folder or directory on your hard drive, CD-R, CD-R/W or USB removable
device.

'''To Set the Default Backup Path:'''
lt;olgt;lt;ligt;Click on the '''Setup-gt;Preferences-gt;Backup
Path''' menu option. lt;br /gt;
[[Image:Keyboard.png|Keyboard Access]] - '''Keyboard Access:'''  Press
the '''Alt+S+P+B''' keys on your keyboard. lt;br /gt;
The Browse for Folder screen is displayed: lt;br /gt;
http://www.osfinancials.org/mediawiki/images/pictures/setup-backup-path.
png lt;/ligt;
lt;ligt;Select any available valid drive or folder on which you wish
to make backups.lt;/ligt;
lt;ligt;Click on the '''OK''' button.lt;/ligt; lt;/olgt; 
   



[[Image:Note.png|left|Note]] If you have selected a valid drive or
folder, you may change this backup path on the Backup To field of the
Backup Set of Books screen.

[[Category:English Documentation]]
[[Category:Setup]]
[[Category:Setup Preferences]]
[[Category:Backup/Restore]]/text
/revision
  /page
/mediawiki


Met vriendelijke groet, 
Pieter Valentijn
 
Delphidreams
http://www.delphidreams.nl
 


-Oorspronkelijk bericht-
Van: Christian Ulrich [mailto:[EMAIL PROTECTED] 
Verzonden: vrijdag 2 maart 2007 17:06
Aan: lazarus@miraclec.com
Onderwerp: Re: [lazarus] WikiHelp


 I follow the link manualy from my browser and it said to me you need 
 te be logged in.

I have checked out 2/3 of the osFinancials wiki without loggin in look
at 
your server log for Mozilla 4.0 (compatible; WikiHelp)
I have added an corrected xml definition to svn (you have forgot to
change 
one Spezial to Speciaal).
I have also added an .lpr and reworked the Search routine  for more 
compatibility.

Christian 

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


RE: [lazarus] WikiHelp

2007-03-02 Thread Pieter Valentijn
The osF wiki.
I follow the link manualy from my browser and it said to me you need te
be logged in.

http://www.osfinancials.org

Met vriendelijke groet, 
Pieter Valentijn
 
Delphidreams
http://www.delphidreams.nl
 


-Oorspronkelijk bericht-
Van: Christian Ulrich [mailto:[EMAIL PROTECTED] 
Verzonden: donderdag 1 maart 2007 21:22
Aan: lazarus@miraclec.com
Onderwerp: Re: [lazarus] WikiHelp


 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.Item
 s[
 i]+'curonly=true
 This was you old line. If I follow the osF wiki I get a you are not
 loged in message.
 I gess we should be able to log in.

The export page is no edit page.
I have tested on the Lazarus Wiki, My Wiki and tzhe german Wikipedia and
i 
got nowhere an login message ?!

On what wiki do you test ?

Christian 

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


RE: [lazarus] WikiHelp

2007-03-02 Thread Pieter Valentijn
So I gess it must be something else.
I use this XML. 

Met vriendelijke groet, 
Pieter Valentijn
 
Delphidreams
http://www.delphidreams.nl
 


-Oorspronkelijk bericht-
Van: Christian Ulrich [mailto:[EMAIL PROTECTED] 
Verzonden: vrijdag 2 maart 2007 4:19
Aan: lazarus@miraclec.com
Onderwerp: Re: [lazarus] WikiHelp


 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 see
the site Page export and can use it without login.
I also never see an option in my wiki pereferences where i can turn off
page 
exports for not logged in users.

Christian 

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives
?xml version=1.0?
CONFIG SpecialPageURLSpeciaal:Allpages/SpecialPageURL 
ExportPageURL?title=Spezial:Exportamp;action=submitamp;pages=%samp;curonly=true/ExportPageURL 
ImageTagNameAfbeelding/ImageTagName /CONFIG

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 best left to the operating system. Now with that
date as a string in to the database this can still be a advantage. Like
for systems that don't always know the exact day.
By representing them in String this can be overcome. Searches can be
done on year and month fairly easy. 


Met vriendelijke groet, 
Pieter Valentijn
 
Delphidreams
http://www.delphidreams.nl
 


-Oorspronkelijk bericht-
Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Namens Michael
Van Canneyt
Verzonden: woensdag 28 februari 2007 22:49
Aan: lazarus@miraclec.com
Onderwerp: RE: [lazarus] StrToDate error




On Wed, 28 Feb 2007, Pieter Valentijn wrote:

 Most users here will find this kind of display confusing.
 But I agree with the store path. Anny external storae that needs sting

 presentation should be in one format or at least s format agreed on. 
 The case I have is that variants are used in parce thechnieks and 
 there cnversion is importamt to the rules. (reporting uses parces and 
 so you need to go from string to date and from date to string using 
 variants. Im not sure how this is aranged in Laz but I think in Delphi

 its not realy working well.

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 programmer to
decide how the date/time is shown to the user. The user has decided that
for us when he configured his regional/localization settings.

To be able to store date/times without worrying about the settings, the
TDateTime format is used. It's the responsability of the data layer to
convert TDateTime correctly to/from something the database understands.

It's the responsability of the GUI layer to display the TDateTime 
to the user in the format HE specified. And to convert anything HE
provides to TDateTime format.

I've been working for 10 years with this principle, in databases which
are crowded with date/time fields (the number of fields runs in the
1000s) and the only problem we ever experienced was when we explicitly
converted TDateTime to string representation using some wrong string. We
don't use custom routines, only the standard Delphi routines.

The previous version of the same application, written in VB, was crowded
with problems exactly because the dates were manipulated as strings
instead of as some native date/time format such as TDateTime.

So IMHO Delphi handles it pretty well. But you must stick to the rules
it 
and the user set...

Michael.

 
 
 
 Met vriendelijke groet,
 Pieter Valentijn
  
 Delphidreams
 http://www.delphidreams.nl
  
 
 
 -Oorspronkelijk bericht-
 Van: Graeme Geldenhuys [mailto:[EMAIL PROTECTED]
 Verzonden: dinsdag 27 februari 2007 7:48
 Aan: lazarus@miraclec.com
 Onderwerp: Re: [lazarus] StrToDate error
 
 
 I didn't follow the full thread, so excuse me if this reply is out of 
 context. Have you guys ever considered using the International ISO 
 8601 date format. See the following link for a summary:
 
   { Summary of ISO 8601  http://www.cl.cam.ac.uk/~mgk25/iso-time.html
}
   cIntlDateTimeStor = 'mmddThhmmss';// for storage
   cIntlDateTimeDisp = '-mm-dd hh:mm:ss';  // for display
 
 
 I've also created a few helper functions that convert those date 
 formats to TDateTime, and the reverse.
 
   function tiDateTimeAsIntlDateStor(const ADateTime: TDateTime):
string;
   function tiDateTimeAsIntlDateDisp(const ADateTime: TDateTime):
string;
   function tiIntlDateStorAsDateTime(const AValue: string): TDateTime;
   function tiIntlDateDispAsDateTime(const AValue: string): TDateTime;
 
 Once it's in a TDateTime, any GUI date/time edit component can do with

 it as it pleases, though I still show it in the ISO display format. 
 Even for storing dates in a database, I don't use the DB's native 
 date/time types, I rather use the ISO storage format and a plain 
 string field. This way I always know the date formats and no confusion

 with date/time delimiters and no confusion with the date parts order 
 d/m/y, y/md/, m/d/y, etc...
 
 I've been using this in a production environment for over a year now 
 without any issues.
 
 Regards,
   - Graeme -
 
 
 
 On 2/27/07, Pieter Valentijn [EMAIL PROTECTED] wrote:
  I tend to have trouble with variants.
  If I use this techniek and I store a date string in a variant it 
  does
  not want to convert to date. So I want to stick to the sys locale
and 
  make sure i don't try to swim upstream :-)
 
  Met vriendelijke groet,
  Pieter Valentijn
 
  Delphidreams
  http://www.delphidreams.nl
 
 
 
 
 _
  To unsubscribe: mail [EMAIL PROTECTED

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 (FallbackLang'') then
 
DoTranslateUnitResourceStrings(ResUnitName,Format(BaseFilename,[Fallback
Lang]));
  if (Lang'') then
 
DoTranslateUnitResourceStrings(ResUnitName,Format(BaseFilename,[Lang]));
end;   

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 message.
I gess we should be able to log in.


Met vriendelijke groet, 
Pieter Valentijn
 
Delphidreams
http://www.delphidreams.nl
 


-Oorspronkelijk bericht-
Van: Christian Ulrich [mailto:[EMAIL PROTECTED] 
Verzonden: donderdag 1 maart 2007 0:43
Aan: lazarus@miraclec.com
Onderwerp: Re: [lazarus] WikiHelp


 A demo of your XML file would be apreciated (all do I think I can 
 produce it if I put in some time.

in folder defs in svn you have the english and german xml files just
copy 
them to the output foolder

 I also had a error in this unit Utils in the routine
 I replaced the lines and I got it compiled but im not sure what I miss

 now. Its not part of your source so I gess it's a unit that comes with

 laz.


 procedure LoadLanguage(lang: string);
 begin
  if
 FileExists(ProgramDirectory+'languages'+Directoryseparator+Lang+'.po')
 then
TranslateUnitResourceStrings
 // old line 
 ('uintfstrconsts',ProgramDirectory+'languages'+Directoryseparator+Lang
 +'
 .po');

('uintfstrconsts',ProgramDirectory+'languages'+Directoryseparator+Lang+'
 .po','a','b');
 //

TranslateResourcestrings(ProgramDirectory+'languages'+Directoryseparator
 +Lang+'.mo');
 end;

I dont understand what you mean.

thats the definition of TranslateUnitResourceStrings in my lazarus:

function TranslateUnitResourceStrings(const ResUnitName, AFilename:
string
  ): boolean;

what is ,a,b in your changed one ?
these routiones are just for loading translations so its no big thing if
you 
miss them.


Christian 

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


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 TDateTime and let the end user display it in his format. I gess
it was just the point Graeme was making. 

I still enjoyed the discussion guys :-)

Met vriendelijke groet, 
Pieter Valentijn
 
Delphidreams
http://www.delphidreams.nl
 


-Oorspronkelijk bericht-
Van: Michael Van Canneyt [mailto:[EMAIL PROTECTED] 
Verzonden: donderdag 1 maart 2007 9:00
Aan: lazarus@miraclec.com
Onderwerp: Re: [lazarus] StrToDate error




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 programmer 
  to decide how the date/time is shown to the user. The user has 
  decided that for us when he configured his regional/localization 
  settings.
 
 Both you and Peter V. misunderstood my post slightly. You don't have 
 to force the user to see the date/time in a certain format.  Though we
 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 (mmdd, ddmm, mmdd, etc).

You don't need to guess if it's in the database native format ?

 
 Once the string date/time  is read and converted it to a TDateTime, 
 the GUI can displays it in the way the user specified in their 
 regional settings, but as soon as it goes back to the database or some

 file, it gets converted back to the ISO string format.
 
 So bottom line, the user sees the date/time it the format they prefer.

 This is the first choice. We opted to follow the ISO 
 8601recommendation for display as well, to help remove confusion 
 between various date formats in digital or hardcopy form.

To me this sounds contradictory :-)

the user sees the date/time it the format they prefer.

We opted to follow the ISO 8601recommendation for display as well

Which one is it ? You can't have both :-)


 
 Imagine the following case:
 The user in USA generates a report with date/time columns as a PDF 
 document. Emails that to head office in the EU somewhere where in 
 changes hands a few times.  Now how do we know what date format that 
 report used?
 
 Is 02-06-2002 the 2nd June or is it 6th Feb?  So when is the deadline 
 for the multi-million dollar contract? :-)  If it uses the ISO 8601 
 format -mm-dd there is no confusion, hence the reason we opted for

 that format in our applications (display on screen and paper and in 
 storage).

So, the user has no choice... ?

(not trying to argue here, but your statements seem contradictory to me.
But that's probably me :/)

Michael.

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


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; 

and agree on it in a instance. 

Met vriendelijke groet, 
Pieter Valentijn
 
Delphidreams
http://www.delphidreams.nl
 


-Oorspronkelijk bericht-
Van: Joost van der Sluis [mailto:[EMAIL PROTECTED] 
Verzonden: donderdag 1 maart 2007 10:41
Aan: lazarus@miraclec.com
Onderwerp: Re: [lazarus] StrToDate error


 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 in the data-layer, db-component or database-server
regarding TDateTime fields, so you decided to store it as a string?

If there's a bug regarding numerical fields, do you also store them as
strings? Or do you fix the bug? (Use another database-server?)

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 understandable, since if you use a simple 'select
datefield from table', without using parameters, it'll return the field
in a string-format, depending on the database-server settings, the
client settings and the connection/transaction settings. The program
which retrieves the field, should be aware of that. If it doesn't that's
just a bug.

It's exactly the same as with your solution: the application has to know
in which format the string comes. (in your case some iso-standard) Only
the 'build-in'-system is more flexible. You can set the format you want
yourself. (including your ISO-standard.) So instead of rewriting
everything in string-based fields, you could do a 'set
dateformat=iso' or something similar when you open a connection...

And third-party software can set it to their own needs...

Joost.

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


RE: [lazarus] WikiHelp

2007-02-28 Thread Pieter Valentijn
I pulled the source but I miss the wikihelp.lpr.
I have it from your ziped source so im ok ther ebut I gess you should
add it to the svn.


Met vriendelijke groet, 
Pieter Valentijn
 
Delphidreams
http://www.delphidreams.nl
 


-Oorspronkelijk bericht-
Van: Christian Ulrich [mailto:[EMAIL PROTECTED] 
Verzonden: dinsdag 27 februari 2007 18:26
Aan: lazarus@miraclec.com
Onderwerp: Re: [lazarus] WikiHelp


 If I find some time to kill I will investigate the SVN so I can be in 
 sync with you.

Ok, i have made several things:

* All language depend things are now readable from an xml file so you
need 
only to make
an new xml file to make your wiki language avalible.

* It now has an recursive mode so you can only search one startpage and
set 
the checkbox and
on processing an page all linkes pages are added to the to process
list.

* Several wiki tags are converted better (mostly the html from the
lazarus 
wiki looks like the wiki itself now)

* Maked the source fpc 2.0.4 compatible (but the xml routines seems to
have 
soume problems there :()

* Moved the source to svn in the lazarus ccr look at my page for the
full 
address


regards
Christian 

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


RE: [lazarus] WikiHelp

2007-02-28 Thread Pieter Valentijn
I got it compiling

A demo of your XML file would be apreciated (all do I think I can
produce it if I put in some time.
I also had a error in this unit Utils in the routine  
I replaced the lines and I got it compiled but im not sure what I miss
now.
Its not part of your source so I gess it's a unit that comes with laz.


procedure LoadLanguage(lang: string);
begin
  if
FileExists(ProgramDirectory+'languages'+Directoryseparator+Lang+'.po')
then
TranslateUnitResourceStrings 
// old line
('uintfstrconsts',ProgramDirectory+'languages'+Directoryseparator+Lang+'
.po');
('uintfstrconsts',ProgramDirectory+'languages'+Directoryseparator+Lang+'
.po','a','b');
//
TranslateResourcestrings(ProgramDirectory+'languages'+Directoryseparator
+Lang+'.mo');
end;



Met vriendelijke groet, 
Pieter Valentijn
 
Delphidreams
http://www.delphidreams.nl
 


-Oorspronkelijk bericht-
Van: Christian Ulrich [mailto:[EMAIL PROTECTED] 
Verzonden: dinsdag 27 februari 2007 18:26
Aan: lazarus@miraclec.com
Onderwerp: Re: [lazarus] WikiHelp


 If I find some time to kill I will investigate the SVN so I can be in 
 sync with you.

Ok, i have made several things:

* All language depend things are now readable from an xml file so you
need 
only to make
an new xml file to make your wiki language avalible.

* It now has an recursive mode so you can only search one startpage and
set 
the checkbox and
on processing an page all linkes pages are added to the to process
list.

* Several wiki tags are converted better (mostly the html from the
lazarus 
wiki looks like the wiki itself now)

* Maked the source fpc 2.0.4 compatible (but the xml routines seems to
have 
soume problems there :()

* Moved the source to svn in the lazarus ccr look at my page for the
full 
address


regards
Christian 

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


RE: [lazarus] StrToDate error

2007-02-28 Thread Pieter Valentijn
Most users here will find this kind of display confusing.
But I agree with the store path. Anny external storae that needs sting
presentation should be in one format or at least s format agreed on. The
case I have is that variants are used in parce thechnieks and there
cnversion is importamt to the rules. (reporting uses parces and so you
need to go from string to date and from date to string using variants.
Im not sure how this is aranged in Laz but I think in Delphi its not
realy working well.



Met vriendelijke groet, 
Pieter Valentijn
 
Delphidreams
http://www.delphidreams.nl
 


-Oorspronkelijk bericht-
Van: Graeme Geldenhuys [mailto:[EMAIL PROTECTED] 
Verzonden: dinsdag 27 februari 2007 7:48
Aan: lazarus@miraclec.com
Onderwerp: Re: [lazarus] StrToDate error


I didn't follow the full thread, so excuse me if this reply is out of
context. Have you guys ever considered using the International ISO 8601
date format. See the following link for a summary:

  { Summary of ISO 8601  http://www.cl.cam.ac.uk/~mgk25/iso-time.html }
  cIntlDateTimeStor = 'mmddThhmmss';// for storage
  cIntlDateTimeDisp = '-mm-dd hh:mm:ss';  // for display


I've also created a few helper functions that convert those date formats
to TDateTime, and the reverse.

  function tiDateTimeAsIntlDateStor(const ADateTime: TDateTime): string;
  function tiDateTimeAsIntlDateDisp(const ADateTime: TDateTime): string;
  function tiIntlDateStorAsDateTime(const AValue: string): TDateTime;
  function tiIntlDateDispAsDateTime(const AValue: string): TDateTime;

Once it's in a TDateTime, any GUI date/time edit component can do with
it as it pleases, though I still show it in the ISO display format. Even
for storing dates in a database, I don't use the DB's native date/time
types, I rather use the ISO storage format and a plain string field.
This way I always know the date formats and no confusion with date/time
delimiters and no confusion with the date parts order d/m/y, y/md/,
m/d/y, etc...

I've been using this in a production environment for over a year now
without any issues.

Regards,
  - Graeme -



On 2/27/07, Pieter Valentijn [EMAIL PROTECTED] wrote:
 I tend to have trouble with variants.
 If I use this techniek and I store a date string in a variant it does 
 not want to convert to date. So I want to stick to the sys locale and 
 make sure i don't try to swim upstream :-)

 Met vriendelijke groet,
 Pieter Valentijn

 Delphidreams
 http://www.delphidreams.nl




_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


RE: [lazarus] StrToDate error

2007-02-26 Thread Pieter Valentijn
Im not sure itds SQL as this is OCI layer finctions it parces params to
a prepared SQL statement.
They came with a quote that BAAN uses its on format for null dates. I
gess they just don't want to write the is not null against the =
nuldate. Still I think this should be something the database should take
care of. Then I asked them if they could make it a parameter so I can
relay on correct date entrys and this guys starts ratteling about the
test they would need to preform to make this change. Well I hope than
now the BDE is out its not going to happen again. (Lest assume that
messed up the parameters).


Met vriendelijke groet, 
Pieter Valentijn
 
Delphidreams
http://www.delphidreams.nl
 


-Oorspronkelijk bericht-
Van: Michael Van Canneyt [mailto:[EMAIL PROTECTED] 
Verzonden: zondag 25 februari 2007 23:01
Aan: lazarus@miraclec.com
Onderwerp: RE: [lazarus] StrToDate error




On Sun, 25 Feb 2007, Pieter Valentijn wrote:

 :-0
 Is it?
 I never know.
 I think it should come from the system locale.

It should, yes.

 In that case this routine still works.

Normally, yes.

 I gess the hardest part is the MM-DD- against DD-MM-. I have 
 seen that theres anly 3 combinations posible in Delphi. DD-MM-
 MM-DD-
 And
 -MM-DD
 
 Where - is anny date seperator.
 
 I tried once to set it to something like DD--MM.
 In Windows this worked(display time etc) but Delphi StrToDate choked 
 on it.
 
 Now I know no one will use this format it was just for me to see what 
 format was used. As in a Terminal server enviroment the defaul 
 settings of the system sometimes was set in a user session (I still 
 don't know why) and as the server is usaly English and the masks are 
 all in Dutch this happened sometimes. When we where still deling with 
 The bde and oracle this error made the date insert of oracle go wrong 
 and it inserted absurd dates. I logged a call at Oracle complaining 
 about the strange data insert. They said it was not there problem. 
 They don't check the dates for validity.

Sounds like sqlite which also doesn't check validity of the data you
feed it. Nice going for a multi-billion-dollar company. :-)

Michael.

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


RE: [lazarus] StrToDate error

2007-02-26 Thread Pieter Valentijn
I tend to have trouble with variants.
If I use this techniek and I store a date string in a variant it does
not want to convert to date.
So I want to stick to the sys locale and make sure i don't try to swim
upstream :-)

Met vriendelijke groet, 
Pieter Valentijn
 
Delphidreams
http://www.delphidreams.nl
 


-Oorspronkelijk bericht-
Van: Michael Van Canneyt [mailto:[EMAIL PROTECTED] 
Verzonden: zondag 25 februari 2007 23:45
Aan: Jeff Steinkamp
CC: lazarus@miraclec.com
Onderwerp: Re: [lazarus] StrToDate error




On Sun, 25 Feb 2007, Jeff Steinkamp wrote:

 And thus is the problem with trying to internationalize a software 
 product where data, in text format, can be passed back and forth 
 easily.
 
 The space character for a date separator is not part of the enumerated

 set. It is '-' or '/' for the short date format.
 
 With international correspondence, the official date format is usually

 DD MMM  when using English.  But the short date format is one of 
 the following:
 
 DD-MM-
 MM-DD-
 YYYD-MM-DD
 
 where the separator is a '-' or '/'.
 
 To eliminate this problem in Windows and Delphi I normally read the 
 DateSeperator and ShortDateFormat and save them to a temporary 
 variable, Change the separator to a '/' and set the short date format 
 to mm-dd-. Once the program exits, I restore the DateSeperator and

 ShortDateFormat globals.

Delphi as of D7 has most routines in such a way that you can pass a set
of internationalization settings which it should use. (TFormatSettings
or so, I think it's called). FPC has the same in Subversion.

Michael.

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


RE: [lazarus] WikiHelp

2007-02-25 Thread Pieter Valentijn
I tried to compile with Lazarus 0.9.20 B but i get

uMain.pas(447,71) Error: identifier idents no member TextContent

I cant see this property in the XML node. What version do you use?
I downloaded synapse to het the HTTP part working.

From analizing the source I can see it's a language problem.
The first is this line in the scan button

  http.HTTPMethod('GET',eWikiPage.Text+'Spezial:Allpages');

Mine is 

http://www.osfinancials.org/mediawiki/index.php/Speciaal:Allpages

I would suggest we move this over to a ini file or something like that.
As this is the case with all language specific wiki's.
I see some code that looks if its english or German.

Maby even handel anny language setups that are in a folder.





Met vriendelijke groet, 
Pieter Valentijn
 
Delphidreams
http://www.delphidreams.nl
 


-Oorspronkelijk bericht-
Van: Christian Ulrich [mailto:[EMAIL PROTECTED] 
Verzonden: vrijdag 23 februari 2007 18:35
Aan: lazarus@miraclec.com
Onderwerp: Re: [lazarus] WikiHelp


I like you tool but I cant get it to work on this wiki of osFinancials.

 http://www.osfinancials.org/mediawiki/index.php/

 Was this created in Lazarus?

OK, i have uploaded the Sourcecode to my Site.
And also maked an english description page.

So You can see whats going wrong with the osFinancials Wiki maybe i will

take a look also
at this at Weekend.

Christian 

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


RE: [lazarus] Delphi for PHP

2007-02-25 Thread Pieter Valentijn
Me to I hate PHP as I cant program in it like in Delphi.
I link osFinancials with OSCommerce and Vtiger now so it would be great
to be able to create addons in PHP without missing my code inside :-)

I would love to get my hands on a trail version to.

Met vriendelijke groet, 
Pieter Valentijn
 
Delphidreams
http://www.delphidreams.nl
 


-Oorspronkelijk bericht-
Van: Sergio Samayoa [mailto:[EMAIL PROTECTED] 
Verzonden: woensdag 21 februari 2007 23:01
Aan: lazarus@miraclec.com
Onderwerp: RE: [lazarus] Delphi for PHP


Me too.



-Mensaje original-
De: Felipe Monteiro de Carvalho
[mailto:[EMAIL PROTECTED] 
Enviado el: Miércoles, 21 de Febrero de 2007 03:54 p.m.
Para: lazarus@miraclec.com
Asunto: Re: [lazarus] Delphi for PHP

I find it a very good idea, and will certainly give it a try if there is
a test version or so.

-- 
Felipe Monteiro de Carvalho

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


RE: [lazarus] StrToDate error

2007-02-25 Thread Pieter Valentijn
:-0 
Is it?
I never know.
I think it should come from the system locale.
In that case this routine still works.
I gess the hardest part is the MM-DD- against DD-MM-.
I have seen that theres anly 3 combinations posible in Delphi. 
DD-MM-
MM-DD-
And
-MM-DD

Where - is anny date seperator.

I tried once to set it to something like DD--MM.
In Windows this worked(display time etc) but Delphi StrToDate choked on
it.

Now I know no one will use this format it was just for me to see what
format was used.
As in a Terminal server enviroment the defaul settings of the system
sometimes was set in a user session (I still don't know why) and as the
server is usaly English and the masks are all in Dutch this happened
sometimes. When we where still deling with The bde and oracle this error
made the date insert of oracle go wrong and it inserted absurd dates. I
logged a call at Oracle complaining about the strange data insert. They
said it was not there problem. They don't check the dates for validity.
So I neede to write a trigger that would atleast check for this strange
data.

So you are warned if you need the dateformat on a terminal server it can
act verry strange.


Met vriendelijke groet, 
Pieter Valentijn
 
Delphidreams
http://www.delphidreams.nl
 


-Oorspronkelijk bericht-
Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Namens Michael
Van Canneyt
Verzonden: zondag 25 februari 2007 21:30
Aan: lazarus@miraclec.com
Onderwerp: RE: [lazarus] StrToDate error




On Sun, 25 Feb 2007, Pieter Valentijn wrote:

 Should be easy.
 
 Function MyStrToDate(Astr : String) : TDateTime ;
 Begin
  Astr := StringReplace(Astr,'-',DateSeparator,[rfReplaceAll]);
  Astr := StringReplace(Astr,'/',DateSeparator,[rfReplaceAll]);
  result := StrTodate(Astr);
 End;
 
 This should work on anny string with anny format.

Except in Belgium, where the official date separator is a space, 
so I'd get a string like '2007 02 27'. 

You should always simply set the date separator char to the correct
value.

Michael.

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


RE: [lazarus] WikiHelp

2007-02-25 Thread Pieter Valentijn
I tried iNode.NodeValue but its not what I need.
I will have to get up to speed on the SVN pulling of Laz.
Im working hard on the new interface for Stock items in OSF si I can get
rid of this ttable components and speed up thing. Some people have
1+ items and are now waiting to long for the data to load.
 
If I find some time to kill I will investigate the SVN so I can be in
sync with you.



Met vriendelijke groet, 
Pieter Valentijn
 
Delphidreams
http://www.delphidreams.nl
 


-Oorspronkelijk bericht-
Van: Christian Ulrich [mailto:[EMAIL PROTECTED] 
Verzonden: zondag 25 februari 2007 21:30
Aan: lazarus@miraclec.com
Onderwerp: Re: [lazarus] WikiHelp


I tried to compile with Lazarus 0.9.20 B but i get

 uMain.pas(447,71) Error: identifier idents no member TextContent I 
 cant see this property in the XML node. What version do you use?

I use 0.9.21 most dayly actual svn and an own build fpc 2.1.1 mostly not

older than an month ...
Is there in 0.9.20 another property that holds the content of 
MyXMLNodeThis content the TextContent Property gives/MyXMLNode if
you find an property in 0.9.20 that gives these content we can change
it.

 I downloaded synapse to het the HTTP part working.

From analizing the source I can see it's a language problem.
 The first is this line in the scan button  
 http.HTTPMethod('GET',eWikiPage.Text+'Spezial:Allpages');
 Mine is 
 http://www.osfinancials.org/mediawiki/index.php/Speciaal:Allpages

OK, i will make an property of this thats stored in the xml property
file

 I would suggest we move this over to a ini file or something like 
 that.

the propertys you can set are already stored in an xml file so we can
store 
it there ...

 As this is the case with all language specific wiki's.
 I see some code that looks if its english or German.

right

 Maby even handel anny language setups that are in a folder.

I think an simple option schould be enougth this schould be the only
option 
we have to take care of  ...

by the way i will make an folder in the lazarus ccr svn repositore so
anyone 
can simply make and send patches with svn ...

best regards
Christian Ulrich 

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


RE: [lazarus] WikiHelp

2007-02-23 Thread Pieter Valentijn
I like you tool but I cant get it to work on this wiki of osFinancials.

http://www.osfinancials.org/mediawiki/index.php/

Was this created in Lazarus?

Met vriendelijke groet, 
Pieter Valentijn
 
Delphidreams
http://www.delphidreams.nl
 


-Oorspronkelijk bericht-
Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Verzonden: vrijdag 23 februari 2007 9:37
Aan: lazarus@miraclec.com
Onderwerp: Re: [lazarus] WikiHelp


 Why don't you just make an example of what you mean? This way you can

 actually show what is possible. A picture says more than a thousand 
 words. Just post a link here.

 The url posted by Christian links to a Deutsch site , where there is a

 very short description and the windows executable.  I'm on linux, so 
 the win binary
 is not of much help.

 I think that Christian is not receiving the feedback he needs simply 
 because he didn't make it clear enough what the WikiHelp application 
 is, and how does it work.

 snip

 I have no idea how would WikiHelp fit into this .

This is exaclty my point. Instead of being insecure and asking for
others opinion I would suggest to put up a link to the sources and
create a
(simple) example of a helpfile generated from the lazarus wiki. So
please lets stop the discussion before there is something physical to
talk about.

BTW: there is an english translation available on the site iirc.

Darius

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


RE: [lazarus] lazarus saves every time I compile

2007-02-06 Thread Pieter Valentijn
I would sugest a extra folder with the checked source and sync them
manualy with a program like  winmerge http://winmerge.org/ or simular
tool to save your files that you changed. (or if cource revert your
changes in your working folder). 

Met vriendelijke groet, 
Pieter Valentijn
 
Delphidreams
http://www.delphidreams.nl
 


-Oorspronkelijk bericht-
Van: Felipe Monteiro de Carvalho
[mailto:[EMAIL PROTECTED] 
Verzonden: dinsdag 6 februari 2007 17:36
Aan: lazarus@miraclec.com
Onderwerp: Re: [lazarus] lazarus saves every time I compile


On 2/6/07, Andrea Mauri [EMAIL PROTECTED] wrote:
 ok, thank you for the explanation. I will consider it during my 
 project developing. but it is not possible to use in some way the 
 backup files in order to restore the saved files?

That doesn't seam a nice way to do things.

Maybe you could write a IDE plugin which adds another compile button
that works like you want.

-- 
Felipe Monteiro de Carvalho

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


RE: [lazarus] Carbon Canvas implementation dilemma

2007-02-04 Thread Pieter Valentijn
Is there is no scanline function in the bitmap object of Lazarus.
Is there no way we can get access to the raw data?

Met vriendelijke groet, 
Pieter Valentijn
 
Delphidreams
http://www.delphidreams.nl
 


-Oorspronkelijk bericht-
Van: Mattias Gaertner [mailto:[EMAIL PROTECTED] 
Verzonden: zondag 4 februari 2007 14:56
Aan: lazarus@miraclec.com
Onderwerp: Re: [lazarus] Carbon Canvas implementation dilemma


On Sun, 4 Feb 2007 14:26:31 +0100
Ingolf Schäfer [EMAIL PROTECTED] wrote:

 On 2/3/07, Tom Gregorovic [EMAIL PROTECTED] wrote:
  Hi,
  I think over how to implement canvas for Carbon interface. There are

  two possibilities to use: QuickDraw or Quartz 2D. I want to consult 
  it with you. Here is the list of disadvantages, I have found:
 
  QuickDraw
  - DC of Carbon controls must use Window Port
  - deprecated in Mac OS X v10.4
 
  Quartz 2D
  - unable to implement GetPixel, FloodFill, SetPixel must be 
  simulated via line drawing
  - different coordination system (change Current Transformation
  Matrix)
  - bledning instead of ROP
  - bitmap canvas implementation (needs Mac OS X v10.4 because of 
  CGBitmapContextCreateImage, but we can get round it)
 
  Feel free to point out anything I have omitted.
   From my point of view the Quartz 2D appears to be more suitable, 
  although it doesn't provide per-pixel operations.
 Hi,
 
 although I am not a lazarus developer myself, I dare to to add my two 
 cents here...
 
 I fully agree with Tom. Quartz 2D is the ONLY future compatible mac 
 way in the moment. For the non-mac people, the problem is follows: You

 don't have direct access to pixels in Quartz anymore, just floating 
 point coordinates. As I understand some of the canvas methods require 
 pixel access.

Yes, and they are slow on all platforms, so no time critical application
use them.

 
 I have not really thought of this all the way through, but maybe it 
 would be simple to have an offscreen bitmap graphic which acts as 
 canvas and use Quartz 2D to map it to the screen. In this way one 
 would really have pixels to manipulate.

Yes, possible.

IMO the carbon intf should not use the deprecated API. But the decision
is up to the implementer - Tom.


Mattias

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


RE: [lazarus] best use of components for mysql query insert performance benchmarking

2007-01-25 Thread Pieter Valentijn
I gess parameters would be a bit more OO.

So consturct your sql like this.

MySqlCom.sql.text := 'Insert into test(Name) values (:NAME)' ;

Then uses

MySqlCom.ParamByName('NAME').aswhatever = somewhatever ;

This way you only need to set the SQL 1 time.

Don't forget if you set params your Query does not close and open.
So you need to do this.

MySqlCom.close ;
MySqlCom.ParamByName('NAME').aswhatever = somewhatever ;
MySqlCom.open ;

I think this whay you also just pas params and not the full SQL so it
just needs to be parced 1 time by the SQL optimizer (if anny is used).

Met vriendelijke groet, 
Pieter Valentijn
 
Delphidreams
http://www.delphidreams.nl
 


-Oorspronkelijk bericht-
Van: Seth Grover [mailto:[EMAIL PROTECTED] 
Verzonden: maandag 22 januari 2007 22:51
Aan: lazarus@miraclec.com
Onderwerp: [lazarus] best use of components for mysql query insert
performance benchmarking


I'm writing a program to do some informal benchmarking of insert and
query performance using various MySQL storage engines using MySQL 5.1.x
latest beta. I've got it up and running just fine using Lazarus and the
MySQL components. It was a piece of cake.

My question is on what the best way is to do the inserts to get the
truest picture of insert performance. Right now I'm basically
constructing an insert statement string and using ExecSQL to do the
insert. Is there another way (perhaps one a little more
object-oriented) to do inserts other than just piecing together a huge
Insert into table t1 (a, b, c, d,) values ...-style statement? If not,
would I get better performance inserting multiple records with each
statement I execute (insert into t1 values (1), (2), (3), ...
etc.) or inserting one record per statement (insert into t1 values (1);
insert into t1 values (2); etc.?

Any tips you have would be appreciated. I just want to eliminate as much
as possible any performance hits due to the overhead of the tools I'm
using to do the benchmarking, thus getting a better picture of the
performance of the database itself.

Thanks,

Seth Grover

-- 
Seth Grover
sethdgrover[at]gmail[dot]com
http://grovers.us/seth

I'm a driver, I'm a winner. Things are going to change, I can feel it.

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] Sugestion tread use for updating forms.

2007-01-18 Thread Pieter Valentijn
I think the same functions are in Lazarus as in Delphi right ?
i.e.

Somewhere global
var
  aThreadLock : TRTLCriticalSection ;

In any procedure that calls the treadlist or tread actions that must
finish before anny other actions take place you can use structures like
this.


EnterCriticalSection(aThreadLock );
try
  try
   tablo:=TSqlite3Dataset.Create(Nil);
   tablo.FileName:='db/services.db';
   tablo.SQL:= 'select type_name, server_ip from servers where
id='+ inttostr( record_id) ;
   tablo.Active:=True; 
   type_name:= tablo.FieldByName('type_name').AsString;
   server_ip:= tablo.FieldByName('server_ip').AsString;
  except 
 
main.StatusBar1.SimpleText:='thread1'+tablo.SqliteReturnString+tablo.SQL
;
  end;
finally
  LeaveCriticalSection(aThreadLock );
end;
 end;


I also gess lazars has the same Synchronize function like the one in
Delphi

There you get this hint tekst

Important: Methods and properties of objects in visual components can
only be
  used in a method called using Synchronize, for example,

  Synchronize(UpdateCaption);

  and UpdateCaption could look like,

procedure ADSLUpdThread.UpdateCaption;
begin
  Form1.Caption := 'Updated in a thread';
end;


Met vriendelijke groet, 
Pieter Valentijn
 
Delphidreams
http://www.delphidreams.nl
 


-Oorspronkelijk bericht-
Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Verzonden: donderdag 18 januari 2007 10:59
Aan: lazarus@miraclec.com
Onderwerp: [lazarus] sqlite in thread


Hi,
Firstly sorry for waste of your time.
Sqlite working in thread very good.

here is the thread execute procedure.

Thanks. (specially luiz)


procedure TMyThread.Execute;
var
ping: TPingSend;
record_id : integer;
type_name, server_ip, result_string : String;
tablo: TSqlite3Dataset;

begin
record_id:= main.id;
result_string:='default';
server_ip:='default';

try
tablo:=TSqlite3Dataset.Create(Nil);
tablo.FileName:='db/services.db';
tablo.SQL:= 'select type_name, server_ip from servers where id='+
inttostr( record_id) ; tablo.Active:=True; type_name:=
tablo.FieldByName('type_name').AsString;
server_ip:= tablo.FieldByName('server_ip').AsString;
except
main.StatusBar1.SimpleText:='thread1'+tablo.SqliteReturnString+tablo.SQL
;
end;

//Controlling by type
//ping
if (type_name='ping') and (server_ip'default')  then
begin
 ping:=TPingSend.Create;
 try
ping.ping(server_ip);
result_string:= result_string +' - '+
IntTostr(ping.pingtime)+'ms';
 finally
ping.Free;
 end;
end;

if result_string'default' then
begin
  try
   tablo.ExecSQL( 'update servers set status='+ result_string +' where
id='+ inttostr( record_id) );
  except
  main.StatusBar1.SimpleText:='thread2'+tablo.SqliteReturnString;
  end;
end;


tablo.Close;
tablo.Free;

end;


_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


RE: [lazarus] Sugestion tread use for updating forms.

2007-01-18 Thread Pieter Valentijn
:-)
Just like in Delphi. Txs.
I was refering to the demo used in the SQL lite tread. All do it was not
the problem he was facing it could lead to other problems if not used as
described in your wiki topic.


Met vriendelijke groet, 
Pieter Valentijn
 
Delphidreams
http://www.delphidreams.nl
 


-Oorspronkelijk bericht-
Van: Mattias Gaertner [mailto:[EMAIL PROTECTED] 
Verzonden: donderdag 18 januari 2007 15:47
Aan: lazarus@miraclec.com
Onderwerp: Re: [lazarus] Sugestion tread use for updating forms.


On Thu, 18 Jan 2007 15:23:10 +0100
Pieter Valentijn [EMAIL PROTECTED] wrote:

 I think the same functions are in Lazarus as in Delphi right ?

See
http://wiki.lazarus.freepascal.org/Multithreaded_Application_Tutorial


 i.e.
 
 Somewhere global
 var
   aThreadLock : TRTLCriticalSection ;
 
 In any procedure that calls the treadlist or tread actions that must 
 finish before anny other actions take place you can use structures 
 like this.
 
 
 EnterCriticalSection(aThreadLock );
 try
   try
tablo:=TSqlite3Dataset.Create(Nil);
tablo.FileName:='db/services.db';
tablo.SQL:= 'select type_name, server_ip from servers where

 id='+ inttostr( record_id) ;
tablo.Active:=True; 
type_name:= tablo.FieldByName('type_name').AsString;
server_ip:= tablo.FieldByName('server_ip').AsString;
   except
  
 main.StatusBar1.SimpleText:='thread1'+tablo.SqliteReturnString+tablo.S
 QL
 ;
   end;
 finally
   LeaveCriticalSection(aThreadLock );
 end;
  end;
 
 
 I also gess lazars has the same Synchronize function like the one in 
 Delphi
 
 There you get this hint tekst
 
 Important: Methods and properties of objects in visual components can

 only be
   used in a method called using Synchronize, for example,
 
   Synchronize(UpdateCaption);
 
   and UpdateCaption could look like,
 
 procedure ADSLUpdThread.UpdateCaption;
 begin
   Form1.Caption := 'Updated in a thread';
 end;


Mattias

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


RE: [lazarus] Console app problems

2006-12-30 Thread Pieter Valentijn
I must agree on the use of

For I := 0 to 99 do
  begin

  end;

I work somewhere where most of the guys do this
For I := 0 to 99 do begin

  end;

And I keep missing where that begin is :-)
If you look at Delpgis code (for instance the classes unit) its all
codes using this style
For I := 0 to 99 do
  begin

  end;
So im sure its more clear.
I gess its also about habits.


Met vriendelijke groet, 
Pieter Valentijn
 
Delphidreams
http://www.delphidreams.nl
 


-Oorspronkelijk bericht-
Van: Lee Jenkins [mailto:[EMAIL PROTECTED] 
Verzonden: zondag 31 december 2006 0:08
Aan: lazarus@miraclec.com
Onderwerp: Re: [lazarus] Console app problems


Micha Nelissen wrote:
 Lee Jenkins wrote:
 repeat;
  begin
  ReadLn(sRead);
  bDone := self.ProcessSingleVar(sRead);
  end;
 until (bDone);
 LOL.  Just makes it more readable for me.  When I have to come back 
 to
 
 The above is more readable than the following to you ? (Just asking)
 
 repeat
   ReadLn(sRead);
   bDone := self.ProcessSingleVar(sRead);
 until bDone;
 
 - no semicolon after repeat
 - no begin/end pair within repeat/until
 - no parenthesis needed for simple expression after until.
 
 Micha

Either one, actually.  The first is just the way that I started using 
pascal (delphi) and it stuck.  You may remove the extraneous lines if 
they offend you ;)

Also, a lot of people will using this:

For i := 0 to 99 do begin
// some stuff
   end;

While I prefer

For i := 0 to 99 do
   begin
   // do some stuff 
   end;

Of course, I am self taught.  You see, the only thing that kept me out 
of college was high school. :-p

-- 

Warm Regards,

Lee

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


RE: [lazarus] Project raised exception class 'External: SIGSEGV'

2006-12-29 Thread Pieter Valentijn
I gess the best way to fix this routine is to remove the oncreate and do
something like this

 procedure TForm1.FormResize(Sender: TObject);
 begin 
  if not assigned(BufferBitmap) then
   BufferBitmap := TBitMap.Create ;

   BufferBitMap.Width:=Image1.Width;
   BufferBitMap.Height:=Image1.Height;
 end;

Pieter Valentijn
 
Delphidreams
http://www.delphidreams.nl
 




_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


RE: [lazarus] Global Dynamic Arrays

2006-12-26 Thread Pieter Valentijn
Im sure they just mean there lifetime managed.
So you don't have to delocate them.
Anny scope should be able to dispose of it correctly.

Met vriendelijke groet, 
Pieter Valentijn
 
Delphidreams
http://www.delphidreams.nl
 


-Oorspronkelijk bericht-
Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Namens Michael Van Canneyt
Verzonden: dinsdag 26 december 2006 13:45
Aan: Lazarus mailing list
Onderwerp: Re: [lazarus] Global Dynamic Arrays




On Tue, 26 Dec 2006, [EMAIL PROTECTED] wrote:

 Hi,
 
 Sorry for posting here, but the freepascal.org server seems to have 
 been down for the last 6 or 7 days.

Seems to work fine here ?

 
 I'm wondering about using Dynamic Arrays Globally throughout my 
 program.
 
 I notice that the documentation says :
 The memory will be disposed of at the exit of the current procedure 
 or function.
 
 Does this have implications for Global variables?

Yes, in the sense that they are only disposed when the unit is
finalized.

Michael.

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


RE: [lazarus] Trying to make TScrollingWinControl more useful...

2006-12-13 Thread Pieter Valentijn
Ok I can understaind but atleast theres a simpel workaround that will
work in Delphi to.


Met vriendelijke groet, 
Pieter Valentijn
 
Delphidreams
http://www.delphidreams.nl
 


-Oorspronkelijk bericht-
Van: Vincent Snijders [mailto:[EMAIL PROTECTED] 
Verzonden: dinsdag 12 december 2006 22:28
Aan: lazarus@miraclec.com
Onderwerp: Re: [lazarus] Trying to make TScrollingWinControl more
useful...


Mattias Gaertner schreef:
 On Tue, 12 Dec 2006 19:12:41 +0100
 Pieter Valentijn [EMAIL PROTECTED] wrote:
 
 I ment for that panel to be inside the scroll box.
 That way theres only one control to think about.

 If your code does the job then theres no need to maintain it :-)
 
 The panel idea will work on all widgetsets, it is not hard to 
 implement and saves a lot of synchronisation issues. So, the question 
 is not, if it is doable, but: Will this be a big Delphi 
 incompatibility?
 
 For this we need to know, how many components out there depend on 
 this, and how big would be the change. Maybe Micha can provide an 
 example to answer the second question?
 
 

This incompatibility could be documented in de code conversion guide:
http://wiki.lazarus.freepascal.org/Code_Conversion_Guide

Vincent

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


RE: [lazarus] Gambas

2006-12-12 Thread Pieter Valentijn
Yes This is cost of sales (when you sell something you dedut the cost
price from a balans account and put it on a loss account) This way you
know what you made proffit loss.
If you buy in goods you don't make a loss you merly exchange cash for
goods. When you sell the goods you deduct the cost price. If you do
traditional FIFO your cost price mite be to low (and your stock mite
look to high) using FIFO is mutch better so the cost of sales is the
ammount your last product purchases price was. So you proffit mite be
less but its more accurate.

In Holland and manny other countries you must select your way of sales
cost and stick with that. If you want to change you will have to inform
your tax athoitie first and ask permission.

Theses are all financials transactions inside The ledger so there also
part of the XBRL.
I gess XBRL is the global standard so im sure your country also used
that in declearing there standards if not they will probably change to
this soon.

Do you make finnacial software for your market?
osFinancials has a verry good basis for accounting. Im sure most of the
reports are just a mater of the right SQL and some transformation.



Met vriendelijke groet, 
Pieter Valentijn
 
Delphidreams
http://www.delphidreams.nl
 


-Oorspronkelijk bericht-
Van: George Birbilis [mailto:[EMAIL PROTECTED] 
Verzonden: maandag 11 december 2006 20:31
Aan: lazarus@miraclec.com
Onderwerp: RE: [lazarus] Gambas
Urgentie: Laag


 The other stuff you talk about is XBRL. And if if cource accounting 
 standaards for stock (FIFO LIFO). This is mainly about the current 
 stock value.


 http://www.xbrl.org/SpecRecommendations/

 This allows (for instance) to export a trailbalance in a general 
 format than manny packages can read. Also E-billing etc is put in to 
 this world wide format. Still no need for me to get this all in to osF

 today. Most of the stuff is just when you publish your companies data 
 and that usaly gets done by the accounting office. They can take a 
 trail balance (agragated data) and put that in to there package of 
 choice that can produce this data. (it's a verry expensive packages
 im sure ).

Thanks for the link, but I'm not sure it's that, they call the thing I
was saying here as International Logistics Standards and it has to do
with how you calculate the profits etc. If you use other system (as is
still done here by many companies) you get other data that may hide
the real picture of the economics of a certain business (see hype and
bubbles). Eventually all will have to switch and use the so-called
international logistics standards whichever those are (it's more of a
certain way to do logistics, not some thing necesserily related with
software and informatics). However I may have understood wrong all this
discussion here and it might be related more or less to XBRL too


George Birbilis ([EMAIL PROTECTED])
Computer  Informatics Engineer
Microsoft MVP J# for 2004-2006
Borland Spirit of Delphi
++ QuickTime, Delphi, ActiveX, .NET components ++
http://www.kagi.com/birbilis
++ Robotics ++
http://www.mech.upatras.gr/~Robotics
http://www.mech.upatras.gr/~robgroup




  _  

avast! Antivirus http://www.avast.com : Outbound message clean. 


Virus Database (VPS): 0653-5, 05/12/2006
Tested on: 11/12/2006 9:31:12 ??
avast! - copyright (c) 1988-2006 ALWIL Software.



_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


RE: [lazarus] Trying to make TScrollingWinControl more useful...

2006-12-11 Thread Pieter Valentijn
Why not place all controls on a panel and adjust that ?


Met vriendelijke groet, 
Pieter Valentijn
 
Delphidreams
http://www.delphidreams.nl
 


-Oorspronkelijk bericht-
Van: Micha Nelissen [mailto:[EMAIL PROTECTED] 
Verzonden: maandag 11 december 2006 18:46
Aan: lazarus@miraclec.com
Onderwerp: Re: [lazarus] Trying to make TScrollingWinControl more
useful...


Mattias Gaertner wrote:
 Which Delphi apps/components depend on this?
 I guess not many, because

Hmm. From what I remember when I made a TScrollBox with dynamically
created controls in it, I needed to adjust for the
Horz/VertScrollBar.Position a lot. Therefore, I'm almost certain that
code would be broken by declaring .Left/Top to not be screen positions.

Micha

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


RE: [lazarus] Gambas

2006-12-08 Thread Pieter Valentijn
In my country theres no realy autorsation for accounting. Theres for
making payment slips and hooking up to PIN machines (Payment with a bank
card). I think this is the case in most countries.
All do the market is cuttroat the prices are still veryy high. Mostly
you are not there after purchasing a accounting package. You still need
someone to tell you how to use it.

Met vriendelijke groet, 
Pieter Valentijn
 
Delphidreams
http://www.delphidreams.nl
 


-Oorspronkelijk bericht-
Van: George Birbilis [mailto:[EMAIL PROTECTED] 
Verzonden: donderdag 7 december 2006 22:12
Aan: lazarus@miraclec.com
Onderwerp: RE: [lazarus] Gambas


 I mean do I have a market for
 an accounting package.
 Accounting is a very cutthroat market.

You could have for a certain country if you specialize or make your s/w
very adaptable so that you can provide various versions for the
different logistics standards / laws out there (for example MS is now
trying to get into the Greek and the European market after they got
Great Plains software, not sure if they will succeed to get some market
share). Also getting a certification to allow it to be used officially
in businesses is something that might cost





  _  

avast! Antivirus http://www.avast.com : Outbound message clean. 


Virus Database (VPS): 0653-5, 05/12/2006
Tested on: 7/12/2006 11:11:49 ??
avast! - copyright (c) 1988-2006 ALWIL Software.



_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


RE: [lazarus] Gambas

2006-12-03 Thread Pieter Valentijn
Yes the port can be done but it will jest be a lot of work.
I am turning all reports to reportman so that needs to be availeble on
Lazarus. It now compiles in Delphi 7 and you can create plugins in
Lazarus as we connect to Firebird. Do you have anny accounting skills ?
Else writing a package is not adviced.  I can realy do with people
helping met cut the code in to modules so if theres anny takers :-0 That
request was a bit odd from Philip it just shows his technical knowledge.
I think osFinancials can oneday ron on Lazarus (that will be my end
goal) its just not now. Theres mutch structuring to be done in the code
to get a better reuseability. We do have a good solid accounting basis
and do stock control and cash register systems. Theres links with
osCommerce so you can import datat from the webshop and im currently
building a plugin for Vtiger so CRM package can be used to get account
details and sales (just like the webshop but for diverent markets). The
client data gets used a lot so I will use this alternative I wrote to
substitute that. Then we have the comercial components that still remain
in code. The most work will probebly be the grid (info power) as the
relay on the events that grid gives. I think redesiging them is the only
option for this but it will be a hell of a job with big impact. I need
to sigment the project and currently I use DLLs and fastmm4. Can Lazarus
do the same ? The DLL routines can have strings lager then 255 like this

type
  TOSFMenuPlugin = function(AApplicationHandle:
Thandle;AConnection:TZConnection; InProcessFile,OutProcessFile :PChar) :
TModalresult ; stdcall ;

InProcessFile and OutProcessFile can be larger than 255

This would be the only real problem if I cant call DLL's created with
lazarus from a lazarus project.



Met vriendelijke groet, 
Pieter Valentijn
 
Delphidreams
http://www.delphidreams.nl
 


-Oorspronkelijk bericht-
Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Namens Michael
Van Canneyt
Verzonden: zaterdag 2 december 2006 14:02
Aan: lazarus@miraclec.com
Onderwerp: Re: [lazarus] Gambas




On Sat, 2 Dec 2006, Graeme Geldenhuys wrote:

 On 12/1/06, Pieter Valentijn [EMAIL PROTECTED] wrote:
  So you say its all about marketing?
  I run a opensource Accounting project and I have the same problem 
  try to
 
 Is that Accounting app written with Free Pascal/Lazarus?  I am 
 considering (not sure if it is viable yet) writing a specialized 
 commercial accounting package in Lazarus. By viable, I don't mean 
 Lazarus, I mean do I have a market for an accounting package. 
 Accounting is a very cutthroat market.

If it's about osFinancials (the former TurboCash):

It was written using Delphi. Once there was a call for people to
demonstrate the feasability of creating a Lazarus port, but I don't know
what came from it (my guess is that this may be one of the things that
caused the split 
from TurboCash and osFinancials?)

I think it should be very possible to port it to lazarus. But as usual,
time is probably the issue. 

Michael.

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


RE: [lazarus] Gambas

2006-12-03 Thread Pieter Valentijn
Theres still al lot of coding to do but I think im creating a good
usable accounting package. I have atleast turned the database to
Firebird and got the code to use transactions. There was a lot of code
bulld on TTable doing Atable.locate to get the right record. When doing
a multy user setup on a internet server this is not good :-) so I
changed most of it to selects using SQL. 

But I still want to write out the Quickreports and all other commercial
components. So I gess I have my work cut out for me.


Met vriendelijke groet, 
Pieter Valentijn
 
Delphidreams
http://www.delphidreams.nl
 


-Oorspronkelijk bericht-
Van: Graeme Geldenhuys [mailto:[EMAIL PROTECTED] 
Verzonden: zaterdag 2 december 2006 15:05
Aan: lazarus@miraclec.com
Onderwerp: Re: [lazarus] Gambas


On 12/2/06, Michael Van Canneyt [EMAIL PROTECTED] wrote:
 If it's about osFinancials (the former TurboCash):

 I think it should be very possible to port it to lazarus. But as 
 usual, time is probably the issue.

I don't like TurboCash at all, and wasn't going to use that. I'm not a
fan of web based products either!  I want to start from scratch.
Completely based on OOP for a start and unit tested from every possible
angle.  I worked at a company in the UK and helped develop a very
complex accounting system.  Unfortunately it was a nightmare to maintain
and it had code inside forms, used global variable and tide specific to
MS SQL Server.  Not the route I want to follow, though would like to use
some of their ideas and other ideas from BS/1 Accounting.


-- 
Graeme Geldenhuys
Location: S 34° 03.168'  E018° 49.342' http://tinyurl.com/y6lc26

There's no place like 127.0.0.1

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


RE: [lazarus] Gambas

2006-12-03 Thread Pieter Valentijn
There is a sort of standard now (XBRL) I have viewed some of it today
and it defines in XML how to create a trail balance so anny other
program thar read XBRL can import it.

Met vriendelijke groet, 
Pieter Valentijn
 
Delphidreams
http://www.delphidreams.nl
 


-Oorspronkelijk bericht-
Van: Dean Zobec [mailto:[EMAIL PROTECTED] 
Verzonden: zaterdag 2 december 2006 22:33
Aan: lazarus@miraclec.com
Onderwerp: Re: [lazarus] Gambas


Graeme Geldenhuys pravi:
 On 12/2/06, Michael Van Canneyt [EMAIL PROTECTED] wrote:
 If it's about osFinancials (the former TurboCash):

 I think it should be very possible to port it to lazarus. But as 
 usual, time is probably the issue.
 
 I don't like TurboCash at all, and wasn't going to use that. I'm not a

 fan of web based products either!  I want to start from scratch. 
 Completely based on OOP for a start and unit tested from every 
 possible angle.  I worked at a company in the UK and helped develop a 
 very complex accounting system.  Unfortunately it was a nightmare to 
 maintain and it had code inside forms, used global variable and tide 
 specific to MS SQL Server.  Not the route I want to follow, though 
 would like to use some of their ideas and other ideas from BS/1 
 Accounting.
 
 
It happens that I have a strong background in accounting, should you
need help. A couple of years ago I was responsible for the accounting of
a middle sized firm (something about 1 transactions a day) and for
the cost management. There was a lot of transactions in foreign
currencies so I gained a lot of experience in that field. The problem I
see with an accounting program is the fact that at lower level it has to
couple with different laws and forms of taxation, so the greatest work
is to build a flexible system that can be easily adopted to the single
nation's legislation. I was investigating about innovative ways of
handling the business transactions and double entry bookkeeping to
discover new ways of doing old stuff and be more efficient (we have
computers now, it's stupid to do the same thing that Luca Pacioli did in
Medieval times). Very interesting field, but at the end you have to
couple with the problems and details of the local legislation, and that
really put me off (hope the EU will do more standardisation in the
future). You are right however, oop is the way to go and build a strong
framework of business classes, combined with an OPF and a good solution
to link the business classes to the UI. I've seen a lot of bad code
written in Delphi, no tests and validations that were mixed directly
with the UI code, completely unmaintainable.

Ciao, Dean


_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


RE: [lazarus] Gambas

2006-12-01 Thread Pieter Valentijn
So you say its all about marketing?
I run a opensource Accounting project and I have the same problem try to
attract as manny new user as you can meens you need to market it for
that user group. I gess writing to all universities we can get a email
adres from is a start but calling someone in your local area is probably
the most effective. On call to the right person can set things in
motion. I think Lazarus is the best choice for students. But we will
need to reache the tutors for that to happen so they can point to the
right directions (the Lazarus site :-).

Met vriendelijke groet, 
Pieter Valentijn
 
Delphidreams
http://www.delphidreams.nl
 


-Oorspronkelijk bericht-
Van: George Birbilis [mailto:[EMAIL PROTECTED] 
Verzonden: vrijdag 1 december 2006 14:13
Aan: lazarus@miraclec.com
Onderwerp: RE: [lazarus] Gambas


  Maybe Lazarus can copy some stuff from that project?

 There are hundreds of other open source IDEs, we are all already aware

 of that.

 If you have some specific need Lazarus does not attend, or something 
 that it could attend better, and Ganbas does it, then we can talk 
 about this specific feature. And even then, consulting how several 
 other projects solve the problem would be better then looking at only 
 one other project.

The page I found it mentioned was one that was speaking of Visual
Development on Linux (compared to VB on Windows) and didn't mention
Lazarus at all (only some replies to that topic mentioned it, but they
forgot to post a URL). From the image they had there about Gambas it
looked more appealing than Lazarus (for example when you launch Lazarus
[if you don't tell it to open something], is there option to autostart
with the File/New dialog? [that should be the default option and have
checkbox to not show that at start again]).

What I mean is that Pascal is almost as easy as Basic to use (apart from
VB's With and Case which are better in my opinion, or ForEach which is
missing), and isn't case-sensitive as C/C++/Java/C#/etc. and is
natural-language friendly (not have to learn some strange symbols and
how to put them together to author a program as in some well-known
scripting languages), so it's either that Lazarus is missing some IDE
touches to make it more appealing to newcomers, or that it needs
more/better PR (e.g. try to post nice screenshots of it to such net
discussions that newbies [esp. interested in university students] may
come across while searching for what IDE to use)





  _  

avast! Antivirus http://www.avast.com : Outbound message clean. 


Virus Database (VPS): 0651-0, 27/11/2006
Tested on: 1/12/2006 3:12:43 ??
avast! - copyright (c) 1988-2006 ALWIL Software.



_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


RE: [lazarus] TStaticText.TabOrder

2006-11-30 Thread Pieter Valentijn
Aha a TMemo with Color=clBtnFace and 
 Border=bsNone :-)
when the component's accelerator key must belong to a windowed control
for example, on an ActiveX property page 

I gess they mean that Active X needs every control to have a handel. I
have looked at it and it seems the property focused can become true for
a TStaticText but theres no visual indication. 
Tobstop is default False.

Met vriendelijke groet, 
Pieter Valentijn
 
Delphidreams
http://www.delphidreams.nl
 


-Oorspronkelijk bericht-
Van: Michal Bukovjan [mailto:[EMAIL PROTECTED] 
Verzonden: woensdag 29 november 2006 21:40
Aan: lazarus@miraclec.com
Onderwerp: Re: [lazarus] TStaticText.TabOrder


Micha Nelissen wrote:
 Michal Bukovjan wrote:
 If I remember correctly, with TStaticText one can select the text 
 content and copy it to clipboard.
 
 Are you sure that wasn't a TEdit with Color=clBtnFace and 
 Border=bsNone ?
 

Maybe I am confusing GTK features and Windows, I am not sure anymore :-)

Anyway, TEdit with Color=clBtnFace and Border=bsNone still behaves 
differently (different alignment, no wordwrap, ...).

Michal

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


RE: [lazarus] LazDoc support inside IDE

2006-11-27 Thread Pieter Valentijn
I also think lazarus is verry good :-)
Theres one feature I realy miss working in the IDE that’s the back and
forward buttons when you used Ctrl+click on a routine and then you can
go back to that place with the buttons. I use this to inspect code and
get back to where I left off.

Met vriendelijke groet, 
Pieter Valentijn
 
Delphidreams
http://www.delphidreams.nl


Thanks for your time explaining it all Mattias.

The reason I am interested in the LazDoc (part of IDE), is because I am
trying to convince the tiOPF (Delphi) developers to rather use the fpdoc
format, for documentation compared to embedded docs between the code.
Writing a LazDoc type add-in for Delphi is what I am proposing, instead
of using the external LazDoc Editor.  Lazarus just rocks, compared to
Delphi!  ;-)  I think I am slowly but surely convincing those Delphi
developers to move to FPC and Lazarus.

 - auto create missing fpdoc entries (e.g. after adding a method to the

 source). Basically the same as makeskel does, but on the fly for 
 single entries. This is started for attributes and simple elements, 
 but not yet for complex things like classes, methods, types, ... .

So what happens when you do the opposite? Eg: I refactored a class and
removed a method not needed anymore.  My fpdoc xml had documentation for
that method, but now that method doesn't exist anymore.  Will makeskel
notify me that the method is now missing?  What happens to the
documentation in the xml file?

 - use package/project fpdoc help when pressing F1. At the moment you 
 have to manually register it via design time packages. The idea is: As

 soon as the lazdoc search path is set for a package: use it.

That would be neat!  Creating the design time doc packages are really
easy and use them a lot. It works perfectly!


-- 
Graeme Geldenhuys
Location: S 34° 03.168'  E018° 49.342' http://tinyurl.com/y6lc26

There's no place like 127.0.0.1

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


RE: [lazarus] LazDoc support inside IDE

2006-11-27 Thread Pieter Valentijn
]).attribute[i]) ;
  ftFloat : AttribField.value :=
StrToFloat(StringReplace(TJanXmlNode2(ARowNode.nodes[rows]).attribute[i]
,'.',DecimalSeparator,[]));
  ftmemo  : AttribField.value :=
TJanXmlNode2(ARowNode.nodes[rows]).attribute[i] ;
  ftGraphic : AttribField.value :=
TJanXmlNode2(ARowNode.nodes[rows]).attribute[i] ;
end; // end case
  end;
 end;
   // nesteled data
   for i := 0 to TJanXmlNode2(ARowNode.nodes[rows]).nodes.Count -1
do
   begin
 AttribField :=
aDataSet.FindField(TJanXmlNode2(TJanXmlNode2(ARowNode.nodes[rows]).nodes
[i]).name) ;
 if (AttribField  nil) and (AttribField.DataType =
ftDataSet) then
begin
 
InsertData(TJanXmlNode2(TJanXmlNode2(ARowNode.nodes[rows]).nodes[i]),TDa
taSetField(AttribField).NestedDataSet);
end;
   end;
   aDataSet.Post ;
end;
end;


function DataSetToXmlString(aToDataset: TDataset): String;
  var
   ajanXMLParser2 : TjanXMLParser2 ;
   AFieldsNode : TJanXmlNode2 ;
   ARowsNode :  TJanXmlNode2 ;
   i : Integer ;
begin
   ajanXMLParser2 := TjanXMLParser2.create ;
try
  ajanXMLParser2.name := 'DATAPACKET' ;
  ajanXMLParser2.attribute['Version'] := '2.0' ;
  AFieldsNode := ajanXMLParser2.forceChildByPath('METADATA/FIELDS')
;
  if AFieldsNode  nil then
begin
   // create fielddefs
   ExportFields(AFieldsNode,aToDataset.Fields);
   ARowsNode :=   ajanXMLParser2.forceChildByPath('ROWDATA') ;
   // Save data
   if ARowsNode  nil then
ExportData(ARowsNode,aToDataset,'');
end;
  Result := ajanXMLParser2.xml ;
finally
 ajanXMLParser2.free ;
end;
end;

procedure ExportData(ARowsNode: TJanXmlNode2; aDataSet:
TDataSet;RowName:String);
  var
   i : Integer ;
   TheRowNode : TJanXmlNode2 ;
begin
 aDataSet.First ;
 while not aDataSet.Eof do
   begin
 TheRowNode := ARowsNode.addChildByName('ROW'+RowName) ;
 for i := 0 to aDataSet.FieldCount -1 do
   begin
 if not aDataSet.Fields[i].IsNull then
   begin
 case aDataSet.Fields[i].DataType of
  ftDate :
TheRowNode.attribute[aDataSet.Fields[i].FieldName] :=
FormatDateTime('mmdd hh:nn:ss:',aDataSet.Fields[i].AsDateTime);
  ftDateTime :
TheRowNode.attribute[aDataSet.Fields[i].FieldName] :=
FormatDateTime('mmdd hh:nn:ss:',aDataSet.Fields[i].AsDateTime);
  ftDataSet : begin
 
ExportData(TheRowNode.addChildByName(aDataSet.Fields[i].FieldName),TData
SetField(aDataSet.Fields[i]).NestedDataSet,aDataSet.Fields[i].FieldName)
;
  end;
  else
   TheRowNode.attribute[aDataSet.Fields[i].FieldName] :=
aDataSet.Fields[i].AsString ;
 end ; // end case
   end;
   end;
 aDataSet.Next ;  
   end; // end wile not eof
end;

procedure ExportFields(AFieldsNode: TJanXmlNode2;
  aFieldDefs: TFields);
  var
   i : Integer ;
   TheFieldNode : TJanXmlNode2 ;
begin
  for i := 0 to aFieldDefs.Count -1 do
   begin
theFieldNode :=  AFieldsNode.addChildByName('FIELD') ;
theFieldNode.attribute['attrname'] := aFieldDefs[i].FieldName ;

 case aFieldDefs[i].DataType of
 ftSmallint : theFieldNode.attribute['fieldtype'] := 'i2' ;
 ftInteger : theFieldNode.attribute['fieldtype'] := 'i4' ;
 ftString : begin
 theFieldNode.attribute['fieldtype'] := 'string' ;
 theFieldNode.attribute['WIDTH'] :=
IntToStr(aFieldDefs[i].Size) ;
end;
 ftFloat : theFieldNode.attribute['fieldtype'] := 'r8' ;
 ftDateTime : theFieldNode.attribute['fieldtype'] := 'Datetime'
;
 ftDate : theFieldNode.attribute['fieldtype'] := 'date' ;
 ftTimeStamp : theFieldNode.attribute['fieldtype'] :=
'SQLdatetime' ;

 ftGraphic : begin
  theFieldNode.attribute['fieldtype'] := 'bin.hex' ;
  theFieldNode.attribute['SUBTYPE'] := 'Graphics' ;
 end;
 ftMemo :   begin
  theFieldNode.attribute['fieldtype'] := 'bin.hex' ;
  theFieldNode.attribute['SUBTYPE'] := 'text' ;
 end;
 ftDataSet : begin
  theFieldNode.attribute['fieldtype'] := 'nested' ;
 
ExportFields(theFieldNode.forceChildByPath('FIELDS'),TDataSetField(aFiel
dDefs[i]).NestedDataSet.Fields);
 end;

 end ;// end case ;;
  end; // End for i

end;


Met vriendelijke groet, 
Pieter Valentijn
 
Delphidreams
http://www.delphidreams.nl
 


-Oorspronkelijk bericht-
Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Namens Michael
Van Canneyt
Verzonden: maandag 27 november 2006 21:42
Aan: lazarus@miraclec.com
Onderwerp: RE: [lazarus] LazDoc support inside IDE




On Mon, 27 Nov 2006, Pieter Valentijn wrote