Re: [Lazarus] command line options

2008-05-28 Thread Mattias Gaertner
On Wed, 28 May 2008 16:55:39 -0700 el stamatakos <[EMAIL PROTECTED]> wrote: > > Hi, > I would like my application to understand command line options. For > example if I type in gedit my app creates some error message if I > enter gedit -test it opens the app. Any ideas? Thanks ErrMsg:=Applica

Re: [Lazarus] PostgreSQL database connection error

2008-05-28 Thread Mattias Gaertner
On Thu, 29 May 2008 05:04:12 +0800 peng <[EMAIL PROTECTED]> wrote: > Thank you, Michael, in accordance with your recommendations, has been > successfully connected! However, some new problems, form In Chinese > characters appear garbled. Details are as follows: > > 1, Lazarus new form, from 'sqld

Re: [Lazarus] External: SIGSEGV

2008-05-28 Thread Mattias Gaertner
On Wed, 28 May 2008 21:41:35 +0200 <[EMAIL PROTECTED]> wrote: > > > Did you tried to compile program and run outside of the IDE ? Still > > crashing ? > > > Yes. The same exception every time. > > My guess is that the compiler used the object in the "with" line > instead of the the object it s

[Lazarus] command line options

2008-05-28 Thread el stamatakos
Hi, I would like my application to understand command line options. For example if I type in gedit my app creates some error message if I enter gedit -test it opens the app. Any ideas? Thanks___ Lazarus mailing list Lazarus@lazarus.freepascal.org http

Re: [Lazarus] 0011231: FilelistBox shows Russian letters in file names wrongly

2008-05-28 Thread Graeme Geldenhuys
On 28/05/2008, Andrey Gusev <[EMAIL PROTECTED]> wrote: > > Not, without DisableWindowsUnicodeSupport FileListBox shows russian > rightly. > But, without DisableWindowsUnicodeSupport, the IDE editor works wrongly, > that is the other problem... > I'm not sure if this is a similar issue to what w

Re: [Lazarus] PostgreSQL database connection error

2008-05-28 Thread Michael Van Canneyt
On Thu, 29 May 2008, peng wrote: > Thank you, Michael, in accordance with your recommendations, has been > successfully connected! However, some new problems, form In Chinese > characters appear garbled. Details are as follows: > > 1, Lazarus new form, from 'sqldb' tab, add the three essential

Re: [Lazarus] PostgreSQL database connection error

2008-05-28 Thread peng
Thank you, Michael, in accordance with your recommendations, has been successfully connected! However, some new problems, form In Chinese characters appear garbled. Details are as follows: 1, Lazarus new form, from 'sqldb' tab, add the three essential components, set up a number of attributes. 2,

Re: [Lazarus] Cross-compile on Linux from 32bits to 64bits

2008-05-28 Thread Marco van de Voort
On Sun, May 25, 2008 at 01:13:36PM +0200, Mattias Gaertner wrote: > > > > I'm using a 32 bits Linux system to developp and i want my > > > > program to be 64 Bits compatible. > > > > What is the best method to allow my program to be compatible on > > > > 32 And 64 bits ? > > > > > > See FPC mailin

Re: [Lazarus] 0011231: FilelistBox shows Russian letters in file names wrongly

2008-05-28 Thread Vincent Snijders
Andrey Gusev schreef: > * Vincent Snijders <[EMAIL PROTECTED]> [Wed, 28 May 2008 16:07:28 > +0200]: >> If you use the fpc 2.2.1 or fpc 2.3.1 snapshot (without recompiling to >> disbale unicode support), is it broken too? If so, then you can reopen > the >> issue. > > Not, without DisableWindowsU

Re: [Lazarus] Inactive Dataset

2008-05-28 Thread Jalal
123555 Dave Coventry, > As does explicitly using "SQLQuery.Close" prior to opening the Query. :( I suggest you use SQLQuery.Active := True (or False) instead of Open and Close. > Alternatively, is there another way of extracting the information? If you don't need the db-aware visual controls

Re: [Lazarus] External: SIGSEGV

2008-05-28 Thread cc_
> Did you tried to compile program and run outside of the IDE ? Still > crashing ? Yes. The same exception every time. My guess is that the compiler used the object in the "with" line instead of the the object it should have used within the block. The referenced property in the first object

Re: [Lazarus] Postgres database again...

2008-05-28 Thread Horacio Jamilis
This is the unit I use for this. Hope it´s usefull for you. Horacio Graeme Geldenhuys escribió: 2008/5/28 Bogusław Brandys <[EMAIL PROTECTED]>: "straight GUIDs (e.g. generated by Delphi written application) has their significant part at the end which does not provide for optimal indexing.

Re: [Lazarus] PostgreSQL database connection error

2008-05-28 Thread Damien Gerard
Le May 28, 2008 à 9:38 PM, Michael Van Canneyt a écrit : > > > On Thu, 29 May 2008, peng wrote: > >> Hellow everyone: >> >> I encountered an error when Postgresql in connection with Lazarus, >> as >> follows. >> >> My environment is window xp Chinese , the installation of the >> Lazzrus 0.92

Re: [Lazarus] PostgreSQL database connection error

2008-05-28 Thread Michael Van Canneyt
On Thu, 29 May 2008, peng wrote: > Hellow everyone: > > I encountered an error when Postgresql in connection with Lazarus, as > follows. > > My environment is window xp Chinese , the installation of the Lazzrus 0.924 > and Postgresql 8.3 . Lazarus can run and compile unit, the Postgresql can

Re: [Lazarus] External: SIGSEGV

2008-05-28 Thread Bogusław Brandys
[EMAIL PROTECTED] wrote: > Thanks to All of You who have tried to help!. > > > > I have located the problem and found a solution, but was not able to > reproduce it yet in a separate test app. > > > > > > The structure of the code looked like this: > > > > MyObj = class; > > private >

[Lazarus] PostgreSQL database connection error

2008-05-28 Thread peng
Hellow everyone: I encountered an error when Postgresql in connection with Lazarus, as follows. My environment is window xp Chinese , the installation of the Lazzrus 0.924 and Postgresql 8.3 . Lazarus can run and compile unit, the Postgresql can use pgadmin III visit. I created an data table "x

Re: [Lazarus] Inactive Dataset

2008-05-28 Thread Graeme Geldenhuys
2008/5/28 Juan Cortés Cuesta <[EMAIL PROTECTED]>: > I Pasted your code in my Lazarus' Text Editor > I think the error is in the Query. > Try with: > > SQLQuery1.SQL.Text:='SELECT enquiryreferencenumber FROM > registration WHERE fname=' + #39 + fname.Text+ #39 + ' AND > sname=' + #39 +sname.T

Re: [Lazarus] rev 15229 and form parsing

2008-05-28 Thread Mattias Gaertner
On Wed, 28 May 2008 11:44:45 -0500 (CDT) Jesus Reyes <[EMAIL PROTECTED]> wrote: > > --- Mattias Gärtner <[EMAIL PROTECTED]> escribió: > > > Zitat von Jesus Reyes <[EMAIL PROTECTED]>: > > > > >[...] > > > Fixed in 15264, in my opinion Filer.Ancestor should have ancestor > > of > > > component be

Re: [Lazarus] rev 15229 and form parsing

2008-05-28 Thread Jesus Reyes
--- Mattias Gärtner <[EMAIL PROTECTED]> escribió: > Zitat von Jesus Reyes <[EMAIL PROTECTED]>: > > >[...] > > Fixed in 15264, in my opinion Filer.Ancestor should have ancestor > of > > component being streamed, instead it has ancestor's form, I made > sure > > ancestor is a compatible grid. > >

[Lazarus] Fw: External: SIGSEGV

2008-05-28 Thread cc_
For some reason the linespacing was doubled after pasting the text of the e-mail (from Word) through the clipboard. The structure of the code looked like this: T_Main = class(TForm); ... private Obj1: TOtherObj; Obj2: TOtherObj; . . . end; procedure T_Main.Button1Click(Sender: TObject);

Re: [Lazarus] External: SIGSEGV

2008-05-28 Thread cc_
Thanks to All of You who have tried to help!. I have located the problem and found a solution, but was not able to reproduce it yet in a separate test app. The structure of the code looked like this: MyObj = class; private Obj1: TOtherObj; Obj2: TOtherObj; . . . end; proce

Re: [Lazarus] 0011231: FilelistBox shows Russian letters in file names wrongly

2008-05-28 Thread Andrey Gusev
* Vincent Snijders <[EMAIL PROTECTED]> [Wed, 28 May 2008 16:07:28 +0200]: > If you use the fpc 2.2.1 or fpc 2.3.1 snapshot (without recompiling to > disbale unicode support), is it broken too? If so, then you can reopen the > issue. Not, without DisableWindowsUnicodeSupport FileListBox shows rus

Re: [Lazarus] Inactive Dataset

2008-05-28 Thread Juan Cortés Cuesta
Hi! I Pasted your code in my Lazarus' Text Editor I think the error is in the Query. Try with: SQLQuery1.SQL.Text:='SELECT enquiryreferencenumber FROM registration WHERE fname=' + #39 + fname.Text+ #39 + ' AND sname=' + #39 +sname.Text+ #39 + ' ORDER BY enquiryreferencenumber DESC LIMIT 1

Re: [Lazarus] Inactive Dataset

2008-05-28 Thread Dave Coventry
Marc, Thanks very much for looking at the code. My fault, the above example is a cut and paste from the original code and my cutting knife must have slipped! In any case, the SQLQuery1.SQL.Text is not overwirrten in my code. :) On Wed, May 28, 2008 at 4:21 PM, Marc Santhoff <[EMAIL PROTECTED]>

Re: [Lazarus] Inactive Dataset

2008-05-28 Thread Marc Santhoff
Hi, I'm not really sure if this is a c&p-error or the like, but ... Am Mittwoch, den 28.05.2008, 10:32 +0200 schrieb Dave Coventry: > Sorry, > > I should have been more specific > > SQLQuery1.SQL.Text:='SELECT fname, > sname,id,comboboxcourse,studentnumber,enquirydate,enquiryreferencenumber

Re: [Lazarus] Inactive Dataset

2008-05-28 Thread Dave Coventry
Joost, Michael, Will it take long to fix? (are we talking a quick patch, or three weeks work?) I was supposed to demonstrate my app yesterday and had managed to get a bit of a dispensation because I was so close. However, I think they will probably drop my project if I can't demonstrate it today

Re: [Lazarus] 0011231: FilelistBox shows Russian letters in file names wrongly

2008-05-28 Thread Vincent Snijders
Andrey Gusev schreef: > Question to Vincent Snijders: > Why you hasten to close #11231 issue, in fact the problem is not solved > !? It is closed, because it won't be fixed, not because it solved. > > On my localized XP SP2 box FileListBox works wrongly. > That even without DisableWindowsUnicod

Re: [Lazarus] Inactive Dataset

2008-05-28 Thread Dave Coventry
On Wed, May 28, 2008 at 3:37 PM, Graeme Geldenhuys <[EMAIL PROTECTED]> wrote: > If you go > > Query.Last; // <<--- New line > Query.First; > > Does it give an error on the call to Last? Yes. The error is on last. Michael, It would be very kind of you if you could email them to me as you off

[Lazarus] 0011231: FilelistBox shows Russian letters in file names wrongly

2008-05-28 Thread Andrey Gusev
Question to Vincent Snijders: Why you hasten to close #11231 issue, in fact the problem is not solved !? On my localized XP SP2 box FileListBox works wrongly. That even without DisableWindowsUnicodeSupport using. Font.charset settings and font turning is helpless. As i understand it, r14961 solve

Re: [Lazarus] Inactive Dataset

2008-05-28 Thread Graeme Geldenhuys
If you go Query.Last; // <<--- New line Query.First; Does it give an error on the call to Last? Graeme. 2008/5/28 Dave Coventry <[EMAIL PROTECTED]>: > Alternatively, is there another way of extracting the information? > > On Wed, May 28, 2008 at 3:25 PM, Dave Coventry <[EMAIL PROTECTED

Re: [Lazarus] Inactive Dataset

2008-05-28 Thread Michael Van Canneyt
On Wed, 28 May 2008, Dave Coventry wrote: > Joost, Michael, > > Will it take long to fix? (are we talking a quick patch, or three weeks work?) > > I was supposed to demonstrate my app yesterday and had managed to get > a bit of a dispensation because I was so close. > > However, I think they

Re: [Lazarus] Inactive Dataset

2008-05-28 Thread Dave Coventry
Alternatively, is there another way of extracting the information? On Wed, May 28, 2008 at 3:25 PM, Dave Coventry <[EMAIL PROTECTED]> wrote: > Joost, Michael, > > Will it take long to fix? (are we talking a quick patch, or three weeks work?) > > I was supposed to demonstrate my app yesterday and h

Re: [Lazarus] Postgres database again...

2008-05-28 Thread Graeme Geldenhuys
2008/5/28 Marc Santhoff <[EMAIL PROTECTED]>: > > This is where the low-high-scheme may be a good approach. > > Get the high part from the key server at startup or when needed because > the lower part space is exhausted once and add a timestamp for the lower > part on every new key. That way the id

Re: [Lazarus] Inactive Dataset

2008-05-28 Thread Michael Van Canneyt
On Wed, 28 May 2008, Dave Coventry wrote: > On Wed, May 28, 2008 at 2:15 PM, Michael Van Canneyt > <[EMAIL PROTECTED]> wrote: > > Do you know at which line of your code the error occurs ? > > (add writeln()) statements or so...) > > Hi Michael, > > I put a breakpoint in and the error occurs w

Re: [Lazarus] Inactive Dataset

2008-05-28 Thread Dave Coventry
On Wed, May 28, 2008 at 2:15 PM, Michael Van Canneyt <[EMAIL PROTECTED]> wrote: > Do you know at which line of your code the error occurs ? > (add writeln()) statements or so...) Hi Michael, I put a breakpoint in and the error occurs when the code gets to "SQLQuery1.First;" _

Re: [Lazarus] Inactive Dataset

2008-05-28 Thread Dave Coventry
A Clue! Previously I had this code: SQLQuery1.SQL.Text:='SELECT enquiryreferencenumber FROM registration WHERE fname='''+fname.Text+''' AND sname='''+sname.Text+'''ORDER BY enquiryreferencenumber DESC LIMIT 1;'; SQLQuery1.Open; enquiryreferencenumber.Text:=SQLQuery1.FieldByName

Re: [Lazarus] Postgres database again...

2008-05-28 Thread Marc Santhoff
Am Mittwoch, den 28.05.2008, 12:15 +0200 schrieb Graeme Geldenhuys: > 2008/5/28 Graeme Geldenhuys <[EMAIL PROTECTED]>: > > 2008/5/28 Bogusław Brandys <[EMAIL PROTECTED]>: > >> "straight GUIDs (e.g. generated by Delphi written application) has their > >> significant part at the end which does not pr

Re: [Lazarus] CodeTools doesn't look in the project's search path

2008-05-28 Thread Tobias Giesen
> You probably forgot to add /code07/SuperFlexibleSynchronizer/SyncKernel/ > to the project's search path. No, the search path is correct. But well I understand things better now and maybe I can find the cause myself now. Thanks for all the help! Lazarus is truly fascinating! Cheers, Tobias

Re: [Lazarus] Inactive Dataset

2008-05-28 Thread Michael Van Canneyt
On Wed, 28 May 2008, Dave Coventry wrote: > On Wed, May 28, 2008 at 10:45 AM, Graeme Geldenhuys > <[EMAIL PROTECTED]> wrote: > > You forgot the line: > > SQLQuery1.Next; > > So I did! > > However, putting it back in still gives me the same error. > > As does explicitly using "SQLQuery.Close

Re: [Lazarus] Inactive Dataset

2008-05-28 Thread Dave Coventry
On Wed, May 28, 2008 at 10:45 AM, Graeme Geldenhuys <[EMAIL PROTECTED]> wrote: > You forgot the line: > SQLQuery1.Next; So I did! However, putting it back in still gives me the same error. As does explicitly using "SQLQuery.Close" prior to opening the Query. :(

Re: [Lazarus] SQLQuery1: Field not Found: "enquiryreferencenumber"

2008-05-28 Thread Dave Coventry
Hi Joost, On Wed, May 28, 2008 at 10:46 AM, Joost van der Sluis <[EMAIL PROTECTED]> wrote: > And which version of fpc are you using? It could be a releaf if you use > a recent 2.2.1 snapshot. I'm using fpc 2.2.0. Do you think that might be the cause? __

Re: [Lazarus] CodeTools doesn't look in the project's search path

2008-05-28 Thread Mattias Gärtner
Zitat von Tobias Giesen <[EMAIL PROTECTED]>: > Hi, > > OK when I add the unit to the Project, it works much better. > > I don't have to add all units that need to be found by CodeTools, I > just need to add the units in which I work and from which I look for > symbols. > > But still, if CodeTools

Re: [Lazarus] CodeTools doesn't look in the project's search path

2008-05-28 Thread Mattias Gärtner
Zitat von Tobias Giesen <[EMAIL PROTECTED]>: > > Which unit A does not find which other unit B? > > OK I am in the editor and working on unit > /code07/SuperFlexibleSynchronizer/SyncKernel/SyncMainFormBase.pas > > The "Unit Paths" field in File Settings is totally empty. What should > I find there

Re: [Lazarus] Postgres database again...

2008-05-28 Thread Michael Van Canneyt
On Wed, 28 May 2008, Graeme Geldenhuys wrote: > 2008/5/28 Graeme Geldenhuys <[EMAIL PROTECTED]>: > > 2008/5/28 Bogusław Brandys <[EMAIL PROTECTED]>: > >> "straight GUIDs (e.g. generated by Delphi written application) has their > >> significant part at the end which does not provide for optimal i

Re: [Lazarus] CodeTools doesn't look in the project's search path

2008-05-28 Thread Tobias Giesen
Hi, OK when I add the unit to the Project, it works much better. I don't have to add all units that need to be found by CodeTools, I just need to add the units in which I work and from which I look for symbols. But still, if CodeTools could just use the main Project path even if it doesn't know

Re: [Lazarus] CodeTools doesn't look in the project's search path

2008-05-28 Thread Tobias Giesen
> Which unit A does not find which other unit B? OK I am in the editor and working on unit /code07/SuperFlexibleSynchronizer/SyncKernel/SyncMainFormBase.pas The "Unit Paths" field in File Settings is totally empty. What should I find there? I am clicking on a symbol and then the cursor jumps to

Re: [Lazarus] Postgres database again...

2008-05-28 Thread Graeme Geldenhuys
2008/5/28 Graeme Geldenhuys <[EMAIL PROTECTED]>: > 2008/5/28 Bogusław Brandys <[EMAIL PROTECTED]>: >> "straight GUIDs (e.g. generated by Delphi written application) has their >> significant part at the end which does not provide for optimal indexing. Use >> of the UDF generating UUID (reverse GUID)

Re: [Lazarus] CodeTools doesn't look in the project's search path

2008-05-28 Thread Mattias Gärtner
Zitat von Tobias Giesen <[EMAIL PROTECTED]>: > > It's not good practice to indirectly use units (not part of you > > project). Otherwise, how would the compiler know if that unit had > > changed since the previous compile. > > That's actually not true. The FPC checks and finds all units and > comp

Re: [Lazarus] Postgres database again...

2008-05-28 Thread Graeme Geldenhuys
2008/5/28 Bogusław Brandys <[EMAIL PROTECTED]>: > "straight GUIDs (e.g. generated by Delphi written application) has their > significant part at the end which does not provide for optimal indexing. Use > of the UDF generating UUID (reverse GUID) is said to improve performance > over the PK dramatic

Re: [Lazarus] CodeTools doesn't look in the project's search path

2008-05-28 Thread Tobias Giesen
> It's not good practice to indirectly use units (not part of you > project). Otherwise, how would the compiler know if that unit had > changed since the previous compile. That's actually not true. The FPC checks and finds all units and compares their checksums and determines if a recompile is ne

Re: [Lazarus] CodeTools doesn't look in the project's search path

2008-05-28 Thread Tobias Giesen
> Probably you forgot to add the unit to the project. I don't want to add all units to the project. Why can't CodeTools just search the complete project's search path? They do not do it. I am using a lot of third party code libraries but I construct the components at run time, so I don't see any

Re: [Lazarus] What is 'Restriction Browser'?

2008-05-28 Thread Graeme Geldenhuys
2008/5/28 Vincent Snijders <[EMAIL PROTECTED]>: > > It is not your issue, so you cannot tell if it should be reopened or closed. > If it > is has been reopened by the reporter, then you can add your findings. I agree with 'closed', but not with 'reopened'. I do test selected bug reports from othe

Re: [Lazarus] Postgres database again...

2008-05-28 Thread Bogusław Brandys
Graeme Geldenhuys wrote: > 2008/5/28 Bogusław Brandys <[EMAIL PROTECTED]>: > > Thanks for the information. > > >> "As you are transforming your GUID, try to keep the least volatile bytes at >> the front and the most volatile at the end. Firebird uses prefix >> compression in its indexes and the

Re: [Lazarus] CodeTools doesn't look in the project's search path

2008-05-28 Thread Graeme Geldenhuys
2008/5/28 Tobias Giesen <[EMAIL PROTECTED]>: >> If the units are part of your project or part of a Package which is a >> requirement of your project, CodeTools will automatically find those >> units. > > I see, but that is not enough for me. I need the whole Project's search > path to be searched.

Re: [Lazarus] Postgres database again...

2008-05-28 Thread Michael Van Canneyt
On Wed, 28 May 2008, Graeme Geldenhuys wrote: > 2008/5/28 Bogusław Brandys <[EMAIL PROTECTED]>: > > Thanks for the information. > > > > "As you are transforming your GUID, try to keep the least volatile bytes at > > the front and the most volatile at the end. Firebird uses prefix > > compres

Re: [Lazarus] CodeTools doesn't look in the project's search path

2008-05-28 Thread Vincent Snijders
Tobias Giesen schreef: >> If the units are part of your project or part of a Package which is a >> requirement of your project, CodeTools will automatically find those >> units. > > I see, but that is not enough for me. I need the whole Project's search > path to be searched. Otherwise I would hav

Re: [Lazarus] What is 'Restriction Browser'?

2008-05-28 Thread Vincent Snijders
Graeme Geldenhuys schreef: > 2008/5/28 Marc Weustink <[EMAIL PROTECTED]>: >>> Note: >>> It's very annoying that you cannot post a note to a 'resolved' item >>> in Mantis!!! Is there any way to lift this restriction? >> With what use ? Big chance that it won't be read. > > Wouldn't they get the

Re: [Lazarus] Postgres database again...

2008-05-28 Thread Graeme Geldenhuys
2008/5/28 Bogusław Brandys <[EMAIL PROTECTED]>: Thanks for the information. > "As you are transforming your GUID, try to keep the least volatile bytes at > the front and the most volatile at the end. Firebird uses prefix > compression in its indexes and the saving in space on the index pages >

Re: [Lazarus] rev 15229 and form parsing

2008-05-28 Thread Mattias Gärtner
Zitat von Jesus Reyes <[EMAIL PROTECTED]>: >[...] > Fixed in 15264, in my opinion Filer.Ancestor should have ancestor of > component being streamed, instead it has ancestor's form, I made sure > ancestor is a compatible grid. Can you elaborate more on this? Ancestor is only available during write

Re: [Lazarus] What is 'Restriction Browser'?

2008-05-28 Thread Mattias Gärtner
Zitat von Bogusław Brandys <[EMAIL PROTECTED]>: > Graeme Geldenhuys wrote: > > [ forward ]-- > > > > http://bugs.freepascal.org/view.php?id=1188 > > > > Reported By:Go

Re: [Lazarus] Inactive Dataset

2008-05-28 Thread Graeme Geldenhuys
2008/5/28 Dave Coventry <[EMAIL PROTECTED]>: > > SQLQuery1.SQL.Text:='SELECT fname, > sname,id,comboboxcourse,studentnumber,enquirydate,enquiryreferencenumber > from registration WHERE fname=''Dave'''; > StringGrid1.RowCount:=2; > SQLQuery1.SQL.Text:=sqlq; > SQLQuery1.Open; > SQLQuery1.First; >

Re: [Lazarus] SQLQuery1: Field not Found: "enquiryreferencenumber"

2008-05-28 Thread Joost van der Sluis
Op woensdag 28-05-2008 om 06:02 uur [tijdzone +0200], schreef Dave Coventry: > Hi. > > Following Damien's instructions I have DROPped my original table and > created a new one in it's place: > > CREATE table registration ( > fname char(50), > sname char(50), > enquiryreferencenumber INT4 PRIMARY

Re: [Lazarus] What is 'Restriction Browser'?

2008-05-28 Thread Graeme Geldenhuys
2008/5/28 Bogusław Brandys <[EMAIL PROTECTED]>: > > It's here in IDE .It's new feature - a list of unsupported topics per OS > inside Lazarus LCL and widgetset. > View->Restriction browser Ah, I never noticed it. :-) Thanks! PS: Mac's widgetset sure has a lot of restrictions!! Regards, - Gr

Re: [Lazarus] CodeTools doesn't look in the project's search path

2008-05-28 Thread Tobias Giesen
> If the units are part of your project or part of a Package which is a > requirement of your project, CodeTools will automatically find those > units. I see, but that is not enough for me. I need the whole Project's search path to be searched. Otherwise I would have to add about 300 units to my p

Re: [Lazarus] CodeTools doesn't look in the project's search path

2008-05-28 Thread Mattias Gärtner
Zitat von Tobias Giesen <[EMAIL PROTECTED]>: > Hello, > > two questions: do I really need to copy the project's search paths into > the separate CodeTools dialog so that my units are found? Who told you that? Don't add anything to the Codetools dialog path unless you have hundreds of Delphi packa

Re: [Lazarus] Inactive Dataset

2008-05-28 Thread Michael Van Canneyt
On Wed, 28 May 2008, Dave Coventry wrote: > Sorry, > > I should have been more specific > > SQLQuery1.SQL.Text:='SELECT fname, > sname,id,comboboxcourse,studentnumber,enquirydate,enquiryreferencenumber > from registration WHERE fname=''Dave'''; Are you sure the query is closed at this poi

Re: [Lazarus] What is 'Restriction Browser'?

2008-05-28 Thread Graeme Geldenhuys
2008/5/28 Marc Weustink <[EMAIL PROTECTED]>: >> Note: >> It's very annoying that you cannot post a note to a 'resolved' item >> in Mantis!!! Is there any way to lift this restriction? > > With what use ? Big chance that it won't be read. Wouldn't they get the notification emails? eg: I get not

Re: [Lazarus] Inactive Dataset

2008-05-28 Thread Dave Coventry
Sorry, I should have been more specific SQLQuery1.SQL.Text:='SELECT fname, sname,id,comboboxcourse,studentnumber,enquirydate,enquiryreferencenumber from registration WHERE fname=''Dave'''; StringGrid1.RowCount:=2; SQLQuery1.SQL.Text:=sqlq; SQLQuery1.Open; SQLQuery1.First; while not

Re: [Lazarus] Postgres database again...

2008-05-28 Thread Bogusław Brandys
Graeme Geldenhuys wrote: > Joao Morais wrote: nightmare. Knowing you have a guaranteed unique ID from the start is a big plus. >> Why? Btw you don't need to know the ID before store the objects since >> you are using a persistence framework. > > As I said in a previous post, our busine

Re: [Lazarus] SQLQuery1: Field not Found: "enquiryreferencenumber"

2008-05-28 Thread Damien Gerard
Le May 28, 2008 à 6:02 AM, Dave Coventry a écrit : > Hi. > > Following Damien's instructions I have DROPped my original table and > created a new one in it's place: > > CREATE table registration ( > fname char(50), > sname char(50), > enquiryreferencenumber INT4 PRIMARY KEY DEFAULT nextval('reg_s

Re: [Lazarus] What is 'Restriction Browser'?

2008-05-28 Thread Bogusław Brandys
Graeme Geldenhuys wrote: > [ forward ]-- > > http://bugs.freepascal.org/view.php?id=1188 > > Reported By:Gory Bugs Department > Assigned To:Vincent Snijd

Re: [Lazarus] CodeTools doesn't look in the project's search path

2008-05-28 Thread Graeme Geldenhuys
If the units are part of your project or part of a Package which is a requirement of your project, CodeTools will automatically find those units. Graeme. 2008/5/28 Tobias Giesen <[EMAIL PROTECTED]>: > Hello, > > two questions: do I really need to copy the project's search paths into > the separa

Re: [Lazarus] What is 'Restriction Browser'?

2008-05-28 Thread Marc Weustink
Graeme Geldenhuys wrote: > [ forward ]-- > > http://bugs.freepascal.org/view.php?id=1188 > > Reported By:Gory Bugs Department > Assigned To:Vincent Snijd

[Lazarus] CodeTools doesn't look in the project's search path

2008-05-28 Thread Tobias Giesen
Hello, two questions: do I really need to copy the project's search paths into the separate CodeTools dialog so that my units are found? Or is this something I could try to implement, making CodeTools aware of the project's search paths? Cheers, Tobias _

Re: [Lazarus] Postgres database again...

2008-05-28 Thread Michael Van Canneyt
On Wed, 28 May 2008, Bogusław Brandys wrote: > Michael Van Canneyt wrote: > > > > On Tue, 27 May 2008, Graeme Geldenhuys wrote: > > > >> Michael Van Canneyt wrote: > Cons: > * Yes it's longer than an Integer type and uses more space, but with > today's hard drive sizes that i

[Lazarus] What is 'Restriction Browser'?

2008-05-28 Thread Graeme Geldenhuys
[ forward ]-- http://bugs.freepascal.org/view.php?id=1188 Reported By:Gory Bugs Department Assigned To:Vincent Snijders . -

Re: [Lazarus] WARNING: Widestring Delete function causes crashes

2008-05-28 Thread Vincent Snijders
Tobias Giesen schreef: > Hi, > > OK I learned that it won't be fixed in 2.2.0, which surely justifies my > warning. I wish I had been warned, since this has been fixed in 2.2.1 > a long time ago. But only 2.2.0 is available on the daily snapshots > page, so this is really a trap. > > Could FPC 2.

Re: [Lazarus] Postgres database again...

2008-05-28 Thread Bogusław Brandys
Michael Van Canneyt wrote: > > On Tue, 27 May 2008, Graeme Geldenhuys wrote: > >> Michael Van Canneyt wrote: Cons: * Yes it's longer than an Integer type and uses more space, but with today's hard drive sizes that is totally irrelevant. >>> The size on disk is not relevant, but

Re: [Lazarus] Need Testers

2008-05-28 Thread Vincent Snijders
Carlos German Tejero schreef: > Mattias: > The problem is fixed :), but when running and close an example project1 > i receive a "segmentation fault", here is a backtrace: > > (gdb) run > Starting program: C:\tmp\test-menu-dbmodule/project1.exe > > Program received signal SIGSEGV, Segmentation f

[Lazarus] Inactive Dataset

2008-05-28 Thread Dave Coventry
Hi, I'm getting this: "operation cannot be performed on an inactive dataset". Googling (I'm on a slow dialup on someone else's line) seems to indicate that the problem is with my Lazarus version. The version I'm using is 0.9.23 beta SVN rev 12712. I obviously can't download a new version of Laz

Re: [Lazarus] WARNING: Widestring Delete function causes crashes

2008-05-28 Thread Tobias Giesen
Hi, OK I learned that it won't be fixed in 2.2.0, which surely justifies my warning. I wish I had been warned, since this has been fixed in 2.2.1 a long time ago. But only 2.2.0 is available on the daily snapshots page, so this is really a trap. Could FPC 2.2.1 for Mac OS be made available on the