[fpc-pascal] Command line FPC/Lazarus SVN downloader/installer

2012-01-10 Thread Reinier Olislagers
Hi Lazarus & FPC people, I got very tired of writing Windows and Linux batch files, so I've written an FPC/Lazarus installer that allows you to keep a copy of FPC and Lazarus that it updates from SVN. This copy can live apart from a regular FPC/Lazarus install as it uses --primary-config path for

Re: [fpc-pascal] sorting and merging array of records

2012-01-10 Thread waldo kitty
On 1/10/2012 16:41, Sven Barth wrote: On 10.01.2012 22:02, waldo kitty wrote: hummm... i may not need this specialization, then... i'm not comparing the entire record but portions of the fields in the records... i've made a few changes that should make this easier for me to do... let me show an

Re: [fpc-pascal] sorting and merging array of records

2012-01-10 Thread Tomas Hajny
On 10 Jan 12, at 23:50, Marco van de Voort wrote: > In our previous episode, Tomas Hajny said: > > BTW, the supplied HTML docs cannot be used if installing onto FAT > > with OS/2 due to the 8.3 restrictions (not that I'd expect you to use > > FAT with your OS/2 unless having very good reasons, ju

Re: [fpc-pascal] sorting and merging array of records

2012-01-10 Thread Marco van de Voort
In our previous episode, Tomas Hajny said: > BTW, the supplied HTML docs cannot be used if installing onto FAT > with OS/2 due to the 8.3 restrictions (not that I'd expect you to use > FAT with your OS/2 unless having very good reasons, just for > completeness sake ;-) ). We really should switc

Re: [fpc-pascal] sorting and merging array of records

2012-01-10 Thread Tomas Hajny
On 10 Jan 12, at 16:02, waldo kitty wrote: . . > something else i need to make sure of is that this will compile on my OS/2 > FPC > 2.4.2 since that is the environment it will be under when it goes > production... > unless, of course, there's a shiney new 0s2260full.zip file for me to play >

Re: [fpc-pascal] sorting and merging array of records

2012-01-10 Thread Sven Barth
On 10.01.2012 22:02, waldo kitty wrote: On 1/10/2012 14:41, Sven Barth wrote: On 10.01.2012 20:12, waldo kitty wrote: i don't know what this is pointing to because it is evidently not in my sources but in a unit i'm loading... the actual compiler message is (750,50) Error: Operator is not over

Re: [fpc-pascal] sorting and merging array of records

2012-01-10 Thread waldo kitty
On 1/10/2012 14:41, Sven Barth wrote: On 10.01.2012 20:12, waldo kitty wrote: i don't know what this is pointing to because it is evidently not in my sources but in a unit i'm loading... the actual compiler message is (750,50) Error: Operator is not overloaded satsort.pas(434) Fatal: There were

Re: [fpc-pascal] sorting and merging array of records

2012-01-10 Thread Marco van de Voort
In our previous episode, Tomas Hajny said: > >> TSortedCollection (as provided in unit objects). > > > > The classes unit also has a TCollection, which can be sorted on any field > > of > > the collection items ? > > When looking at it, using or descending Classes.TCollection for simple > data rec

Re: [fpc-pascal] sorting and merging array of records

2012-01-10 Thread waldo kitty
On 1/10/2012 13:13, Sven Barth wrote: On 10.01.2012 18:15, waldo kitty wrote: On 1/10/2012 05:39, Sven Barth wrote: // somewhere else: aList.Sort(@SatDataCompare); What I wrote here might not be perfect, but it should give you a start. thank you very much! it has definitely given me some id

Re: [fpc-pascal] sorting and merging array of records

2012-01-10 Thread Sven Barth
On 10.01.2012 20:12, waldo kitty wrote: On 1/10/2012 05:39, Sven Barth wrote: // -1 if aLeft < aRight // 0 if aLeft = aRight // 1 if aLeft > aRight begin // compare the two items and return the correct value end; // somewhere else: aList.Sort(@SatDataCompare); What I wrote here might not be pe

Re: [fpc-pascal] sorting and merging array of records

2012-01-10 Thread waldo kitty
On 1/10/2012 05:39, Sven Barth wrote: // -1 if aLeft < aRight // 0 if aLeft = aRight // 1 if aLeft > aRight begin // compare the two items and return the correct value end; // somewhere else: aList.Sort(@SatDataCompare); What I wrote here might not be perfect, but it should give you a start.

Re: [fpc-pascal] How to get path to current theme icons on linux?

2012-01-10 Thread Daniel Gaspary
On Mon, Jan 9, 2012 at 18:45, Krzysztof wrote: > I need to load icon associated by file extension. On windows I done > this by WinAPI function ExtractAssociatedIcon(). On linux is not so > easy, because we have GNOME, KDE, XFCE, LXDE etc, but I noticed that > icons are stored in this same place I

Re: [fpc-pascal] sorting and merging array of records

2012-01-10 Thread Sven Barth
On 10.01.2012 18:15, waldo kitty wrote: On 1/10/2012 05:39, Sven Barth wrote: // somewhere else: aList.Sort(@SatDataCompare); What I wrote here might not be perfect, but it should give you a start. thank you very much! it has definitely given me some ideas... one thing that concerns me, thou

Re: [fpc-pascal] sorting and merging array of records

2012-01-10 Thread waldo kitty
On 1/10/2012 03:38, Tomas Hajny wrote: On Tue, January 10, 2012 05:14, waldo kitty wrote: uncle has been failing me for the last several hours and i'm loosing sight of what i'm trying to get done... i've seen references to using a tstringlinst as well as something apparently non-existent called

Re: [fpc-pascal] sorting and merging array of records

2012-01-10 Thread waldo kitty
On 1/10/2012 05:39, Sven Barth wrote: // somewhere else: aList.Sort(@SatDataCompare); What I wrote here might not be perfect, but it should give you a start. thank you very much! it has definitely given me some ideas... one thing that concerns me, though, is that i'm using FPC 2.4.5 console

Re: [fpc-pascal] sorting and merging array of records

2012-01-10 Thread Sven Barth
Am 10.01.2012 05:14, schrieb waldo kitty: my problem is that i cannot find any similar examples where an array of records is built, sorted and duplicates are eliminated based on specific factors of the two records being compared... uncle has been failing me for the last several hours and i'm loo

Re: [fpc-pascal] sorting and merging array of records

2012-01-10 Thread Tomas Hajny
On Tue, January 10, 2012 10:09, michael.vancann...@wisa.be wrote: > On Tue, 10 Jan 2012, Tomas Hajny wrote: >> On Tue, January 10, 2012 05:14, waldo kitty wrote: >> >> >> Hi, >> >> . >> . >>> are certain enforced limits on these lines... as such, i have defined a >>> record >>> >>> type >>>sat_

Re: [fpc-pascal] sorting and merging array of records

2012-01-10 Thread michael . vancanneyt
On Tue, 10 Jan 2012, Tomas Hajny wrote: On Tue, January 10, 2012 05:14, waldo kitty wrote: Hi, . . are certain enforced limits on these lines... as such, i have defined a record type sat_name = string[25]; line_data = string[69]; two_line = array [1..2] of line_data; thre

Re: [fpc-pascal] sorting and merging array of records

2012-01-10 Thread Tomas Hajny
On Tue, January 10, 2012 05:14, waldo kitty wrote: Hi, . . > are certain enforced limits on these lines... as such, i have defined a > record > > type >sat_name = string[25]; >line_data = string[69]; >two_line = array [1..2] of line_data; >three_line_data = record >