[lazarus] Talking 'bout errors reproduction
At 04:29 29/11/2007, you wrote: On 29/11/2007, Michael Van Canneyt [EMAIL PROTECTED] wrote: That would be helpful for the Lazarus team, I think. As Marc said: they cannot fix it if they cannot reproduce it. Yesterday I sent to the list an e-mail with the following text: The attached project was alright when compiled with version 0.9.22. After I install version 0.9.24 it presents various msgs during compilation and an error when I execute it. I would like to ask if someone of you can compile it with a Lazarus 0.9.24, see if the errors occurs in your environment and give me some explanation about how I can correct them, please? I will very grateful. Thank you in advance. Greetings from Sao Paulo - Brazil Ricardo P.S.: Initially I don't attach snapshots because there were various msgs. But if someone need I recompile here and send the snapshots in private. I don't receive any answer from the List. I will repeat the Michael's sentence: As Marc said: they cannot fix it if they cannot reproduce it. No comments. Ricardo
Re: [lazarus] Back to 0.9.22
I wasn't talking about someone find errors, but I was thinking that if the trouble with some legacy code will be fixed... I sent yesterday a project of mine that has problems when compiled in 0.9.24. I think it would help you with the cause(s). Cheers Ricardo At 18:49 28/11/2007, you wrote: Arí Ricardo Ody wrote: We have lots of Lazarus projects here. It would be almost impossible to debug each one and report error(s). Keep in mind that we might not find them ourselves. So when no cause if found they wont get fixed. Marc PS. technically the difference between .24 and .23 is only one commit: the increase of version number. _ 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] Back to 0.9.22
Hi! The stability of 0.9.24 is not the point Bernd. Cheers Ricardo At 06:09 29/11/2007, you wrote: Arí Ricardo Ody wrote: I gave up. Back to Lazarus 0.9.22 I am running stable Lazarus 0.9.24 on Windows 98 and have nearly no reason to complain. I am working on projects, which I started to develop with Lazarus 0.9.20 and below. For me, Lazarus 0.9.24 is far better than Lazarus 0.9.20. Regards, Bernd. _ 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] some questions
Talking about databases: Was the bug of Lazarus with date, time and timestamp types when accessing DB2 tables fixed? No offense but I would like to know... [ ] Ricardo At 13:48 28/11/2007, you wrote: There is also a more advanced tutorial which addresses the use of data-sensitive components: http://wiki.lazarus.freepascal.org/MySQLDatabases Hope it helps! Chris Roberto Padovani wrote: about accessing databases, there is a tutorial: http://wiki.lazarus.freepascal.org/Lazarus_Database_Tutorial which is only a very brief introduction, but it's much better than nothing. After going through it a few times, after going through the forums many times, and after stumbling upon even more access violation errors, I managed to working with sqlite and mysql...at least for simple queries. In my project I went on with sqlite only, but the dataset interfaces are basically always the same; this is a very active list and if you ask, you'll probably get an answer. R# 2) I would like to use MySQL with Lazarus. I have no idea where to start. I placed a MySQL50conn module. I then tried to connect to the database using the HostName, DatabaseName, userName, password. Is there a field for port? Is there a simple example to retrieve data from a MySQL. I have a form that essentially has some combobox and they are to be filled with info from the MySQL database. Please help. Thanks Lefti _ 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] can't open old projects in 0.9.24
I receive this messages too... With a recent project developed using 0.9.22. [ ] Ricardo At 15:51 28/11/2007, you wrote: I have some pretty old apps made with Lazarus maybe one year ago. Now I'm back to those apps, as I would to add some features, but I can't open them in 0.9.24 I get TJITForm errors. Is this a known issue or you need more details from me to backtrace the source of the problem? Can it be because I have used the same source files on both Windows and Linux, and that the new 0.9.24 for Win32 have problems with opening files with Linux' line endings? regards Boban Spasic aka bobby _ 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] can't open old projects in 0.9.24
I don't understand what I must do... Go back to 0.9.22? Cheers Ricardo At 16:47 28/11/2007, you wrote: I found what was the problem in my case, and I have reported to Bugzilla: http://www.freepascal.org/mantis/view.php?id=10293 regards Boban Spasic aka bobby Arí Ricardo Ody wrote: I receive this messages too... With a recent project developed using 0.9.22. [ ] Ricardo At 15:51 28/11/2007, you wrote: I have some pretty old apps made with Lazarus maybe one year ago. Now I'm back to those apps, as I would to add some features, but I can't open them in 0.9.24 I get TJITForm errors. Is this a known issue or you need more details from me to backtrace the source of the problem? Can it be because I have used the same source files on both Windows and Linux, and that the new 0.9.24 for Win32 have problems with opening files with Linux' line endings? regards Boban Spasic aka bobby _ 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] Back to 0.9.22
I gave up. Back to Lazarus 0.9.22 [ ] Ricardo _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Error after install win 0.9.22
I unistalled the windows 0.9.22 version and installed 0.9.23. When I try to open an application I receive various messges baout read only property of some components of a project. Then I uninstalled the 0.9.23 and installed the 0.9.22 again. Now, when I try to run the 0.9.22 version I receive the message that I show in the attached module. Now I can't run any version... How do I run 0.9.22 again? Greetings from Sao Paulo - Brazil Ricardoattachment: xxx.png
Re: [lazarus] new Thread Manager Demo
Me too! Ricardo At 11:42 11/7/2007, you wrote: Graeme Geldenhuys ha scritto: Oh sorry, I completely forgot. I'll submit a patch tomorrow for inclusion in Lazarus. Graeme. On 11/07/07, Alvise Nicoletti [EMAIL PROTECTED] wrote: Hi. Was this demo uploaded? Can someone show me were? _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives Thank you ^_^ I'm curious to see more thread handling methods in one demo ^_^ _ 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] Trouble at disconnect?
I've wrote a single application that connects with a Firebird database in a server in a windows XP network. From an initial form I go to another that only open a DBGRID and user can navigate forward and backward in a single browse or go to another form where the user can inform a search argument and the program executes a SELECT in the Firebird database and shows the result in a DBGRID. Well, while I navigate from the first form to any one of the other two and back to the first everything's run ok. When the user click in the exit button of the first form a execute the Self.Close method and the application/program freezes. The trouble seems to be that the program have troubles to disconnect from the remote server. If I run the same application in a local database no troubles occur. I have exposed this same trouble some days ago and can't have a solution. Then I am insisting in ask for help. Mainly because I'm trying to convince the bosses to use Lazarus here in the company. But this trouble is been used as an opposite argument. I'm having another trouble with the same application when using Firebird embedded server. The execution ends with an error, too. I think about ask you if there are no other attempts to make, trying to solve the trouble with the remote server and the embedded too. Thanks in advance. Greetings from Sao Paulo - Brazil Ricardo _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Trouble at disconnect?
Is there some action that I can take in the Firebird setup to help disconnect, Michael? [ ] Ricardo At 12:25 3/7/2007, you wrote: On Tue, 3 Jul 2007, Arà Ricardo Ody wrote: I've wrote a single application that connects with a Firebird database in a server in a windows XP network. From an initial form I go to another that only open a DBGRID and user can navigate forward and backward in a single browse or go to another form where the user can inform a search argument and the program executes a SELECT in the Firebird database and shows the result in a DBGRID. Well, while I navigate from the first form to any one of the other two and back to the first everything's run ok. When the user click in the exit button of the first form a execute the Self.Close method and the application/program freezes. The trouble seems to be that the program have troubles to disconnect from the remote server. If I run the same application in a local database no troubles occur. IMHO, the problem is not in Lazarus, but in Firebird. The lazarus code does not care or even does not know where the firebird database is: The code for this is 100% the same. It is the gds32.dll (or fbclient.dll) code which is responsible for handling the close() call. The gds32.dll library (or fbclient.dll) decides that the database is remote if the database name is prepended with the hostname. That is all. If you connect to the database with some other too, e.g. flamerobin, you should experience the same problem. Michael. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Trouble at disconnect?
I sent to your private e-mail address a sequence of screen snapshots where I open, show the columns of a table, disconnect from network a Firebird database and close FlameRobin without errors. Hope I help to find where is the trouble. Everything suggest that you must check FPC/Lazarus code... I said SUGGEST! Right? Cheers Ricardo At 12:59 3/7/2007, you wrote: On Tue, 3 Jul 2007, Arà Ricardo Ody wrote: Is there some action that I can take in the Firebird setup to help disconnect, Michael? Not that I know of. But first I suggest you test with FlameRobin to see if you get the same problem. If the problem does not appear there, then we must check the FPC/Lazarus code anyway. Michael. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Trouble at disconnect?
At 15:11 3/7/2007, you wrote: No problem :-) Can you try to make the smallest example - one which I could try on any database - which reproduces the problem ? Then send me the code, this way I can test it. You can also send me your actual code, if this is easier. Then I need the database schema too. I will compile, run and test it on Linux (no Windows, sorry) Done! Someone, sometime said me that the behavior of Firebird connections in Linux differ from those in windows... Cheers Ricardo _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Trouble ending Application that uses Firebird DBs
I develop a program in what from an initial form a execute 2 other programs. Both other access a Firebird database. I put a TIBConnection.connected := true in the Form.Crate of the executed programs and everything's ok 'till I try to close the application. When I click the Exit button the Application doesn't ends... Considering that there are no databases in the first form/program, what do I do to force the application ends when I execute the Self.Close in the first Form? If I run the same application using a local database(a database existing in the HD of the machime where the application is running) everything's OK. The trouble is occurring with databases contained in other computer(a server of a win XP network). The final users must ends te application via task manager or manual closing. They are claiming a lot. Suggestions? Greetings from Sao Paulo - Brazil Ricardo
Re: [lazarus] Trouble ending Application that uses Firebird DBs
I don't understand the _expression_ events of Firebird. may you develop a little, please? Kind regards Ricardo Mon, 11 Jun 2007 03:33:56 +0300, zaher dirkey <[EMAIL PROTECTED]> escreveu: Did you use an events of Firebird, may be there is a thread still waiting. On 6/11/07, Michael Van Canneyt [EMAIL PROTECTED] wrote: On Sun, 10 Jun 2007, Arí Ricardo Ody wrote: I develop a program in what from an initial form a execute 2 other programs. Both other access a Firebird database. I put a TIBConnection.connected := true in the Form.Crate of the executed programs and everything's ok 'till I try to close the application. When I click the Exit button the Application doesn't ends... Considering that there are no databases in the first form/program, what do I do to force the application ends when I execute the Self.Close in the first Form? If I run the same application using a local database(a database existing in the HD of the machime where the application is running) everything's OK. The trouble is occurring with databases contained in other computer(a server of a win XP network). The final users must ends te application via task manager or manual closing. They are claiming a lot. Do you explicitly disconnect the database too before closing the form ? Michael. -- zaher dirkey _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Trouble ending Application that uses Firebird DBs
Hi Michael! I wasn't disconnecting the database because at least the navigation between the first form and the other 2 are occuring without troubles. I was only connect at form.create of the the 2 forms called by the first. After read your e-mail I implemented the form.close for the 2 forms called by the first and put the explicit disconnet in this form.close. Both forms called seems to freeze when the execution passes thru the TIBConnection.Connected := false. I must to cancel them manually or via task manager. When I remove the TIBConnection.Connected := false, navigation became ok again... Did you read the zaher dirkey's comments? [ ] Ricardo At 19:22 10/6/2007, you wrote: On Sun, 10 Jun 2007, Arà Ricardo Ody wrote: I develop a program in what from an initial form a execute 2 other programs. Both other access a Firebird database. I put a TIBConnection.connected := true in the Form.Crate of the executed programs and everything's ok 'till I try to close the application. When I click the Exit button the Application doesn't ends... Considering that there are no databases in the first form/program, what do I do to force the application ends when I execute the Self.Close in the first Form? If I run the same application using a local database(a database existing in the HD of the machime where the application is running) everything's OK. The trouble is occurring with databases contained in other computer(a server of a win XP network). The final users must ends te application via task manager or manual closing. They are claiming a lot. Do you explicitly disconnect the database too before closing the form ? Michael. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Fwd: Re: [lazarus] Trouble ending Application that uses Firebird DBs
I had a new idea: Would the trouble be caused by a erroneous or omitted Firebird server customization? [ ] Ricardo - Segue mensagem encaminhada - Data: Sun, 10 Jun 2007 23:06:27 -0300 De: Arí Ricardo Ody [EMAIL PROTECTED] Para: Lazarus Mailing List lazarus@miraclec.com Assunto: Re: [lazarus] Trouble ending Application that uses Firebird DBs Hi Michael! I wasn't disconnecting the database because at least the navigation between the first form and the other 2 are occuring without troubles. I was only connect at form.create of the the 2 forms called by the first. After read your e-mail I implemented the form.close for the 2 forms called by the first and put the explicit disconnet in this form.close. Both forms called seems to freeze when the execution passes thru the TIBConnection.Connected := false. I must to cancel them manually or via task manager. When I remove the TIBConnection.Connected := false, navigation became ok again... Did you read the zaher dirkey's comments? [ ] Ricardo At 19:22 10/6/2007, you wrote: On Sun, 10 Jun 2007, Arà Ricardo Ody wrote: I develop a program in what from an initial form a execute 2 other programs. Both other access a Firebird database. I put a TIBConnection.connected := true in the Form.Crate of the executed programs and everything's ok 'till I try to close the application. When I click the Exit button the Application doesn't ends... Considering that there are no databases in the first form/program, what do I do to force the application ends when I execute the Self.Close in the first Form? If I run the same application using a local database(a database existing in the HD of the machime where the application is running) everything's OK. The trouble is occurring with databases contained in other computer(a server of a win XP network). The final users must ends te application via task manager or manual closing. They are claiming a lot. Do you explicitly disconnect the database too before closing the form ? 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 Tools for Lazarus
If I need to pay for documentation, I buy Delphi or VB. At least I have someone to complain if something is wrong... Bye bye Ricardo Sat, 09 Jun 2007 06:40:34 +0200, Christian Ulrich [EMAIL PROTECTED] escreveu: Arí Ricardo Ody schrieb: Great response... I think you was trying to be funny. no, why you dont make it ? you cant expect something from opensource. The tool would be used for more people if it was documented, or, at least, there would be a lot of examples. Single and more complex... maybe, but what pay these people ? if somebody want to make this everything is fine but dont expect this. Well... It's always possible to convert our reports to PDF, no? (and without bounties... free with lot of programs that convert to PDF) it is possible to export to txt,htm,rtf and pdf 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] Report Tools for Lazarus
And I ask: This time, please generate documentation for people with low expertise in Lazarus and all this stuff... Kind regards, Ricardo At 17:59 8/6/2007, you wrote: On Fri, 8 Jun 2007, Jesus Reyes wrote: --- Michael Van Canneyt [EMAIL PROTECTED] escribió: On Fri, 8 Jun 2007, Jesus Reyes wrote: Hi all, we are in talks about the possibility to include LazReport as a component included in Lazarus, one of the questions that raised was if there are more Reporting Tools that work with Lazarus even if they can't be included, we would like to know. Reportman should also work with Lazarus. (reportman.sourceforge.net) One thing I'm concerned about is the license of lazreport: it's based on FreeReport from Fastreports, but I'm not sure whether you can re-license it using the modified lgpl. I think you'll have to ask the original author for this. Michael. LazReport license was approved by FastReport/FreeReport Copyright owners. See this: http://www.mail-archive.com/lazarus@miraclec.com/msg04258.html Excellent news. In that case, I'm all for including it by default in Lazarus :-) Michael. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Report Tools for Lazarus
Great response... I think you was trying to be funny. The tool would be used for more people if it was documented, or, at least, there would be a lot of examples. Single and more complex... Well... It's always possible to convert our reports to PDF, no? (and without bounties... free with lot of programs that convert to PDF) [ ] Ricardo At 19:16 8/6/2007, you wrote: Arí Ricardo Ody schrieb: And I ask: This time, please generate documentation for people with low expertise in Lazarus and all this stuff... Create an Bounty for this... 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] Report Tools for Lazarus
Great pal! I'll take a look Thank you very much... Ricardo At 20:27 8/6/2007, you wrote: Arà Ricardo Ody wrote: Great response... I think you was trying to be funny. The tool would be used for more people if it was documented, or, at least, there would be a lot of examples. Single and more complex... Well... It's always possible to convert our reports to PDF, no? (and without bounties... free with lot of programs that convert to PDF) FastReport 2.x already has big documentation and as I know you can download it from fastreports site. Best regards, Paul Ishenin. _ 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] News about ending a Lazarus Application with Firebird
Hi ! I try it as you suggested. And more: I create a boolean that I turn false at Form.Create. I turn it on when execute the TSQLQuery.Open. And, together with you suggestion a execute TSQLQuery.Close if the boolean is true. Additionally I execute TSQLQuery.Active := false. If I run from the run icon of Lazarus Ide occurs the same. When I reset the debugger and answer no for the data corruption, Lazarus again and click run button I receive: PesqProgAES.lpr(19,1) Fatal: Can't open executable PesqProgAES.exe from the linkage editor(???). I run the windows task manager but it seems that there are no processes of lazarus or of my application running... Mistery? [] Ricardo At 03:35 7/6/2007, you wrote: Have you tried the following? Replace the variable names with you own. FIBTransaction.Active := false; FDatabase.Connected := false; Graeme. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] News about ending a Lazarus Application with Firebird
Hi Bram! First thank you for you answer. I try both suggestions and the problem remains the same. Then I begin to think about this whole trouble. I remember that I take the project and transmit it to my home and done some tests yesterday night(here are 11:18 AM). Over there, the trouble doesn't occur. I was lazy and do the tests with a local database. I change my TIBConnection here to a local database and bingo! The application begins to end normally. It seems that the trouble occurs only when I put a database located in the windows XP network in my TIBConnection... Does this comment give new ideas? It seems that the connection is not broke when I close the application. Yesterday I tried SQLQuery.Destroy before Self.Close... Cheers Ricardo At 03:38 6/6/2007, you wrote: Arí Ricardo Ody wrote: Self.Close; How about Application.Terminate? Or Halt(0); ? 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
[lazarus] Ending a Lazarus Application with Firebird
I wrote a little application(I'm beginning with Firebird programs) usig Firebird. Even if I don't access the database, when user clicks theExit button the program executes: Self.Close; The Form is closed but task manager of the windows XP presents the name of the program as if it remains running. I try Application.ProcessMessages method and nothing changes. Where is my error, please? May someone of you help me? Greetings from Sao Paulo - Brazil Ricardo _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Fwd: Re: [lazarus] Deleting ListBox items
I solve the problem iterating thru the entire listbox and saving the index values of the selected itens in a StringList. Then I process the StringList from the end to the begin and delete the elements of the ListBox contained in the TStringList... The bug seems to persist. [ ] Ricardo Date: Mon, 05 Mar 2007 12:37:16 -0300 To: lazarus@miraclec.com From: Arí Ricardo Ody [EMAIL PROTECTED] Subject: Re: [lazarus] Deleting ListBox items I'll try. Thank for a while. [ ] Ricardo At 12:16 5/3/2007, you wrote: Arí Ricardo Ody wrote: *Answer to Felipe Monteiro de Carvalho: *The event is: OnKeyPress *Answer to LuizAmerico Pereira Camara: *The version I'm using in windows is: 0.9.20 beta Date: 5/11/2006 SVN Revision: 10176 The version I'm using in Linux is: 0.9.20 beta Date: 6-11-06 SVN Revision: (not informed) Try using a recent (0.9.21) svn version. Probably fix of bug 1428 resolved this. Luiz PS: Looks like a Brazillian conference :-) _ 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] Bad news
I uninstalled lazarus 0.9.20, fpc and fpc-src inder core fedora 5. I downloaded three mentioned packages from the daily snapshot links (03-06-2007) and installed fpc-src, fpc and lazarus 0.9.21 beta(version #: 0.9.21 beta date: 6-3-07 i386-linux-gtk) The error with the method that tries to exclude a line from a ListBox I reported yesterday is still occurring. No offense, but do someone have a new suggestion to correct it? Greetings from Sao Paulo - Brazil Ricardo From: Luiz Americo Pereira Camara [EMAIL PROTECTED] To: lazarus@miraclec.com Subject: Re: [lazarus] Deleting ListBox items Arí Ricardo Ody wrote: *Answer to Felipe Monteiro de Carvalho: *The event is: OnKeyPress *Answer to LuizAmerico Pereira Camara: *The version I'm using in windows is: 0.9.20 beta Date: 5/11/2006 SVN Revision: 10176 The version I'm using in Linux is: 0.9.20 beta Date: 6-11-06 SVN Revision: (not informed) Try using a recent (0.9.21) svn version. Probably fix of bug 1428 resolved this. Luiz PS: Looks like a Brazillian conference :-) _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Deleting ListBox items
I have a ListBox with four Items(for example). Suppose third item selected (ListBox1.Items [2]). When I run the method showed below program has different behavior: In windows it deletes the ListBox1.Items [2] (as expected). After the end of method execution, ListBox1 has three Items; In Linux it deletes the ListBox1.Items [2], ListBox1.Items [1] and ListBox1.Items [0]. After the end of method execution, ListBox1 will have one Item; Should this be a bug? Or am I doing something wrong in the linux version? The method mentioned above is: procedure TForm1.ListBox1(Sender: TObject; var Key: char); var i : integer; begin if (Key #13) and (Key #32) then Exit; if ListBox1.SelCount = 0 then // No ítens selected Exit; For i := ListBox1.Items.Count - 1 downto 0 do if ListBox1.Selected [i] then ListBox1.Items.Delete (i); end; Greetings from Sao Paulo - Brazil Ricardo
[lazarus] Deleting ListBox Items - OPerating systems
I'm using Lazarus 0.9.20 in both operating systems. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Deleting ListBox items
Answer to Felipe Monteiro de Carvalho: The event is: OnKeyPress Answer to LuizAmerico Pereira Camara: The version I'm using in windows is: 0.9.20 beta Date: 5/11/2006 SVN Revision: 10176 The version I'm using in Linux is: 0.9.20 beta Date: 6-11-06 SVN Revision: (not informed) [ ] Ricardo At 11:50 5/3/2007, you wrote: Arí Ricardo Ody wrote: I have a ListBox with four Items(for example). Suppose third item selected (ListBox1.Items [2]). When I run the method showed below program has different behavior: In windows it deletes the ListBox1.Items [2] (as expected). After the end of method execution, ListBox1 has three Items; In Linux it deletes the ListBox1.Items [2], ListBox1.Items [1] and ListBox1.Items [0]. After the end of method execution, ListBox1 will have one Item; Should this be a bug? Or am I doing something wrong in the linux version? The method mentioned above is: procedure TForm1.ListBox1(Sender: TObject; var Key: char); var i : integer; begin if (Key #13) and (Key #32) then Exit; if ListBox1.SelCount = 0 then // No ítens selected Exit; For i := ListBox1.Items.Count - 1 downto 0 do if ListBox1.Selected [i] then ListBox1.Items.Delete (i); end; What version are you using? After 0.9.20 there was a change that should fix this. Luiz _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Deleting ListBox items
I'll try. Thank for a while. [ ] Ricardo At 12:16 5/3/2007, you wrote: Arí Ricardo Ody wrote: *Answer to Felipe Monteiro de Carvalho: *The event is: OnKeyPress *Answer to LuizAmerico Pereira Camara: *The version I'm using in windows is: 0.9.20 beta Date: 5/11/2006 SVN Revision: 10176 The version I'm using in Linux is: 0.9.20 beta Date: 6-11-06 SVN Revision: (not informed) Try using a recent (0.9.21) svn version. Probably fix of bug 1428 resolved this. Luiz PS: Looks like a Brazillian conference :-) _ 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] Why the results of both executions differ?
I type and run the following command in a console window of Fedora Core 5: tar --gzip --create --verbose --file=/home/ricardo/tmp/xxx.tar.gz /home/ricardo/testesfpc/ebcdic_ascii/*.* /home/ricardo/testesfpc/h.o /home/ricardo/testesfpc/h.pas and it runs ok. The only message was: tar: Removing leading `/' from member names. Then I copy the command and move it to a TProcess.CommandLine and run a program that execute the command: TProcessExecute; And I receive 3 messages back: 1. tar: Removing leading `/' from member names 2. tar: /home/ricardo/testesfpc/ebcdic_ascii/*.*: Impossible stat: File or directory not found 3. tar: Output delayed by the previous errors (messages was free translated from portuguese, but the meaning was maintained) My question is: Why the TAR command ran OK in console and didn't run OK via TProcess.Execute? Greetings from Sao Paulo - Brazil Ricardo _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Why the results of both executions differ?
Thank you Felipe. I can try to do this via FindFile/FindNext. One new question: Which is the maximum length of TAR command line I can pass to TProcess.Execute? Suppose a directory with thousands of files... Or even, more than 100 files... How is being your new life in Germany??? [ ] Ricardo At 16:41 7/2/2007, you wrote: Why the TAR command ran OK in console and didn't run OK via TProcess.Execute? Because the *.* is resolved by BASH, and not by TAR So tar does not see *.* It sees (on the first command), what bash transforms that into You need to use code to do what bash does, which is expand *.* into all the files of the directory. -- 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] Why the results of both executions differ?
I try it, eg, I call bash and pass my tar command as parameter. And it seems that everything is OK now. Thanks for everybody in special mr Tony Pelton [EMAIL PROTECTED] . Greetings from Sao Paulo - Brazil Ricardo At 17:09 7/2/2007, you wrote: On 2/7/07, Felipe Monteiro de Carvalho [EMAIL PROTECTED] wrote: Why the TAR command ran OK in console and didn't run OK via TProcess.Execute? Because the *.* is resolved by BASH, and not by TAR You need to use code to do what bash does, which is expand *.* into all the files of the directory. alternatively, you can invoke 'bash' as the executable ... instead of 'tar', and tell the shell to run the tar command, with the wildcard arguments. in structuring your TProcess call this way, you should get the same behavior as if you ran the tar command from within the shell. Felipe Monteiro de Carvalho Tony -- X-SA user ? 0.5.1 is out ! XData 0.1 for X-SA is out ! http://x-plane.dsrts.com _ 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]
As I have troubles to remember the TAR functios and options I'm trying to develop a graphical front end to run it. Then I need to select files and/or directories from a visual dialog. Is there a way to do this via Lazarus components? (Another way of ask the question about this matter... I try it yesterday and someone tells me that's impossible. Well... Any suggestion, guys?) [ ] Ricardo _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus]
At 11:00 30/1/2007, you wrote: Maybe you have a look at the man pages on your system. man pages are very resumed. I recommend you read the GNU Tar Manual Then I need to select files and/or directories from a visual dialog. Is there a way to do this via Lazarus components? Sure: There are File, Directory Open Dialogs available in Lazarus. As I explain since the first time I wrote to the list, I would like to have option of select both files and directories from a single dialog. Obviously I can open a TOpenDialog first and then a TSelectDirectoy. In this case I must open two dialogs for the user do his selection. (Another way of ask the question about this matter... I try it yesterday and someone tells me that's impossible. Well... Any suggestion, guys?) Have a look at this document to call tar or what ever you want to from your app: http://wiki.lazarus.freepascal.org/Executing_External_Programs My program is still running TAR from a TProcess. My trouble is how to capture both files and directories from a single dialog. hf Tanila In any case, thank you very much Ricardo _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus]
Hi Eric! I decided to solve the problem running Tar from a Lazarus program via TProcess(no shell involved). I have no troubles with run Tar and take its outputs back. With a little help of my friends from this mailing list. I go to the site you mentioned and the explanation talks about back up network directories. My idea go beyond this proposition. I'm trying to give the user a tool to select any file and/or directory from any kind(network or local files/directory) and generate a tar, tar.gz or zip file with the group of files/directories selected. The only problem I have 'till this moment is get filenames and directory names from the same visual component... Do you any suggestion? Thank you [ ] Ricardo At 11:00 30/1/2007, you wrote: On Tuesday 30 January 2007 11:18:17 Arí Ricardo Ody wrote: As I have troubles to remember the TAR functios and options I'm trying to develop a graphical front end to run it. Then I need to select files and/or directories from a visual dialog. Is there a way to do this via Lazarus components? I don't know how you do it in a cross-platform way, but if it's just for Linux then the 'shell' function makes it easy to run shell commands from a Lazarus program. I'm developing a simple personal backup utility using tar to do the actual archiving work. If you're interested, have a look at the source code at http://sourceforge.net/projects/backerupper Eric _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Selecting directories via TOpenDialog
I would like show files and directories(that are under the current one) in the right window of a TOpenDialog. How can I do to get this effect and still select(or not) the directories showed in this right window? Should I use another component? Greeings from Sao Paulo - Brazil Ricardo _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Selecting directories via TOpenDialog
Actually, I'm trying to develop a program for linux. I still see applications that allow select both directories and files. One example that I can think now is Zip Genius a free packing program by mr. Matteo Rossi from Italy(www.zipgenius.it). It permits you select both directories and files to be zipped in the same component. Once Matteo tell me that its ZipGenius was written in Delphi. I have no skill to discuss with you Michael and you know it. But, may I think that Matteo is using a component made by himself? [ ] Ricardo At 14:00 29/1/2007, you wrote: On Mon, 29 Jan 2007, Arà Ricardo Ody wrote: I would like show files and directories(that are under the current one) in the right window of a TOpenDialog. How can I do to get this effect and still select(or not) the directories showed in this right window? Should I use another component? As far as I know, the standard windows dialog does not allow selecting a directory in a file open dialog. Since Lazarus uses the native windows dialog, there is nothing we can do about it. Michael. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Selecting directories via TOpenDialog
You catch it! Thanks At 16:47 29/1/2007, you wrote: Sorry, I didn't read your comment closely enough. What I suggested will allow you to choose from a directory tree, but it doesn't incorporate it into a normal file open dialog like you're talking about. -Seth -- 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] Treating TProcess output
I'm developing little application for compress/uncompress data using tarball or Zip with a graphical front end. When I submit a tarball command with an error via TProcess I am not receiving the same messages that appear in the screen when I type the same tarball command via linux konsole. I sent an e-mail to this mailing list with the source of the procedure where I'm trying to catch the tarball output via TProcess.Output. No one answer my e-mail. No problems, I'm not complaining. In my example, the length of messages generated in the konsole is less than 2kb, the length of linux Pipe. I suppose that I'm not losing data by this way. I'm writing to ask if someone knows some place where I can get more information about this matter. Please. Greetings from Sao Paulo - Brazil Ricardo _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Catching linux return code
I create a single program that, after capture a list of files and the name of the tar file, execute a TProcess running the Tarball program under linux(Mandriva 2006). I'm writting because I'd like to know if there is a way of catch a return code or similar to detect if there were errors in the tarball execution. Thanks in advance Greetings from Sao Paulo - Brazil Ricardo _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus]
I tried to install Lazarus various times and always receive the message: error: The open of the package failed in the file /usr/lib/lazarus/lazarus:4523ed86: cpio: read The string before the word cpio modify each time I saw the error. Would it a checksum of any kind? Is this correct to admit that it isn't possible to install Lazarus 0.9.18 under linux Fedora Core 5? Is the message an indication of an error the package downloaded? I've installed this new version under Mandriva 2006? Is it possible that it runs in error under Fedora? May someone of you give me another suggestion? [ ] Ricardo _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Lazarus 0.9.18 under Fedota Core 5 - DONE!
I downloaded the Lazarus 0.9.18 from another mirror(Taiwan) and it runs OK! As I told, for the version I had downloaded from Curitiba-Brazil, rpm -K reports MD5 error. When I discover I downloaded from Taiwan and try rpm -K again and it reports MD5 OK! Then i ran rpm -i Lazarus. it ran OK and Lazarus seems to be running OK, too. Thank you for everybody that try to help. The show goes on. [ ] Ricardo _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Installing 0.9.18 under Fedora Core 5(VMWare)
I downloaded the three packages from Lazarus site: fpc-src, fpc and Lazarus. When I run yum it reports a message package not signed for both fpcsrc and fpc. I think yum has resolved the dependencies, then I ran rpm -i fpcsrc and rpm -i fpc. The both executions seem to end normally(look out: I suppose!) First question: Whu yum didn't end OK? I ran yum for Lazarus too. The response was: (see copy of response screen lines below) Transaction Summary = Install 1 Package(s) Update 0 Package(s) Remove 0 Package(s) Total download size: 155 M Is this ok [y/N]: Exiting on user Command Complete! == I think that Lazarus was installed. When I ran rpm -qa Lazarus didn't appear then I try with rpm. See copy of screen results below: == [EMAIL PROTECTED] download]# rpm -i lazarus-0.9.18-0.i386.rpm erro: a abertura do pacote falhou no ficheiro /usr/lib/lazarus/lazarus;452272fc: cpio: read [EMAIL PROTECTED] download]# == Then I try once more: == [EMAIL PROTECTED] download]# rpm -i lazarus-0.9.18-0.i386.rpm erro: a abertura do pacote falhou no ficheiro /usr/lib/lazarus/lazarus;45227340: cpio: read [EMAIL PROTECTED] download]# == A free tranlation of the message would be: error: Opening of package failing in the file /usr/lib/lazarus/lazarus;45227340: cpio: read What do I do guys? Greetings from Sao Paulo - Brazil Ricardo One more detail: The Fedora is ruuning under VMWare player 1.0.2 - build 29634 _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Send files to trash
I'm writting an application that delete files. Instead of delete them I would like to put them in the trash. How can I send files to trash? If there are differences between windows and linux, please explain both. Greetings from Sao Paulo - Brazil Ricardo _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Send files to trash
Good Michael! But... But... But what is the advantage? Best regards Ricardo On Sun, 1 Oct 2006 16:18:30 +0200 (Romance Daylight Time), Michael Van Canneyt [EMAIL PROTECTED] escreveu: I don't even have a recycle bin on my windows. It's one of the first things I disable :-) Michael. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Some questions about installation
You go direct to the point master Mattias. I used the Rpmdrake to install de MAKE package and repeat the urpmi command and Lazarus 0.9.18 was installed successfully. Thank you very much. Thanks for mr. Felipe Monteiro(just a neighbor here in Sao Paulo) too. One comment: If I forced the Lazarus installation as you suggested, certainly there were dependencies that will give me troubles in the future. glib is one of them. Best regards Ricardo On Sat, 30 Sep 2006 14:48:09 +0200, Mattias Gaertner [EMAIL PROTECTED] escreveu: De: Mattias Gaertner [EMAIL PROTECTED] Data: Sat, 30 Sep 2006 14:48:09 +0200 Para: lazarus@miraclec.com Assunto: Re: [lazarus] Some questions about installation Do you have the tool 'make' installed? It is normally in the package 'make'. Mattias _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Turbo explorer
A good question, at least for me: How a company like Borland will survive if it turns its softwares Open Source? May someone say some words about this? Borland survive sailing licenses paid. Doesn't it? [ ] Ricardo At 11:24 9/8/2006, you wrote: Lord_ZealoN a écrit : Delphi going to OpenSource? No. Al Boldi was saying that nothing can beat open source, i.e., Borland may do what they want, they won't beat FPC+Lazarus. Moreover, I find it strange that after having announced they wanted to sell all that concerns programming tools, they now try to make some money with. They found no buyer? :-) In any case, why paying for a Visual Pascal that only runs on Windows, whereas FPC+Lazarus are free and run on 2,000,000 OS's? mm _ 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] Last release of documentation
On Sun, 06 Aug 2006 11:01:52 +0200, Florian Klaempfl [EMAIL PROTECTED] escreveu: (deleted text) The lastest official docs are in ftp://ftp.freepascal.org/pub/fpc/dist/docs-2.0.2 If I'm not in a mistake this version had a problem in the rtl.pdf. It seems to be incomplete if compared with previous version... But i'm not sure... The newest beta docs are the 2.0.4-rc2 docs: ftp://ftp.freepascal.org/pub/fpc/beta/2.0.4-rc2/docs However, they are only recommended for proof reading etc. till 2.0.4 is out. Thanks for the good reference Florian! Am I a proof? I have used this version since it was send to me by Michael and always are going right. Best regards Ricardo _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Last release of documentation
No! There are new versions of PDF documents made, as usual, by mr. Michael Van Canneyt. I found a copy lost in a directory of my home machine. I think only mr. Canneyt has the last release. (This sir has not answered my priveate messages, lately. Are he on vacation or something like this?) If someone needs, I can send a copy of PDF updated to may, 2006. Best regards Ricardo On Sat, 5 Aug 2006 16:09:48 -0300, Felipe Monteiro de Carvalho [EMAIL PROTECTED] escreveu: De: Felipe Monteiro de Carvalho [EMAIL PROTECTED] Data: Sat, 5 Aug 2006 16:09:48 -0300 Para: lazarus@miraclec.com Assunto: Re: [lazarus] Last release of documentation On 8/2/06, Arí Ricardo Ody [EMAIL PROTECTED] wrote: Which is the link for the latest version of FPC manuals? You mean this one: http://www.freepascal.org/docs.html ? The really latest docs are on subversion in xml format. I´m not sure how to transform them into html. -- 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] TOpenDialog Limitation?
May you explain what kind of details? The platform is Windows XP and if you explain me how to describe how is the widget set, it will be my pleasure inform you. The project was compiled using Lazarus 0.9.16 with FPC version 2.0.2 [2006/05/28]. I can send you the project for compilation and test. It's very simple and I would explain how to arrive in the window that contains the TOpenDialog I'm talkin about. I tell the name of the unit too. I tell the user to select 260 files each time and again 'till he has selected all files he want, but... Regards Ricardo At 03:54 3/8/2006, you wrote: Can you give more detais? What platform are you using, Widget Set, etc... Regards, Graeme. On 8/2/06, Arà Ricardo Ody [EMAIL PROTECTED] wrote: I have an application that uses an TOpenDialog to capture a list of files to be processed. It seems that Execute method returns false when the user selects more than 260 filenames from the input directory... Is it possible? If it is, is there a way of expand this capacity? Or am I totally wrong in my conclusions? Greetings from Sao Paulo - Brazil Ricardo _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives -- 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] TOpenDialog Limitation?
As it's obvious I'm using AllowMultiSelect=true. Some messages ago Mattias said that he tested with 1e3 files under linux... Is there a way to correct the limitation in the windows version? I can't use linux because here, in the company I work, people use windows(blargh!). Regards Ricardo I fear there is some hard coded constraint on the total length of the file names: line 234 of lcl\interfaces\win32\win32wsdialogs.pp: SizeStr:=15*MAX_PATH // Tested with 210 selected files Vincent _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: Decimal separator problem; how to force a '.'
I have similar trouble in the past. What do I do: Before StrToFloat I call a function that replaces the comma by decimal point. Probably there is a better solution. We'll see it now. Best regards (with God on our side) Ricardo At 16:33 3/8/2006, you wrote: 2006/8/3, Alexandre Leclerc [EMAIL PROTECTED]: Hi all, I use FloatToStr and it uses local settings for the formating of the number. But I would like a very crude machine compatible number... ie: '1,23$ = 1.23' or again '1,234,222.12 = 1234222.12' In fact (I want to display the problem very simply): s := FloatToStr(123.456); //s is now '123,456' with my local settings e := StrToFloat(s); //this will fail because of the coma; but this is my local setting!!! So I want to use only '.' separators... -- Alexandre Leclerc _ 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] Trouble installing Lazarus 0.9.16 under VMWare appliance running Fedora Core 5
When I try to compile a classic Hello World program after install the packages of FPC 2.0.2(i'm going to install Lazarus 0.9.16 under this VMWare appliance running Fedora Core 5, I hope) I receive the message I show in the console screen snapshot below. May one of you tell me what's wrong? Greetings from Sao Paulo - Brazil Ricardo [EMAIL PROTECTED] ~]$ fpc hello_world Free Pascal Compiler version 2.0.2 [2005/11/26] for i386 Copyright (c) 1993-2005 by Florian Klaempfl Target OS: Linux for i386 Compiling hello_world.pas Linking hello_world hello_world.pas(5,1) Error: Util ld not found, switching to external linking Error: /usr/bin/ppc386 returned an error exitcode (normal if you did not specify a source file to be compiled) [EMAIL PROTECTED] ~]$ _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Fedora Core 5
I'm trying to install Lazarus 0.9.16 under Fedora Core 5 VMWare Appliance. I have already installed FPC and it's seems to be running OK(thanks Michael). I'm trying to resolve the dependencies manually but it's almost impossible. I stopped when I have 11 packages to manually install and download(imagine the possible trees of dependencies). I have a little knowledge of Mandriva and over there I use URPMI facility. Is there some similar facility on Fedora? Is there any other kind of tool that I can use to solve lots of dependencies like these of Lazarus? [ ] Ricardo _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Doubt about DirectoryExists
The command if DirectoryExists ('\\Japi1\bradesco\Publico\Conversão COOLGEN\Acompanhamento\LOG') returns false, although the network directory \\Japi1\bradesco\Publico\Conversão COOLGEN\Acompanhamento\LOG exists. Text property of a TDirectoryEdit accepts '\\Japi1\bradesco\Publico\Conversão COOLGEN\Acompanhamento\LOG' normally and I move it to string and write into a text file. When I read the text file, if DirectoryExists returns false... Am I wrong in some procedure? Is there a way of discover if a network path exists ? Greetings from Sao Paulo - Brazil Ricardo _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] What's wrong?
I have a project that is running day-by-day with no news. Today I add a TSpeedButton(later a TButton, trying to make it compile OK). If I build the project it run compiles and link edit OK. If I double click on the new button I receive the message: The component editor of class TdefaultCompnentEditor has created the error: Unable to find method. Plz fix the error shown in the message window The message window contains: unit_executa_conversor.pas(9,73) Error: unit not found: unutil I have an unutil unit. I go to the directory c:\lazarus\pp\units\i386-win32\rtl and here we have: libunutil.a, unutil.o, unutil.ppu Over there are the other units of Lazarus, like crt, sysutils, strutils, etc. Why Lazarus(or the fpc compiler) doesn't find the unit? Why build doesn't report the same error? (I copy the unutil.pas to the same directory of the project, compile the project and double click on the new button and go forward, but I would like to know what's wrong) Greetings from Sao Paulo - Brasil Ricardo _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] What's wrong?
I forgot to say: I'm running Lazarus 0.9.14. Is this the reason that help doesn't answer my click? [ ] Ricardo At 11:27 2/6/2006, you wrote: On Fri, 02 Jun 2006 10:28:26 -0300 Arí Ricardo Ody [EMAIL PROTECTED] wrote: I have a project that is running day-by-day with no news. Today I add a TSpeedButton(later a TButton, trying to make it compile OK). If I build the project it run compiles and link edit OK. If I double click on the new button I receive the message: The component editor of class TdefaultCompnentEditor has created the error: Unable to find method. Plz fix the error shown in the message window The message window contains: unit_executa_conversor.pas(9,73) Error: unit not found: unutil Right click on IDE message window and use Help. Mattias I have an unutil unit. I go to the directory c:\lazarus\pp\units\i386-win32\rtl and here we have: libunutil.a, unutil.o, unutil.ppu Over there are the other units of Lazarus, like crt, sysutils, strutils, etc. Why Lazarus(or the fpc compiler) doesn't find the unit? Why build doesn't report the same error? (I copy the unutil.pas to the same directory of the project, compile the project and double click on the new button and go forward, but I would like to know what's wrong) Greetings from Sao Paulo - Brasil Ricardo _ 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
[lazarus] A little off-topic, but...
I know that the question below if out of the matter of this list, but if one of you would solve this trouble before, maybe, can give me some aid. I do a fresh installation of Mandriva 2006 over Mandrake Community 10.1 After some minutes I receive the message: Message from [EMAIL PROTECTED] at Wed May 24 22:47:45 2006 ... localhost kernel: Disabling IRQ #1 The message appears in box in the KDE desktop... I can't find what function of the machine was affected by disable IRQ#11, but must be someone affected. The machine is a Celeron 1 GHz that I have since 2002. It's not a new machine. Greetings from Sao Paulo - Brazil Ricardo _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Little Startup help under Linux
I remember that, in my first installation, I need to do links for the libraries used by the linkage editor cause the names the linkage editor use were different from those are in the hard disk. My distro was Mandrake 10.1. Is this the same situation? [ ] Ricardo P.S.: I'll try to install lazarus under mandriva. Do I need to do the links again? At 15:49 26/5/2006, you wrote: Before, excuse me for my english poor. But i go to try. Is your linux version debian based? 1) On the Linux the installation must be realized as root user. According to my friend (Braslib-devel, yahoo group), this steps works with Debian e Ubuntu. Get download files (~45Mb) in: * ftp://ftp.freepascal.org/pub/fpc/dist/i386-linux-2.0.2/fpc-2.0.2.i386-linux.tar * ftp://ftp.freepascal.org/pub/fpc/dist/source-2.0.2/fpc-2.0.2.source.tar.gz * http://prdownloads.sourceforge.net/lazarus/lazarus-0.9.10-0.tar.gz?download and put all in the same folder. It is necessary to install any packages with apt-get (may be 60MB). Remember that is necessary to have GCC packages installed. # apt-get install alien binutils libglib1.2-dev libgkt1.2-dev libgnome-dev xspecs libgtk2.0-dev libc6-dev libgdk-pixbuf-dev After to installed packages, let's go to unpack and to install the softwares. - The compiler: # tar xvf fpc-2.0.2.i386-linux.tar # ./install.sh (install in /usr/lib and not in /usr/local/lib/, the others are standards). - The source code: # mkdir fpc # cd fpc # tar zxvf ../fpc-2.0.2.source.tar.gz # cd .. # mv fpc /usr/src The IDE (finally). # tar zxvf lazarus-0.9.10-0.tar.gz # mv lazarus /usr/lib # cd /usr/lib/lazarus # make # strip startlazarus # ln -s /usr/lib/lazarus/startlazarus /usr/bin/lazarus Ok! Now you open the Lazarus, typing lazarus on the shell. Alexander Peters [EMAIL PROTECTED] escreveu: Hello Mailinglist! I?am a Windows Developer and want to check Linux (Kubuntu) and coding under Linux (Lazarus) know i want to download it and find serval RPMs. Now i dont know which RPM i need to install. Is it right that i need the lazarus-0.9.14-1.i386.rpm and the fpc-2.0.2-0.i586.rpm? Thanks for Help Alexander Peters _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives Abra sua conta no Yahoo! Mail - 1GB de espaço, alertas de e-mail no celular e anti-spam realmente eficaz.
[lazarus] Detecting user cancel
Is there a way that I can detect if a Lazarus application was cancelled by the windows task manager? For example: Does the Destroy event of the main occurs(And then I can intercept)? I want to detect this situation and do some special processing. Greetings from São Paulo - Brazil Ricardo _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Re: Detecting user cancel
At 08:56 19/5/2006, you wrote: On Fri, 19 May 2006 15:00:38 +0330, Arà Ricardo Ody [EMAIL PROTECTED] wrote: If you mean cancelled as kill task by windows task manager,no i really doubt that. becouse it is use is to force killling of a task,mostly when program is hung, Suppose computer is doing a long processing. Then, someone that can copies some information that is available only during this processing, tries to interrupt the processing. I want to detect this and delete the privileged information(that otherwise would be encripted - sources of a interpreted language). you can be sure by checking your program with spy++ and see if it recieves any message, also maybe global hooking can do something for you. I know nothing of this matter. May you develop, please? Thanks a lot Ricardo _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Re: Detecting user cancel
At 10:15 19/5/2006, you wrote: Hello, My feeling is that deleting that information when the program is killed would only partially solve the problem , and would only give a false feeling of security. For instance: - since it's a long-running operation, it might be possible to copy the sensitive information before the processing ends ? (we are talking about some temporary files , right ? ) - someone might run the program inside a debugger, and stop the execution of the program just before the privileged information is deleted - giving that person enough time to inspect all the secrets. First, thank you for you considerations. I think that people that would handle the application have no expertise to do the things you suggest above. This is my hope. I'll put the sources in a (local) ramdrive. This may difficult these actions. At least for access the information thru the network. Perhaps it would be better to keep that information in memory in some kind of buffer ? that memory would be freed after the application is killed ; (again - i'm assuming that you are currently storing the information in some temporary files). My Lazarus application will manage a list of programs to be converted and will run a tool(once for each file of the list) that uses an interpreter to execute sources that would writed in a ramdrive. I have no way of establish a communications with the interpreter in the way it takes the sources from a buffer of memory and not from a real drive. If you know what I mean... Cheers, -- Adrian Maier _ 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] Re: Detecting user cancel
At 10:39 19/5/2006, you wrote: Hmm. I see. There is nothing you can do if the interpreter accepts input only from files. It's a shame that you can't pass the sources to the interpreter through pipes. Just curious: what interpreter is it ? -- Adrian Maier A guy here develop an application using que macro language o Mansfield's Kedit editor(www.kedit.com). The interpreter runs under Kedit. It has a powerful language and you can mix editor commands in the macro programs. But it's a high CPU usage. I wrote a front end in Lazarus that allow the user to select a list of input files. The front end remains starting KEDIT once for each input file. [ ] Ricardo _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Icons
1. How do I can associate an icon to a project in the way it appears in the desktop? 2. How do I can associate an icon that will be show in the top left corner of the Form window? (I'd try to load a picture in the Icomn property of the Form but nothing happen) Greetings from São Paulo - Brazil Ricardo _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Process.ExitStatus after run windows CMD
I execute the Execute method of TProcess class to run a FPC program. When I test TProcess.ExitStatus property it always returns the decimal value 259. My FPC DOS program ends via the end.(e.g., there is abnormal end). I would like to know if there is a way of test successfull execution of DOS process of this kind. Greetings from São Paulo - Brazil Ricardo _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Screen updating during TProcess execution
I mounted a listbox with a list of files. In a For loop that treat each file in the listbox I execute a TProcess that runs an external program that do some processing over this file. After the TProcess.Execute I call TProcess.WaitOnExit method. Before TProcess.Execute I switch the selected property of the listbox item to true. In this way, the items that are still processed will appear selected in the listbox. The listbox appears with all items selected only after the For loop ends. I create a 2nd listbox and try to add the item I will process just before call the Execute method. The same thing occurs: The second listbox appears filled only after the For loop ends(or the method where the For loop is, ends itself). Finally I try to alter the caption property of a TLabel just after call Execute Method. Again it didn't run ok... May someone explain me how to solve this trouble? Greetings from São Paulo - Brazil Ricardo _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Screen updating during TProcess execution
At 10:52 3/5/2006, you wrote: Didn't you get my private answer on this ? Of course no. In other case I'll use it. Thank you very much [] Ricardo _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Screen updating during TProcess execution
The Application.ProcessMessages does the job. Thanks for all Ricardo At 10:55 3/5/2006, you wrote: Try a Application.ProcessMessages; between the using of the components (setting the label caption, or filling the combobox) and the TProcess.Execute. Good luck! Horacio Jamilis [EMAIL PROTECTED] - Original Message - From: Arí Ricardo Ody [EMAIL PROTECTED] Subject: [lazarus] Screen updating during TProcess execution I mounted a listbox with a list of files. In a For loop that treat each file in the listbox I execute a TProcess that runs an external program that do some processing over this file. After the TProcess.Execute I call TProcess.WaitOnExit method. Before TProcess.Execute I switch the selected property of the listbox item to true. In this way, the items that are still processed will appear selected in the listbox. The listbox appears with all items selected only after the For loop ends. I create a 2nd listbox and try to add the item I will process just before call the Execute method. The same thing occurs: The second listbox appears filled only after the For loop ends(or the method where the For loop is, ends itself). Finally I try to alter the caption property of a TLabel just after call Execute Method. Again it didn't run ok... May someone explain me how to solve this trouble? Greetings from São Paulo - Brazil Ricardo _ 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] [off-topic] Test
Test _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Attachment forbidden?
I sent a message with an attachment of type .gz twice and it don't appears in my inbox. Is there something wrong in this kind of e-mail to list? [ ] Ricardo _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Attachment forbidden?
Well... Back to the an old problem I still have... Thank you Ricardo P.S.: My attachment has 114 KB At 15:57 2/5/2006, you wrote: On Tue, 2006-05-02 at 15:40 -0300, Arà Ricardo Ody wrote: I sent a message with an attachment of type .gz twice and it don't appears in my inbox. Is there something wrong in this kind of e-mail to list? No only on the size. If it is bigger then 40K (iirc) it will not be accepted. Matthijs -- Matthijs Willemstein [EMAIL PROTECTED] _ 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] TMemnuItem with ShowHint property
TMenuItem has the property Hint but doesn't has the ShowHint one... Is this a bug? [ ] Ricardo _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] TMemnuItem with ShowHint property
Danke! Ricardo On Tue, 2 May 2006 23:55:04 +0200, Mattias Gaertner [EMAIL PROTECTED] escreveu: De: Mattias Gaertner [EMAIL PROTECTED] Data: Tue, 2 May 2006 23:55:04 +0200 Para: lazarus@miraclec.com Assunto: Re: [lazarus] TMemnuItem with ShowHint property On Tue, 02 May 2006 16:22:16 -0300 Arí Ricardo Ody [EMAIL PROTECTED] wrote: TMenuItem has the property Hint but doesn't has the ShowHint one... Is this a bug? Naaah. Just as inconsistent as Delphi. If you want to add it: The default value should be true for Delphi compatibility. 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] Property EchoMode of a TEdit dialog
Thank you very much. Someone already sent this suggestion and I decide to use #$7 instead of '*'. Regards Ricardo On Mon, 1 May 2006 08:51:11 +0300, Alexander Todorov [EMAIL PROTECTED] escreveu: De: Alexander Todorov [EMAIL PROTECTED] Data: Mon, 1 May 2006 08:51:11 +0300 Para: lazarus@miraclec.com Assunto: Re: [lazarus] Property EchoMode of a TEdit dialog On 4/28/06, Arí Ricardo Ody [EMAIL PROTECTED] wrote: I select emPassword in the combo of values of the property EchoMode of a TEdit and, when I run the project, the characters I type are showed normally in in the TEdit box. May I do something wrong? Greetings from São Paulo - Brazil Ricardo Try to this TEdit.PasswordChar :='*'; _ 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] Is this a bug?
On Sat, 29 Apr 2006 12:26:20 +0200, Tomas Gregorovic [EMAIL PROTECTED] escreveu: I don't know what should EchoMode property do I though I know , but you can solve this problem by setting PasswordChar to '*'. Thank you very much. It works! (I set the character to #$7) tombo Ricardo Visit Porto Alegre city at brazilian state Rio GRande do Sul and see the nicest sundown in the world over Guaiba river... _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Property EchoMode of a TEdit dialog
I select emPassword in the combo of values of the property EchoMode of a TEdit and, when I run the project, the characters I type are showed normally in in the TEdit box. May I do something wrong? Greetings from São Paulo - Brazil Ricardo Visit Porto Alegre, the capital of brazilian Rio Grande do Sul state and see the nicest sundownof the world over Guaiba river. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Is this a bug?
I'm developing a project when I open a screen where the user must type a password in a TEdit box. I select emPassword in the EchoMode property of the mentioned TEdit box waiting that characters type would be replaced by an asterisc, but it isn't happen. Is it a bug? How do I obtain the desired effect? [ ] Ricardo _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Comments about DB2
At 06:43 5/4/2006, you wrote: myTable has primary key id SELECT * FROM myTable now I make changes to the record with id=34578 SQLDB finds out that id is the primary key and does: UPDATE mtTable SET WHERE id=34578 how else would it know that it should use the id field in the WHERE clause? You see? Ya. But if I code only updates that don't use PK in the WHERE clause? Even in this case the program must know what's the PK? And if I use the WHERE CURRENT OF clause in the UPDATE. And about DELETE? DELETE FROM SOME_TABLE WHERE A_FIELD_NOT_A_KEY IS NULL; Perhaps I can we can be talking about different things, I don't know The format is supported by IBM in lots of machines of various capacities... Thousands? Who is the most important: Be a pig-headed or prepare a tool that can be used by thousands of programmers around the world? We already saw that: - you could try casting the field in the SQL statement (but then you will need to do some manual stuff instead of only linking come DB* components) - you could try making the field definition (TFieldDef) for the TIMESTAMP column having type a FieldType of stString and setting the Size to 26 - you/we could try to make a TTimeStamp with supports a Precision property (or just a TNanoTimeStamp etc.) (this makes only sense if the DB2 ODBC also actually passes the precision) - Delphi does not give you more than 3 digits accuracy for the seconds in the timestamp - MS Access has only 3 digits accuracy - MySQL has 0 digits accuracy I think this gives enough motivation why currently 6-digit precision is not supported. When we (I) have time, I will try to expand the possibilities of ODBCConn to deal with these timestamps -- if it's possible at all -- but it just isn't a very high priority. Meanwhile, you can also try to experiment with the suggested workarounds. Very cool! The only thing I' like to remember, without controversy, that in the begin of these conversations I was talking about use the RAD characteristic of Lazarus and develop a tool in a fast way. When I need to browse another table I only change the SQL property of the SQLQuery and compile the tool again. I'd do this with Firebird bases and think about do the same thing with DB2 since I discover that Lazarus can access DB2 tables via ODBC. It's only an explanation, not to begin the whole discussion again. [ ] Ricardo _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Comments about DB2
At 17:27 3/4/2006, you wrote: Sure, but what I understood from Bram, some other Timestamp/Datetime fields were working, only this particular sort of Timestamp isn't. If you think carefully you'll conclude that there is only one type of TIMESTAMP: day, month, year, hours, minutes, seconds and 1/1e6 of seconds. All other types are derived from this format, the complete TIMESTAMP format. Another thought on the problems Arà has with update queries and TODBCConnection: as I need only read access, I never implemented UpdateIndexDefs; might that be required? UpdateIndexDefs? What is the function of such method? Since data base manager ever keep the index(es) up-to-date and it has the index(es) description in its areas, I can't imagine... To let modifications things work automatically, it is needed. This function updates the information about the indexes on the table. From this information it derrives what the primary key is. And the where part of the update/insert/delete statements is depending on the primary key... But you could also 'manually' add all fields-definitions, and then set the field that should be used in the where-clause of the sql- statement. I insist: management of indexes, primary keys, etc. are function of database manager. It administrates indexes, keys(primary and others), triggers and so on. I can't understand how you insist a treat these fields... Excuse me. Can you imagine if each programmer that accesses a DB2 table has power to treat indexes, keys and similar? How will these database be after one week? And after one month? At the end of the year. The internal attributes of the tables are protected from direct access of application programs. DB2 RDBMS make calculations of access paths, type of access, define access algorithms using the information of indexes and keys. It's important to remeber: The RDBMS do this. I'm not sure about that. The developer is asking for a Date/time, so he'll expect that he'll get a Date/time. If you need a string from DB2, I would use a cast in the sql-statement. I'm sure that if TIMESTAMP returns a string [26] any programmer can edit and transform this string as needed. If a developer is asking for a date/time format is easy: Convert it to date/time. You can treat these fields as you want. I suggest a string [26] because it seems to be more simple(I confess I have no idea how the interface is programmed and in which language). However if you INSERT and UPDATE rows in a table and a COBOL programmer(for example) access this table and find the format he expects(containing the fields I mentioned above), no problema! Regards Arí
Re: [lazarus] Comments about DB2
At 11:15 4/4/2006, you wrote: To avoid all these issues, we use TDatetime, with less space. But have no seconds fraction. We'll be back to the old question: How do I do with fractions of seconds that can be INSERTed by other languages??? How do I generate the fraction from Lazarus/FPC? [ ] _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Comments about DB2
At 11:36 4/4/2006, you wrote: It retrieves descriptive information from RDBMS - FCL TIndexDefs. That's all. DB2 has various DB2 tables that give information about one specific table. Examples: SYSINDEXES, SYSTABLES, SYSCOLUMNS, etc. [ ] _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Comments about DB2
Alright Michael. The fact is that there is tables that have TIMESTAMP columns with more than 3 digits of fraction... I'm trying to say that I think that you can't ignore it with simplicity. Or can you? I trying to explain since this discussion starts that, at least, Lazarus/FPC can be able to handle 6 digits of fraction. Otherwise in can't process tables generated from some other languages(cobol, for example). Or you can create a Lazarus/FPC TIMESTAMP version :-[ [ ] Ricardo At 11:51 4/4/2006, you wrote: On Tue, 4 Apr 2006, Arí Ricardo Ody wrote: At 11:15 4/4/2006, you wrote: To avoid all these issues, we use TDatetime, with less space. But have no seconds fraction. We'll be back to the old question: How do I do with fractions of seconds that can be INSERTed by other languages??? How do I generate the fraction from Lazarus/FPC? 1/1000-s of a second can be inserted. More digits are meaningless. Michael. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Comments about DB2
At 12:36 4/4/2006, you wrote: But definitely not text. Alright, you decide! (pig-headed?) :-D Michael. [ ] Ricardo _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Comments about DB2
Hi Alex! In fact I was trying to do a browse with option of UPDATE, DELETE or INSERT via DBNavigator and DBGrid. The functions that make changes in the DB2 tables are not OK. I give up. I had the idea because I'd do a similar browse in Firebird bases. During conversations about this we began to discuss about DB2 TIMESTAMP format. But, thank you for your contribuition. (How are the whole things?) Regards Ricardo At 12:50 4/4/2006, you wrote: Hello Arì! I was reading the thread, and then come to my mind a technique I was using in such cases where the database has more advanced fields than what is possible with Delphi. I always use TDateTime usually because it is very standard and painless to work with. I can switch the database backend with no problems. I like it. But when I want some very specific information from the database that i can't get from a standard TDatetime (for example, I'm always using PostgreSQL that I like a lot, the timestamp can contain localized information, but not the TDateTime format) so what I do is that in my SQL query I'm casting the type to another type, like a string, so that I can proces the information manually by myself when required. This is always working because the casting of the database is standard. Now this is valid for PostgreSQL RDBMS, and since I don't know about DB2, I'm wondering if casting the field type to another type in the SQL statement could be a solution for you? So you could use standard TDateTime when not required, or some casting when you need very precise information. Hope this can help you. Best regards. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Comments about DB2
At 14:03 4/4/2006, you wrote: If you want to make your database available for multiple languages, you should taken that into account when you're designing it. Or you should use some code. No offense, but in front of DB2 database (as Oracle, Sql Server, etc.) languages that must adapt themselves... They(the databases) has thousands of installed copies and run in thousands of firms around the world. Best regards Ricardo _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Comments about DB2
At 14:03 4/4/2006, you wrote: That's because UpdateIndexDefs isn't defined. It remains being a mistery for me. Since RDBMS is who manage index(es) and key(s)... During conversations about this we began to discuss about DB2 TIMESTAMP format. Since you wanted to use that as primary index. Since the content I receive from ODBC was different of the content recorded in the column. And about the DB2-timestamp. As I said, it's not a normal fieldtype. And you can't expect us to support every field type there is. I can define my own fieldtype, that'll only work with fpc+oracle. But if I start complaining by IBM and Cobold that they don't support it 'natively without any code', they'll start laughing. The format is supported by IBM in lots of machines of various capacities... Thousands? Who is the most important: Be a pig-headed or prepare a tool that can be used by thousands of programmers around the world? If you want to make your database available for multiple languages, you should taken that into account when you're designing it. Or you should use some code. No comments. I'm curious, for instance, what MS Access will do with your timestamp... It isn't my timestamp, it's IBM's timestamp. I think that IBM has some influence in the IT in one or two countrys, Jojo [ ] Ricardo Please: We are repeating all the matter again... _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Comments about DB2
At 10:16 2/4/2006, you wrote: Hi! I did some tests too. My goal is to make a simple form with data controls without any line of code... This was my goal with DB2 tables and it doesn't work. At least, I can't generate a simple application without code that can INSERT, UPDATE and/or DELETE rows of the table without additional code. I did a test with a similar application using Firebird and everything ran OK. But with DB2... It sounds strange to me the phrase All things above do work, mr. Joost. Would I lose a pointer during the conversations? [ ] Ricardo _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
RE: [lazarus] Comments about DB2
Hi! The problem is more simple. The idea is generate 1 copy of the browsing program for each table that the guys of production department will need to access. We are testing programs that was converted from a 4th tool of mainframe. Then I have developed various little programs to aid these guys. Programs will use components to connect to DB2(SQLQuery, SQLTransaction, TODBCConnectio, etc) and two visual components: A DBNavigator and a DBGrid. This is all! Actually the trouble here is that updates to DB2 tables(at least with the ODBC I have here, furnished by IBM I suppose) are generating an empty MessageDialog and the program is cancelled. Is simple like this! I didn't write any code(RAD tool. Remember!). The table name is typed directly in the SQL property of TSQLQuery. [ ] Ricardo At 18:02 29/3/2006, Matthijs Willemstein wrote: But then again to use the same component i.e. a SQLQuery for more then one operation is a bad design anyway. The only case I can think of you can come away with this is on some form where you are editing base tables. For anything else you should use separate SQLQueries for each table you want to work on. As you are programming for a procedural program, but event driven you can never know where a certain SQLQuery is used for at that moment. So if you change the SQL-statement of the query some strange things might Happen, leading to very hard to find bugs. Matthijs. _ 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] Comments about DB2
At 06:18 30/3/2006, you wrote: But I doubt that Ari is using the applyupdates procedure. You're right! Actually I don't ever use this procedure. I never develop a complex project using databases in Lazarus. I did some single tests twith INSERT, DELETE e UPDATE in Firebird and try to do a simple DB2 browse using opnly Lazarus components. As I still say before, I didn't write any line of code. [ ] Ricardo _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Comments about DB2
At 12:08 29/3/2006, Bram Kuijvenhoven wrote: (deleted text) low platform and upload the sources, compile, catalog and run applications on mainframe without new tests. More over it must be thousands of other applications that would benefit of DB2 TIMESTAMP format. BTW, the format of TIMESTAMP in DB2 is -MM-DD HH.MM.SS.UU. IMHO, any other format seems to be not correct for DB2 approach. This sounds quite obscure to me; are those timestamps used as /unique/ keys? I never see they used as unique, but as a second column in a discret key. An example that I can remember now would be keep various questions done to a call center by the same user/customer... It would require some investigation to find out whether it is possible at all to do this. In the first place it would require a TTimeStamp implementation. Secondly, the ODBC driver should be capable of passing information about the precision of the timestamp. Thirdly, the TTimeStamp implementation would be required to support this precision information as well. Finally, it should somehow be possible to present the TTimeStamp in the -MM-DD HH.MM.SS.UU format in the GUI controls you use. A question guys: Why you don't treat TIMESTAMP as a string [26] in Lazarus? The ODBCConnection must be prepared to treat when write to table and when transfering from table to program. In cobol this DB2 type is treated in this way and there are thousands(millions) of programs running OK around the world(although I hate it, it seems that cobol will never die). I will take a look at the capabilities of ODBC to pass precision or format information of columns/data types. I'm open for any suggestions. I gave you mine suggestion above If I'm proposing things that are not possible to implement, please excuse me. [ ] Ricardo _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Comments about DB2
At 12:48 29/3/2006, you wrote: Since it isn't a string. You don't want to convert native types to a string. What if, due to some locale, the timestap is returned as DD/MM/ HH:MM:SS:UU ? Marc The format you propose above is the format that IBM DB2 uses to store data. At least it shows this format when you browse with teh IBM DB2 client. I can think in two solutions: 1. Customize the return format at Lazarus level(a TSQLQuery property? The way that CA-Realia cobol solves the trouble is customizing these format via Tools of the compiler) 2. Return always a format and people reformat as needed [ ] _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Comments about DB2
At 12:24 29/3/2006, you wrote: I need more information to see what's going wrong here. Is there something I can do to help you? What kind of explanation may I do to help you understand the trouble correctly? [ ] Ricardo _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Comments about DB2
At 12:26 29/3/2006, you wrote: Bram, I think Arí is using the same ODBC connection with other programming langs. So the ODBC can report the -MM-DD HH.MM.SS.UU. I just didn't want you spending to much time questioning the ODBC connection. Ya! These whole story begins with a project of migration of a fourth tool of IBM mainframe(named COOL:Gen) to single cobol for MVS programs. We have the CA-Realia cobol installed in our local network and it emulates the mainframe environment. As I hate cobol(even being an expert) I wrote utilities in FPC and Lazarus. With the release 0.9.12 I discovered that Lazarus can access DB2 tables via ODBC. I wrote a Lazarus program to let the people that are testing the converted programs make alterations on DB2 tables in user-friendly format(DBNavigator + DBGrid). When I try to browse the 1st table containing TIMESTAMP Db2 columns the show begins. I'm using the same ODBC driver that is used for CA-Realia cobol (not simultaneous, of course). It is my understanding that the SQLdb currently does not support any PK type other than numeric. So I think Update, Delete would not work with a TTimeStamp. I'm not to sure how the insert would work. How I am only browsing the tables in sequential mode with Lazarus visual tools, there are no PK(primary keys envolved), I suppose. Am I wrong? [ ] Ricardo _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Comments about DB2
At 14:19 29/3/2006, you wrote: OK I think I understand at least one of your issues. For you to be able to 'update' the SQL select statement must have a PK. The PK is used when making an update statement (I have not tried using delete but I bet it needs a PK to delete). BTW I think you can program the update,delete, and insert statements in the connection. I'm not sure about this because I haven't tried it. The connection has the 'executedirect' procedure. So just pass the sql string to the procedure. Of course that would mean you are not using the query control to handle the updates etc John I think that it isn't true, John. A DB2 table must have a PK, both of us know it. But, considering that I'm using DBNavigator/DBGrid I think that the commands update and delete must be doing using a similar way of the WHERE CURRENT clause. The treatment of PK's(an their indexes) is done by the database routines. I never saw a program execute commands to update indexes and so on. In a simple way: All key/index maintenance is done at DB2 internal routines level. [ ] Ricardo _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Comments about DB2
I ask for enlighten too. The center of my solution is to use select * from tablename and let the DBNavigator/DBGrid does the insert, update and delete. In this way I could make a browse in any table. I simply must to change the SQL property of TSQLQuery. I use similar features with Firebird tables some months ago. Well... Firebird doesn't use ODBC in Lazarus... I'm totally confused at this time... I don't want to write one program for every DB2 table. I think that I'll abandon Lazarus for this task. [ ] At 15:07 29/3/2006, you wrote: On Wednesday 29 March 2006 09:43, Arí Ricardo Ody wrote: At 14:19 29/3/2006, you wrote: OK I think I understand at least one of your issues. For you to be able to 'update' the SQL select statement must have a PK. The PK is used when making an update statement (I have not tried using delete but I bet it needs a PK to delete). BTW I think you can program the update,delete, and insert statements in the connection. I'm not sure about this because I haven't tried it. The connection has the 'executedirect' procedure. So just pass the sql string to the procedure. Of course that would mean you are not using the query control to handle the updates etc John I think that it isn't true, John. A DB2 table must have a PK, both of us know it. But, considering that I'm using DBNavigator/DBGrid I think that the commands update and delete must be doing using a similar way of the WHERE CURRENT clause. The treatment of PK's(an their indexes) is done by the database routines. I never saw a program execute commands to update indexes and so on. In a simple way: All key/index maintenance is done at DB2 internal routines level. [ ] Ricardo In my case I used Select custno,company from arcust as my sql statement in the sqlquery. I then attempted to update the data using the sqlquery 'post', 'applyupdates' procedures. It immediately failed. However, select * from arcust work as expected. The reason the first fail and the second succeed was the lack of the PK being availabe to the sqlquery. When you open the sqlquery as in 'sqlquery1.open;' in the background a request is made to the database engine that returns the PK field name. I discovered this by reviewing the logs of the database engine (in my case that is a Postgres database engine). So when you update the data using the 'applyupdates' procedure the sqlquery control knows how to write the update statement. In other words sqlquery creates the update as follows: update table set field = something where PKfield = some number The opening of the sqlquery (sqlquery.open;) determined the 'PKfield' in the above statement. If I am incorrect could someone enlighten both of us! John _ 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] DB2 (still)
Will someone of you try to solve the DB2 trouble that we discussed here? Yesterday I sent the links for IBM DB2. If someone needs a DB2 table for tests with TIMESTAMP I can send. No offense, only for my knowledge. Best regards Ricardo _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] DB2 (still)
Alright. If I can give any aditional help... [ ] Ricardo At 09:42 28/3/2006, you wrote: On Tue, 28 Mar 2006, Arí Ricardo Ody wrote: Will someone of you try to solve the DB2 trouble that we discussed here? Yesterday I sent the links for IBM DB2. If someone needs a DB2 table for tests with TIMESTAMP I can send. No offense, only for my knowledge. We need to apply the patch first. I have DB2 installed here at work so if needed, I can run some tests. Michael. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] DB2 (still)
At 11:08 28/3/2006, Bram Kuijvenhoven wrote: Perhaps I missed something, but if I'm correct Arí should simply use an updated FPC. The snapshots on http://www.de.freepascal.org/lazarus/ seem to include FPC 2.1.1 (right?). So I suggest, Arí that you download the latest win32 snapshot and give that a try. I am pretty sure this one would work. If this one does not work, I can try to install the DB2 database you mentioned in your last mail (thank you for the link!). Do you also use the ODBC driver from IBM? BTW, as a quick workaround for TIMESTAMP fields, you could perhaps try casting it to a DATETIME field (or whatever it is called in DB2). I downloaded the version from snapshot and install it in place of 0.9.12. Mr. Kuijvenhoven seems to be right the error with the TIMESTAMP column doesn't occur. Is time do more tests. Thank you Bram! Ricardo _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Free DB2 downloads
If you can try, there is free download of personal version of DB2 V8 at: http://www-128.ibm.com/developerworks/downloads/im/udbexp/?S_TACT=105AGX37S_CMP=TPRY There are some explanation at: http://www.developers.net/all_content/more/Downloads/Database _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives