Re: [lazarus] VOOE Programming.

2007-08-20 Thread Bram Kuijvenhoven
Dave Coventry wrote: I have advised a Visual Basic user of the merits of Lazarus and he asked "Yes, but can it do VOOE programming". Actually, I don't know what VOOE programming is ;), but I thought I'd pose the question anyhow Well maybe it's 'Visual Object Oriented Engineering' --- e.g

Re: [lazarus] Another little help with databases

2007-07-17 Thread Bram Kuijvenhoven
Joost van der Sluis wrote: On Tue, 2007-07-17 at 08:34 +0200, Bram Kuijvenhoven wrote: German C. Basisty wrote: I have now a form with a working TPQConnection, a TSQLTransaction, a TSQLQuery with a ‘select * from product’ as SQL, a TDatasource, an a TDBGrid, everithing is working fine and

Re: [lazarus] Another little help with databases

2007-07-16 Thread Bram Kuijvenhoven
German C. Basisty wrote: I have now a form with a working TPQConnection, a TSQLTransaction, a TSQLQuery with a ‘select * from product’ as SQL, a TDatasource, an a TDBGrid, everithing is working fine and every product is shown on the DBGrid as expected. Now I want to add an TEdit to make posibl

Re: [lazarus] reading XML error

2007-07-15 Thread Bram Kuijvenhoven
George Lober wrote: I have this code which reads XML. I get a SIGSEGV error when reading a NodeValue which has no content. For runtime it works ok because I put in the try/except block, but this still produces error at design time which is a nuisance. Any suggestions? Is there a way to check fo

Re: [lazarus] I need something like TtdCompareFunc to buil a Priority Queue

2007-06-21 Thread Bram Kuijvenhoven
Hugo wrote: Hi! I want to write a Priority Queue but I can't find a TtdCompareFunc in order to keep the priority queue properties It is defined in the unit TDBasics. Just Google for it. It really gives a faster response than a mailing list ;) Bram PS I hope you were planning to use the heap

Re: [lazarus] SqlError Command Left Join

2007-06-20 Thread Bram Kuijvenhoven
compile my program.. run EAccesViolation ??? please help ;) Allies Xposs wrote: special for All Programers Lazarus... sqlquery1.close; sqlquery1.sql.clear; sqlquery1.sql.add('select A,c_div,B.D_name,A.C_Code,A.C_Name from Categori A left Join Divisi B on A,C_div=B.D_code order by A.C_div,A.C

Re: [lazarus] Loads of warning messages to the console

2007-06-15 Thread Bram Kuijvenhoven
Graeme Geldenhuys wrote: When I run my application which has two TListView component on it, with no data - it just displays the form, I get loads of warning messages to the console!!! Using GTK1 under Linux. Lazarus 0.9.23 r11312. Am I supposed to start worrying, or can I ignore these for now.?

Re: [lazarus] Ending a Lazarus Application with Firebird

2007-06-05 Thread Bram Kuijvenhoven
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/

Re: [lazarus] Strange bug with SQLQuery.Close

2007-05-30 Thread Bram Kuijvenhoven
fedorax wrote: Selon Joost van der Sluis <[EMAIL PROTECTED]>: On Sat, 2007-05-26 at 15:00 +0200, fedorax wrote: I've a strange bug. In this fonction ( Which was worked perfectly from few months an never chage ). -- procedure TFunc_Sql.List_TablesSelectionChange(Sender:

Re: [lazarus] Once Code Compile Anywhere .... ????

2007-05-26 Thread Bram Kuijvenhoven
Lee Jenkins wrote: Allies Xposs wrote: Thanks all... Im confuse .. How to di This ? (Once Code Compile Anywhere).. Im Use LAzarus under WIndows, but... i want compile my code can RUN IN LINUX... How...?? In addition to what the others said, consider using cvs to manage your cross p

Re: [lazarus] Image from SQL

2007-05-16 Thread Bram Kuijvenhoven
A.J. Venter wrote: Var S1,S2,S3: TStringList; FN : String; begin S1 := TStringList.Create; S2 := TStringList.Create; S3 := TStringList.Create; If OpenPictureDialog1.Execute then Begin S1.LoadFromFile(OpenPictureDialog1.FileName); S2.Add(EncodeB64(S1.Text)); S3.A

Re: [lazarus] Image from SQL

2007-05-16 Thread Bram Kuijvenhoven
Hi A.J., If you create a standalone demo program that: - reads in an image file - calls your Base64Encode function - next calls your Base64Decode function (i.e. leave out the DB stuff) - writes the result to an output file (which is damaged) and attach the image file, then I will take a look at i

Re: [lazarus] Image from SQL

2007-05-15 Thread Bram Kuijvenhoven
A.J. Venter wrote: This brings up a few questions though: 1) How can I store a string into a TMemoryStream ? I know that TStringList has a loadFromStream method - but how d I go the other way around ? Take a look at TStringStream if you want a stream operating on a string. For the purpose of s

Re: [lazarus] ide installation on ubuntu

2007-05-14 Thread Bram Kuijvenhoven
Alvise Nicoletti wrote: The error I'm having it's surely a library name problem: Identifier not found "TMySQL40Connection" (I'm using 40 not 50). I tryed with the code that Bram sent me on the mail next to this one... and I got the same error. Do you get this error from the compiler (CTRL+F9

Re: [lazarus] ide installation on ubuntu

2007-05-14 Thread Bram Kuijvenhoven
Alvise Nicoletti wrote: On windows with a graphical application lazarus created just the commands you wrote there, on linux with a non-graphical application I'm not compiling the same code. With control+space on windows TMySQL50Connection is listed including those units on the "uses" row, on li

Re: [lazarus] ide installation on ubuntu

2007-05-14 Thread Bram Kuijvenhoven
Alvise Nicoletti wrote: How do I use the SQLdb component without graphical interface? I just have to do the same commands without putting the graphical component on the project? You can create the components in code, e.g. Conn := TMySQL50Connection.Create(nil); Qry := TSQLQuery.Create(nil);

Re: [lazarus] Converting Strings to Currency

2007-05-11 Thread Bram Kuijvenhoven
Sébastien TACK wrote: It's a miracle of Oriented Object Progamming ! StrToFloat can take a large type of value Single, Double, Currency. Every method are overload. Overloading methods is something different from polymorphism in object oriented programming (where virtual methods are key in poly

Re: [lazarus] SQLquery

2007-05-03 Thread Bram Kuijvenhoven
Hi Andrea, Andrea Mauri wrote: I am using TSQLquery with a TIBconnection to an interbase database. I have a query like this: select T1.ID, T1.FIELD1, T2.ID, T2.FIELD1 from TABLE1 T1 left join TABLE2 T2 on T1.ID = T2.ID If I use this query with TSQL query I get an error duplicate fieldname ID W

Re: [lazarus] Incompatible types

2007-05-02 Thread Bram Kuijvenhoven
Roland Turcan wrote: CONST MaxBitmaps=129; TYPE TBack =CLASS PRIVATE FBitmaps :ARRAY [0..MaxBitmaps] OF TBitmap; PUBLIC PROPERTY Bitmap :TBitmap READ FBitmaps[0]; PROPERTY LightBitmap :TBitm

Re: [lazarus] Error: Incompatible types

2007-05-02 Thread Bram Kuijvenhoven
Roland Turcan wrote: Hello [EMAIL PROTECTED] Could you help me how to port this part of code into Lazarus from Delphi 7: TYPE TResamplingFilter =(rfBox, rfTriangle, rfHermite, rfBell, rfSpline, rfLanczos3, rfMitchell); TYPE TBitmapFilterFunction =FUNCTION (Value:SINGLE):SINGLE; CONST FilterLi

[lazarus] MouseDown on one control, MouseUp on another

2007-04-25 Thread Bram Kuijvenhoven
Hi! While experimenting with mouse clicks on ListViews, I also found the following: when pressing the left mouse button on one control, but releasing it on another control, Click and MouseUp events are generated differently depending on the Control. For example: When MouseDown was on a Form,

Re: [lazarus] TListView on Win32 - Click event doesn't fire

2007-04-25 Thread Bram Kuijvenhoven
Vincent Snijders wrote: Graeme Geldenhuys schreef: Hi, Can someone confirm this before I submit a Mantis bug report. Clicking on items in a ListView with vsReport style: - If you click on the items 99% of the time the OnClick doesn't fire - Clicking to the left of the last column (black space

Re: [lazarus] TListView on Win32 - Click event doesn't fire

2007-04-24 Thread Bram Kuijvenhoven
Graeme Geldenhuys wrote: Can someone confirm this before I submit a Mantis bug report. Clicking on items in a ListView with vsReport style: - If you click on the items 99% of the time the OnClick doesn't fire - Clicking to the left of the last column (black space) then the OnClick fires every

Re: [lazarus] After compiling and debugging my app, sometimes (randomly) a failure pops up.

2007-04-16 Thread Bram Kuijvenhoven
Pelle ten Cate wrote: Dank je, Marco. Still I don't know how to apply this command, just entering it on the gdb commandline gives me a "Target 'None' cannot support this command.". If I open gdb with the executable filename as first argument, it gives the same error, but then Target 'exec' is me

Re: [lazarus] ActiveX Data Object

2007-04-04 Thread Bram Kuijvenhoven
dayat wrote: yes vincent, that's my intention. forgive I make friends become to confuse. sorry, my english so poor. Thank you for your reply. On 4/3/07, *Vincent Snijders* < [EMAIL PROTECTED] I understood the question in a different way. To use an ODBC connection you need a DSN. W

Re: [lazarus] ActiveX Data Object

2007-04-03 Thread Bram Kuijvenhoven
dayat wrote: I am sorry, its intention make and vanish odbc of comand of freepascal (I hope I more or less understand your question, and that you can understand me) The TODBCConnection component is on the SQLdb tab of the component palette in Lazarus. Drop it on a form just like a TButton. (I

Re: [lazarus] ActiveX Data Object

2007-04-03 Thread Bram Kuijvenhoven
dayat wrote: SQLDB's ODBC very busy to finish the problem of me. otherwise there is a way of is other, how to make and vanish DSN ODBC at windows On the Control Panel (Win 9x/ME) or Control Panel -> Administrative Tools (Win XP) there is a 'Data Sources (ODBC)' item. You can create new DSNs he

Re: [lazarus] PostgreSQL

2007-04-02 Thread Bram Kuijvenhoven
Darmawan Sugiarto wrote: Congratulation Lazarus 9.0.22 is already solve this problem thanks to developer I can confirm the similar problems with MySQL/MyODBC also disappeared in 0.9.22! Great work. Note to self: next time test with trunk version of Laz too :) Regards, Bram

Re: [lazarus] PostgreSQL

2007-03-30 Thread Bram Kuijvenhoven
Joost van der Sluis wrote: On Thu, 2007-03-29 at 14:52 +0200, Bram Kuijvenhoven wrote: Darmawan Sugiarto wrote: It's OK... now I know If I don't have this error if I compile my code in first time... but the second, third, and soon I have this error... So I restart Lazarus and my

Re: [lazarus] PostgreSQL

2007-03-29 Thread Bram Kuijvenhoven
Darmawan Sugiarto wrote: It's OK... now I know If I don't have this error if I compile my code in first time... but the second, third, and soon I have this error... So I restart Lazarus and my code work clearly... If I run my exe (without lazarus) I don't have this error... Hmm, that's intere

Re: [lazarus] Changing TObject

2007-03-20 Thread Bram Kuijvenhoven
Ger Remmers wrote: I would like to add a numeric property, ObjectNumber, to TObject (for my internal use only). This property needs to be read/write and default to 0 (zero). How/where do I go about doing this? Another, more general alternative than using TComponent.Tag: use a separate hash ta

Re: [lazarus] XML and Record type

2007-03-19 Thread Bram Kuijvenhoven
Pieter Valentijn wrote: TJanXml is a opensource XML parcer in Delphi made by Jan Verhoeven He is a Ducth man who inspired me sometime ago to make opensource my self. It is spelled 'parser' with an s :) Bram _ To unsubscribe:

Re: [lazarus] XML and Record type

2007-03-18 Thread Bram Kuijvenhoven
George Lober wrote: A question guys. Are there any utilities/functions out there to convert a pascal record type into XML format and back? Is there such an animal, or am I asking for too much? Not for as far as I known, but I think you could either - use classes with published methods & RTTI;

Re: [lazarus] Illegal Expression -- Exit

2007-03-16 Thread Bram Kuijvenhoven
Jeff Steinkamp wrote: Jeff Steinkamp schreef: Anyone know why I might be getting an Illegal Expression on a line containing the keyword Exit? Can you post a snippet of code? Compiler fails at the Exit keyword. procedure TForm1.SaveAsExecute(Sender: TObject); begin savedialog1.InitialDir

Re: [lazarus] WikiHelp

2007-02-24 Thread Bram Kuijvenhoven
Christian Ulrich wrote: It would be very nice if people could edit documentation in a convenient way such as a wiki; this is an improvement over sending .xml help file patches. On the other hand it is also important that the documentation is correct and coherent, particularly in its role as a

Re: [lazarus] WikiHelp

2007-02-23 Thread Bram Kuijvenhoven
Vincent Snijders wrote: About translations, I always feel awkward reading Dutch translations of programming related documents and most of the time I need to translate them back to English (mentally) to understand them. So as far as I am concerned translating is not necessary. Other people disag

Re: [lazarus] [lazarus-dev] TCanvas.Rectangle

2007-02-16 Thread Bram Kuijvenhoven
Bisma Jayadi wrote: I'm the person who reported the supposed bug. But after the explanation of a peer, i agreed that was a bug/misbehavior of Delphi. So i'm favorable as not considerating as a bug but as a "difference" that should be considered when porting a Delphi app. I think that we should

Re: [lazarus]

2007-01-30 Thread Bram Kuijvenhoven
Hi Arí! 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? Maybe a custom TTreeView d

Re: [lazarus] Password hashing function

2006-11-24 Thread Bram Kuijvenhoven
A.J. Venter wrote: That seemed to work fine - except it turns out that MD5 is even LESS reliable than I thought, at least on small data. I had a bug report (and confirmed it) that you can log into anybody's account if you simply know how many characters his password has. Apparently '123456' g

Re: [lazarus] Object and Class declarations question

2006-09-19 Thread Bram Kuijvenhoven
Juan Martinez wrote: Object and Class declarations are very similar but, are they really the same? My concern is about smart linking. If I use Object instead of Class, will it takes less memory to smart link? I heard that Object is more close to a record than to a Class, is it true? Object

Re: [lazarus] ShowModal implementation (Win32)

2006-08-08 Thread Bram Kuijvenhoven
Christian Budde wrote: I've found a solution, but I'm maybe too stupid to create a patch, so here is the manual patch: Fortunately creating patches isn't as hard is it might seem to be! Assuming you adapted the sources in a local checkout of the SVN repository, run (from the directory where y

Re: [lazarus] Lazarus :Unable to compile latest svn

2006-07-31 Thread Bram Kuijvenhoven
Alexandrov Alexandru wrote: Instead of Math unit, better add a function: function min(i,j: integer): integer; begin Result := i; if j - it is more likely the Math.Min function is optimized (e.g. asmed, inlined) - it is most likely the IDE already uses the Math unit somewhere My conclusion: u

Re: [lazarus] Sqldb ,MySql and Transactions

2006-07-25 Thread Bram Kuijvenhoven
Nataraj S Narayan wrote: I havent succeeded in getting ODBC for MySQL working. But other native SQLDB compos are working for MySql 4.1.1. The following (from your other mail) object MySQL41Connection1: TMySQL41Connection DatabaseName = 'weberp' Password = 'rambo1' UserName = 'ODBC'

Re: [lazarus] Ubuntu installation problems and Sqldb

2006-07-19 Thread Bram Kuijvenhoven
Nataraj S Narayan wrote: Plz suggest me which is the best package to connect to Mysql 4.1.11 server? If the MySQL components don't work for you, you can try the TODBCConnection component. Please note that you need the TODBCConnection.Params property to set connection parameters like 'SERV

Re: [lazarus] odbc, PostgreSQL

2006-07-03 Thread Bram Kuijvenhoven
Zlatko Matić wrote: Could someone send me some screenshots,code or examples showing how to implement ODBC connection with PostgreSQL in Lazarus, on Windows? Thanks in advance, To know which properties the TODBCConnection component supports, look at the comments in the source (they are next to

Re: [lazarus] procedure TObject.Free

2006-06-19 Thread Bram Kuijvenhoven
George Birbilis wrote: If so, what side-effects would this cause when applied across the complete class-hierarchy? Blow up the size of you executable. And a virtual method call is slower than a non-virtual call. (as it needs to do a few lookups: class, VMT) To ensure self is not nil, you can i

Re: [lazarus] procedure TObject.Free

2006-06-19 Thread Bram Kuijvenhoven
George Birbilis wrote: Regarding the stuff I say below though, not sure what "self" contains (at the someClassMethod code body) when you do someInstance.someClassMethod() instead of someClass.someClassMethod(). Does it always contain the class self or the "someInstance"? (be it nil or not). I'

Re: [lazarus] procedure TObject.Free

2006-06-14 Thread Bram Kuijvenhoven
Al Boldi wrote: Bram Kuijvenhoven wrote: function TAncestor.ToStringSafe:string; begin if self=nil then Exit(''); Result:=ToString; // now it's safe to call the virtual method end; Are you sure it's really safe to call? I think so: function ToStringSafe:st

Re: [lazarus] Looking for an expression evaluator

2006-06-11 Thread Bram Kuijvenhoven
Alexandre Leclerc wrote: How would you compare Lua with PascalScript? I was thinking to implement pascal scripting later in my project. I have no actual experience with PascalScript, though I read the webpage on the remobjects website. I also considered PascalScript for my application, but ch

Re: [lazarus] FPC/Lazarus Dynamic/Shared Libraries

2006-06-10 Thread Bram Kuijvenhoven
For the FPC part: [EMAIL PROTECTED] wrote: What is the status of dynamic link libraries/shared objects: 1. Does FPC currently supports loading a shared library and calling a function/procedure from a program ? Yes, - declaring functions/procedures as external 'name_of_dll'; (will create a de

Re: [lazarus] Looking for an expression evaluator

2006-06-10 Thread Bram Kuijvenhoven
Alexandre Leclerc wrote: I'm looking for an expression evaluator that is able of the following (and works under fpc - I tried TExpressionParser from Egbert van Nes but even if it compiles, it doesn't works... unless this is me not using it properly): Recently I've been looking at the scripting

Re: [lazarus] MySQL Date Fields

2006-06-05 Thread Bram Kuijvenhoven
David B Copeland wrote: Does anybody know if there are bugs in running Querys throught ODBC against MySql (4.1) tables with DATE field with a value of 0. I am using Lazarus SVN Revision 9406M with FPC 2.0.2, and when I Open the Query I get the error message "37904-2097-57345 is not a valid date s

Re: [lazarus] procedure TObject.Free

2006-06-05 Thread Bram Kuijvenhoven
erformance penalty if the compiler would insert a non-nil check in every non-virtual method. Allowing nil pointers gives more flexibility to programmers. Bram Kuijvenhoven wrote: Michael Van Canneyt wrote: If so, what side-effects would this cause when applied across the complete class-hie

Re: [lazarus] procedure TObject.Free

2006-06-05 Thread Bram Kuijvenhoven
Michael Van Canneyt wrote: If so, what side-effects would this cause when applied across the complete class-hierarchy? Blow up the size of you executable. And a virtual method call is slower than a non-virtual call. (as it needs to do a few lookups: class, VMT) To ensure self is not nil, yo

Re: [lazarus] SQLDB & postgres

2006-06-04 Thread Bram Kuijvenhoven
Alex du Plessis wrote: Would anybody know why a sqldb query (TSQLQuery) has a problem reading an aggregate field? I cannot get the query to read an aggregate field for love or money. It complanis that it cannot find the fieldname (query.FieldbyName('sum').asInteger) or that the index(query.F

Re: [lazarus] procedure TObject.Free

2006-06-04 Thread Bram Kuijvenhoven
Al Boldi wrote: Mattias Gaertner wrote: Al Boldi <[EMAIL PROTECTED]> wrote: Mattias Gaertner wrote: Al Boldi <[EMAIL PROTECTED]> wrote: Flavio Etrusco wrote: On 6/3/06, Al Boldi wrote: In the fpc-rtl there is something like this: procedure TObject.Free; begin if self<>nil then self.destr

[lazarus] Read Notification Requests

2006-05-09 Thread Bram Kuijvenhoven
Hi, I noticed that recently some people sent emails with Read Confirmation Requests (also called Return Receipts). This is annoying for a mailing list. The problem might be that settings for these requests are usually global (or per-account) in email clients. This can be a problem for people t

Re: [lazarus] ODBC

2006-05-03 Thread Bram Kuijvenhoven
David B Copeland wrote: I've partially solved my problem. I can create a dummy ODBC datasource, then in Lazarus add the real database name to the Params of the ODBCConnection object. I do not exactly understand your original problem, but you surely need to add the database name to TODBCConnect

Re: [lazarus] Identifier Completion problem

2006-04-24 Thread Bram Kuijvenhoven
piltdown wrote: Using Lazarus 0.9.8 when I enter, for example, label1. instead of getting a list of possible completions I get a list of properties and functions followed by a series of vertical lines - and that's it. If I hover the mouse over any of the items a label appears saying "dummy". Ho

Re: [lazarus] Comments about DB2

2006-04-05 Thread Bram Kuijvenhoven
Arí Ricardo Ody wrote: 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)... In order to construct sensible WHERE clauses of UPDATE and DELETE statements, SQLDB needs to know which c

Re: [lazarus] Comments about DB2

2006-04-03 Thread Bram Kuijvenhoven
Joost van der Sluis wrote: It sounds strange to me the phrase "All things above do work", mr. Joost. Would I lose a pointer during the conversations? DB2 is another story as the other natively supported databases (mysql 4.0, 4.1, 5.0, Firebird, PostgreSQL and Oracle). The ODBC-connection is not

Re: [lazarus] Comments about DB2

2006-03-29 Thread Bram Kuijvenhoven
Arí Ricardo Ody wrote: After install the snapshot version I had success in doing a browse in DB2 tables. There was new errors that I report below in the way people can try to fix them: 1. Any update in table(via INSERT, UPDATE or DELETE) generates a empty Message Dialog. I'm talking about an

Re: [lazarus] DB2 (still)

2006-03-28 Thread Bram Kuijvenhoven
Michael Van Canneyt wrote: On Tue, 28 Mar 2006, Arí Ricardo Ody wrote: Will someone of you try to solve the DB2 trouble that we discussed here? We need to apply the patch first. I do not oppose against applying the patch :), but I already pointed out the issue itself should already be resol

Re: [lazarus] Unknown DB2 field type

2006-03-27 Thread Bram Kuijvenhoven
Bram Kuijvenhoven wrote: Or, Arí has an older odbcconn, where SQL_TIMESTAMP was mapped to ftTimeStamp, which in turn has no FieldClass associated with it, giving, on closer inspection, the same error -- 'Unknown field type'!. In a private mail, Arí told me he has Lazarus 0.9.12.

Re: [lazarus] Unknown DB2 field type

2006-03-27 Thread Bram Kuijvenhoven
Arí Ricardo Ody wrote: First, thaks to everyone that post msgs trying to answer my questions. I have a weak skill in Lazarus/Pascal if compared with people like you. I can't understand why you don't solve the trouble instead of try to send the correct msg error. As John suggested, I don't ha

Re: [lazarus] Unknown DB2 field type

2006-03-25 Thread Bram Kuijvenhoven
Michael Van Canneyt wrote: Looking in the ODBCConnection, I would suppose that the DB2 Timestamp is translated to SQL_TYPE_UTCDATETIME: SQL_TYPE_UTCDATETIME:FieldType:=ftUnknown; SQL_TYPE_UTCTIME: FieldType:=ftUnknown; As you can see, they are not recignized by the ODBC connection

Re: [lazarus] Unknown DB2 field type

2006-03-25 Thread Bram Kuijvenhoven
Bram Kuijvenhoven wrote: I'll be right back with a version of odbcconn that tries giving a more meaningful error using the sqlGetTypeInfo API call. Arí can also use this to give us more information, that can help us finding out what is actually going wrong. Here's the patch. od

Re: [lazarus] Unknown DB2 field type

2006-03-25 Thread Bram Kuijvenhoven
Bram Kuijvenhoven wrote: Michael Van Canneyt wrote: Looking in the ODBCConnection, I would suppose that the DB2 Timestamp is translated to SQL_TYPE_UTCDATETIME: SQL_TYPE_UTCDATETIME:FieldType:=ftUnknown; SQL_TYPE_UTCTIME: FieldType:=ftUnknown; I guess that at the moment I wrote

Re: [lazarus] Unknown DB2 field type

2006-03-25 Thread Bram Kuijvenhoven
Michael Van Canneyt wrote: > Ok, so first of all the error message is somehow wrongly formatted, instead of giving the ODBC field type, it only contains the field name (it must do that too, of course), but fails to return the actual 'unrecognized' field type. Looking in the ODBCConnection, I wou

Re: [lazarus] TMySQLDatabase and TMySQLDataset

2006-03-09 Thread Bram Kuijvenhoven
Panagiotis Sidiropoulos wrote: After testing sqldb and could not make it work for me, I installed and try with TMySQLDatabase and TMySQLDataset found in lazarus/components/mysql folder. Proper package version installed related to Mysql server version. TMySQLDatabase succesfuly connect to the ser

Re: [lazarus] Showing URL in default browser

2006-02-22 Thread Bram Kuijvenhoven
Felipe Monteiro de Carvalho wrote: You don't need a Firefox API to do this. Just send the shell command: "mozilla-firefox www.google.com" and if firefox is already open, it will open the page without opening a new instance. I tested here, try on your command line with firefox already open. If you

Re: [lazarus] Using SqlDb

2006-02-19 Thread Bram Kuijvenhoven
SteveG wrote: Could anyone tell me what I am doing wrong with the following line SqlD := TSqlConnection.Create( NIL ); - generates -> Warning: Constructing a class "TSQLConnection" with abstract methods I am using (trying to anyway) the SqlDb unit directly, not as an installed component (no

Re: [lazarus] SQLdb bug

2006-02-06 Thread Bram Kuijvenhoven
Alexander Todorov wrote: I am using SQLdb 1.0 / Lazarus 0.9.8 / FPC 2.0.1 on Windows XP with Firebird 1.5 database. When a statement like INSERT INTO TEST (ID, DATAFIELD) VALUES (1, 'this :is a :test') is executed i get an error. The problem is that values after the colon ':' characters are parse

[lazarus] Cursor problems not entirely fixed (bug #1525)

2005-12-19 Thread Bram Kuijvenhoven
Hi, There are still some problem with the text cursor in the Source Editor. (see bug http://www.lazarus.freepascal.org/mantis/view.php?id=1525) When e.g. scrolling with the mouse wheel, the cursor isn't moved with the text, but remains at the same position in the screen. When typing or moving

Re: [lazarus] Re: About PSQL (Sqldb package) Components

2005-12-06 Thread Bram Kuijvenhoven
Prof. Paulo Amaral wrote: By the way, I write the data using the following code in the event "after post": begin SQLQuery1.ApplyUpdates; SQLTransaction1.Commit; //In this moment, after commit, the query is closed !!!? SQLQuery1.active:=true;//So, I have open it !!!? This does to

Re: [lazarus] Re: About PSQL (Sqldb package) Components

2005-12-05 Thread Bram Kuijvenhoven
Prof. Paulo Amaral wrote: The problem is that these examples use "select" for ends of exhibition and navigation of data in forms with dbedits, dbnavigator, etc. The "update" or "insert" use with DbAware controls does not have example showing. When you edit and write a register using dbnavigato

Re: [lazarus] Why are the generated binaries so big?

2005-11-15 Thread Bram Kuijvenhoven
Vincent Snijders wrote: Jani Mátyás wrote: I think someone who can edit the FAQ on the lazarus website should add this to the FAQ, just to avoid these questions. Thanks. Feel free to update: http://wiki.lazarus.freepascal.org/index.php/Lazarus_Faq#General I think it should not be mentioned

Re: [lazarus] Some questions about TForm.Height

2005-10-20 Thread Bram Kuijvenhoven
Tim Laurent wrote: What about creating a window *without* a title bar first, then adding a title bar to it and interpret the height difference as the height of the title bar? I think this could even be done offscreen and Lazarus could do that during startup ... Lol :) You must be kidding :)

Re: [lazarus] Suggestion: Wiki for Error Messages

2005-09-07 Thread Bram Kuijvenhoven
Luis Francisco Araya wrote: Florian Köberle wrote: What do you think about using a wiki for explaining what a error message means. These pages are then called when the user press F1 in the error message window. I think it is a good idea, maybe something like www.php.net when they explain wha

Re: [lazarus] Suggestion: Wiki for Error Messages

2005-09-07 Thread Bram Kuijvenhoven
Felipe Monteiro de Carvalho wrote: I´ve just seen that lazde is only for the LCL Documentation. So this seams to be the case of creating a new wiki page. It is not only for the LCL, but it can be used for documenting any pascal program of unit. LazDE (residing in the doceditor subdirectory on

Re: [lazarus] Embedded Mozilla

2005-09-06 Thread Bram Kuijvenhoven
John Jewitt wrote: I've written a Delphi 3 application that uses Active X to control MS IE from within a form. I'd like to port it to Lazarus/Linux/Mozilla but I am unsure where to start. I've looked at gtkmozembed on the Mozilla site but it has not helped much as I'm unsure how to use a GT

Re: [lazarus] Database project not running under lazarus-w32

2005-08-15 Thread Bram Kuijvenhoven
Uwe Grauer wrote: Maybe this helps? Here is my debug window: (from Lazarus, I assume?) <-gdb-set env ALLUSERSPROFILE=C:\Documents and Settings\All Users> ^done It seems your Lazarus version does set Environmental variables correctly? <-data-evaluate-expression FPC_THREADVAR_RELOCATE_PROC>

Re: [lazarus] Database project not running under lazarus-w32

2005-08-15 Thread Bram Kuijvenhoven
Uwe Grauer wrote: Yes, i'm using Firebird. It crashes when running under gdb. Even in a small Firebird app? I don't have a Firebird db running at the time, nor do I have Lazarus compiled with the sqldblaz package. So it would take some effort to test your program. I hope you can find the caus

Re: [lazarus] Database project not running under lazarus-w32

2005-08-15 Thread Bram Kuijvenhoven
Uwe Grauer wrote: Would it help finding a solution of my debugging problem if i post some code? That can help, but please first reduce as much as possible the amount of code in which the problem still occurs. Also note that we don't have your database running... Bram ___

Re: [lazarus] Database project not running under lazarus-w32

2005-08-15 Thread Bram Kuijvenhoven
Uwe Grauer wrote: Standalone my program runs ok, under gdb it crashes. My program runs fine when run from gdb. So it seems your programs crashes for another reason than the failure of the mysqltest program. BTW what command line options does Lazarus pass to gdb? Perhaps you can also try anot

Re: [lazarus] Database project not running under lazarus-w32

2005-08-14 Thread Bram Kuijvenhoven
Uwe Grauer wrote: There was no reply for my question. So i will ask again. If i run my Database Application stand alone, it works OK. If running under lazarus, it is freezing (Program doesn't respond any more) What could be the reason? My first thought: Does your program also crash when you run

Re: [lazarus] OnCreate of MainForm not called after Application.CreateForm

2005-08-08 Thread Bram Kuijvenhoven
Tom Verhoeff wrote: Is there a good&easy way to keep two FPC versions next to each other? There is, as Vincent explains. You should however keep in mind to compile your Lazarus (or in fact the LCL) with the same compiler as your project (that uses the LCL), or you will probably get an error l

Re: [lazarus] Eclipse

2005-08-06 Thread Bram Kuijvenhoven
L505 wrote: I still don't know what it is though. I've always wondered what that thing was. I've heard people using it and say it's great. But for their marketing and sales section (lol), they desparately need some screenshots on the front page, because I can't figure out what it is. The followi