Re: [fpc-pascal] windres not required/provided by Debian 2.6.0 FPC

2012-10-09 Thread waldo kitty
On 10/8/2012 03:12, Tomas Hajny wrote: The manual forgets to mention that this is only the case on Win32 (where the various GNU tools and utilities are included with the FPC installation package). It also doesn't mention that different resource compilers may be used on other platforms (e.g. gorc

Re: [fpc-pascal] Re: Editing resource of executable

2012-09-01 Thread waldo kitty
On 9/1/2012 02:56, Mark Morgan Lloyd wrote: waldo kitty wrote: Of course, an even safer way would be to leave the executable alone and to put an early check in the startup code that a subsidiary key file existed, and for that key to include something that identified the machine or site on

Re: [fpc-pascal] Re: Editing resource of executable

2012-08-31 Thread waldo kitty
On 8/31/2012 16:18, Mark Morgan Lloyd wrote: waldo kitty wrote: i also used this technique to store registration data and options settings directly in the executable instead of having a separate and external configuration file... i can post those old sources if anyone is interested... they

Re: [fpc-pascal] Re: Editing resource of executable

2012-08-31 Thread waldo kitty
On 8/31/2012 11:55, Reinier Olislagers wrote: On 31-8-2012 17:48, waldo kitty wrote: if i'm reading the above correctly, it would appear that it can possibly do what you are looking for... maybe... I'd say it can definitely do what he's asking for - but I'm biased: a

Re: [fpc-pascal] Editing resource of executable

2012-08-31 Thread waldo kitty
On 8/29/2012 17:46, Krzysztof wrote: Hi, I have some problem. Example: I created some exec using free pascal and lazarus. It is placed on http server. User in webbrowser click download, and server should attach link from where it is clicked into this exec. So when user run downloaded exec, this

Re: [fpc-pascal] variant.inc(82, 10) Error: Illegal type conversion: "Text" to "TextRec"

2012-08-25 Thread waldo kitty
On 8/24/2012 18:07, Sven Barth wrote: Am 24.08.2012 21:21 schrieb "Jonas Maebe" It is something with your old build, namely the fact that it is not the latest release (2.6.0 at this time). Building svn versions is only supported if your starting compiler is the latest release. Sometimes I wonde

Re: [fpc-pascal] TObjectQueue with ability to dequeue arbitrary positions

2012-08-25 Thread waldo kitty
On 8/24/2012 14:57, Jorge Aldo G. de F. Junior wrote: [trim] When the object issues request it has to keep looping (until timeout) and dequeueing the last message from the mailbox, inspecting its transaction id for a match and requeueing the same message back into the mailbox if theres no match.

Re: [fpc-pascal] Re: Get all caller adresses of a given function/procedure before executing

2012-08-15 Thread waldo kitty
On 8/15/2012 03:33, Rainer Stratmann wrote: Am Wednesday 15 August 2012 03:52:00 schrieb waldo kitty: On 8/14/2012 03:11, Rainer Stratmann wrote: Am Tuesday 14 August 2012 03:28:26 schrieb waldo kitty: i've been following this whole thread with interest... one thing that i'm still

Re: [fpc-pascal] Re: Get all caller adresses of a given function/procedure before executing

2012-08-14 Thread waldo kitty
On 8/14/2012 22:05, Martin wrote: On 15/08/2012 02:52, waldo kitty wrote: this would be no different than the program doing writeln(snippet1); .i must still be missing something :? If I understood him correct: It is not writeln(snippet1); it is writeln('snippet1'); W

Re: [fpc-pascal] Re: fpdoc executable both in bin and utils\fpdoc - but not fpdoc.css

2012-08-14 Thread waldo kitty
On 8/14/2012 09:47, michael.vancann...@wisa.be wrote: On Tue, 14 Aug 2012, Tomas Hajny wrote: Actually, the file is more a configuration file for fpdoc than its documentation, isn't it? From this point of view, shouldn't SysUtils.GetAppConfigDir serve as the most reasonable location? It is def

Re: [fpc-pascal] Re: Get all caller adresses of a given function/procedure before executing

2012-08-14 Thread waldo kitty
On 8/14/2012 03:11, Rainer Stratmann wrote: Am Tuesday 14 August 2012 03:28:26 schrieb waldo kitty: i've been following this whole thread with interest... one thing that i'm still not clear about, though, is why is this important? is it to see what areas of the program are actual

Re: [fpc-pascal] Re: Get all caller adresses of a given function/procedure before executing

2012-08-13 Thread waldo kitty
On 8/13/2012 05:09, Rainer Stratmann wrote: Am Monday 13 August 2012 10:35:55 schrieb Lukasz Sokol: [TRIM] You were saying, that you want to know, which string has not been used / which string has been used and how many times ? I want to knof if the string was called the first time. But since

Re: [fpc-pascal] Translating from error numbers to symbolic name

2012-08-03 Thread waldo kitty
On 8/3/2012 18:24, Marco van de Voort wrote: EAGAIN generally means that you should try again. So repeat until repeat res:=dofunc; err:=geterrno; until (res<>-1) or ((err<>ESysEINTR) and (err<>ESysEAgain)); it is a workaround against potential deadlock between userland and kern

fpc-pascal@lists.freepascal.org

2012-07-22 Thread waldo kitty
On 7/22/2012 03:39, leledumbo wrote: I have a web app that works fine with embedded http server, but due to its current bugs, I need to switch to something more reliable. So I choose ummm what is "its" in "its current bugs"?? the embedded http server or?? i'm going to guess the embedded http s

Re: [fpc-pascal] Inter-process communication, a cautionary tale

2012-07-20 Thread waldo kitty
On 7/19/2012 03:12, Mark Morgan Lloyd wrote: waldo kitty wrote: On 7/18/2012 08:48, Mark Morgan Lloyd wrote: I was reminded of this when somebody was asking about portable signalling APIs the other day, but I think it's also relevant to discussion of e.g. how to pass a keyword to a help v

Re: [fpc-pascal] Variable of class method type of function

2012-07-16 Thread waldo kitty
On 7/15/2012 08:13, Jonas Maebe wrote: On 15 Jul 2012, at 14:05, CA Gorski wrote: How to declare a variable of class method type of function? ... var MyVar: function(AParam: string): boolean of class; ... gives an error using FPC 2.6.1 (Win64). You have to use "of object", just like for

Re: [fpc-pascal] Re: RE : JSON and UTF8

2012-07-11 Thread waldo kitty
On 7/11/2012 01:36, Reinier Olislagers wrote: On 11-7-2012 4:19, waldo kitty wrote: On 7/10/2012 07:00, Luiz Americo Pereira Camara wrote: With the old behavior, in an system with a system code page<> UTF8, if i try to show the parsed value of "\u4E01" in e.g. a LCL app will

Re: RE : [fpc-pascal] JSON and UTF8

2012-07-10 Thread waldo kitty
On 7/10/2012 07:00, Luiz Americo Pereira Camara wrote: With the old behavior, in an system with a system code page <> UTF8, if i try to show the parsed value of "\u4E01" in e.g. a LCL app will get garbage. I would expect to work correctly in any enviroment this means that some environments wil

Re: [fpc-pascal] Windows Phone 8 + pascal

2012-06-25 Thread waldo kitty
On 6/25/2012 05:12, michael.vancann...@wisa.be wrote: On Mon, 25 Jun 2012, Sven Barth wrote: Why does "COM-based + .NET-like metadata" imply that it's not native code? The core libraries are written in either C or C++ and the metadata is needed so that runtimes like .NET and languages like JavaS

Re: [fpc-pascal] Compilation progress

2012-04-26 Thread waldo kitty
On 4/26/2012 15:06, Jonas Maebe wrote: On 26 Apr 2012, at 17:31, OBones wrote: Is there a way get progress information output by the compiler while building a project? I tried the -vt option, but I can't figure out a way to parse this and get something like current value and max while the li

Re: [fpc-pascal] Compiling from and to memory

2012-04-20 Thread waldo kitty
On 4/20/2012 14:13, Mattias Gaertner wrote: On Fri, 20 Apr 2012 18:26:28 +0200 Florian Klaempfl wrote: [...] Do you have any proof that writing/reading to the files to disk is an issue? On modern harddisks and OSes the plain I/O speed is normally not the issue when compiling. True. Lazarus m

Re: [fpc-pascal] Compiling from and to memory

2012-04-20 Thread waldo kitty
On 4/19/2012 08:11, OBones wrote: Hello all, I'm currently creating a build chain where FPC is the last step, the one producing a DLL for Windows, x86 and x64. In front of it in the chain, I have designed a generator that creates a program and a set of units from its own representation. Right no

Re: [fpc-pascal] Resolving a local hostnames to an IP address

2012-04-16 Thread waldo kitty
On 4/14/2012 02:20, Mark Morgan Lloyd wrote: waldo kitty wrote: [...] some systems need the trailing dot and others do not... i've seen this problem for years and it seems to be limited to some OS' to a certain extent... That issue IME is specifically at the server, i.e. you&#x

Re: [fpc-pascal] Resolving a local hostnames to an IP address

2012-04-13 Thread waldo kitty
On 4/13/2012 04:54, Mark Morgan Lloyd wrote: If I use THostResolver.NameLookup I find that it can convert a fully-qualified name but not one where the domain is omitted, can you explain this a bit more, please? the reason i ask is because some code wants at least one dot separator... example

Re: [fpc-pascal] Re: Is there a function that returns UTC time in FPC or Lazarus?

2012-03-30 Thread waldo kitty
On 3/30/2012 15:31, Reinier Olislagers wrote: On 30-3-2012 16:05, Frank Church wrote: When I get the time via the DateTime function result is adapted for the timezone, making it an hour ahead now? Is there a function that returns the UTC time, either as a UnixTime or TDateTime irregardless of t

Re: [fpc-pascal] SysUtils.GetEnvironmentVariable

2012-03-29 Thread waldo kitty
On 3/29/2012 21:26, Marcos Douglas wrote: Thanks for the test. We have a little difference: my FPC is 2.6.1 (svn /fixes_2_6). The env variable was added before I start the application, always. and this is from command line (cmd.exe, command.exe or *shell) ?? or in the user or system environmen

Re: [fpc-pascal] Spam

2012-03-11 Thread waldo kitty
On 3/11/2012 08:08, Jürgen Hestermann wrote: Jonas Maebe schrieb: Sorry about this spam message. This person simply subscribed to the list and then sent the message. I've now changed the list options so that new members are moderated by default. This may result in some new members' first real po

Re: [fpc-pascal] FPCDocs: diff: saving fpdoc gives huge diff

2012-02-08 Thread waldo kitty
On 2/8/2012 18:56, Mattias Gaertner wrote: On Wed, 8 Feb 2012 16:03:05 +0100 Mattias Gaertner wrote: [...] Of course it would be nicer if the used xml readers/writers can be told to keep the spaces. Especially for version control systems. I will take a look. The xml reader/writer used by the

Re: [fpc-pascal] replace one field of a record in a collection...

2012-02-03 Thread waldo kitty
On 2/3/2012 05:07, Sven Barth wrote: Am 02.02.2012 21:22, schrieb waldo kitty: PSCRec(aSatCatColl^.At(idx))^.satname^ := asatname; the data is changing but i'm suspecting that i need to be doing something more because with the above line in place, i'm getting a lot of errors like the

Re: [fpc-pascal] replace one field of a record in a collection...

2012-02-02 Thread waldo kitty
On 2/1/2012 17:13, Sven Barth wrote: Are you storing pointers to records in your collection? If so then just replace the field's value. The change will then be immediately visible for every other code part that holds a reference to this record. thanks for your reply, sven... you've been a big h

[fpc-pascal] replace one field of a record in a collection...

2012-02-01 Thread waldo kitty
i've gone brain dead after a few days at my $$$ job and i cannot figure out how to replace one field of a record in a collection :/ i'm looking at my existing code that does something similar but it is replacing the entire record and that's too much as well as the fact that the two records i'

Re: [fpc-pascal] FormatDatetime is not respecting the specified pattern

2012-01-31 Thread waldo kitty
On 1/31/2012 22:23, Luciano de Souza wrote: Hello listers, A strange error came up when formating a date. See this code: writeln(formatdatetime('dd/mm/', now)); The answer should be: 31/01/2012 The answer was: 31-01-2012 I did one test else: writeln(formatdatetime('dd$mm$', now)); The an

Re: [fpc-pascal] libQT4Pas - Why it is needed?

2012-01-31 Thread waldo kitty
On 1/30/2012 03:26, zeljko wrote: On Monday 30 of January 2012 08:35:23 waldo kitty wrote: > i may have easily misunderstood the OP's post... i tend to read in literan > english format... ie: if you say eggs are round, that is where i base my > response unless it is very obvious

Re: [fpc-pascal] libQT4Pas - Why it is needed?

2012-01-29 Thread waldo kitty
On 1/30/2012 01:55, zeljko wrote: On Monday 30 of January 2012 03:28:45 waldo kitty wrote: > On 1/29/2012 17:38, Lars wrote: > > Do other languages like python use the plain c interface, or C++? > > > > how about something like ruby, lua, objective C, php ..

Re: [fpc-pascal] I found FPC v0.2 source code :-)

2012-01-29 Thread waldo kitty
On 1/29/2012 17:41, Lars wrote: Anything that has Capacitors in it which use wet electrolytic, can dry out with age. Old stereos that crackle when you turn up the volume are an example. In motherboards though it seems it's more a problem that capacitors blow up and bulge out which is probably fr

Re: [fpc-pascal] libQT4Pas - Why it is needed?

2012-01-29 Thread waldo kitty
On 1/29/2012 17:38, Lars wrote: Do other languages like python use the plain c interface, or C++? how about something like ruby, lua, objective C, php .. :( i don't nderstand why one would want to apply interpreted script languages, al la BASIC, to today's tasks... sure, these are neat and "

Re: [fpc-pascal] I found FPC v0.2 source code :-)

2012-01-29 Thread waldo kitty
On 1/29/2012 16:57, Graeme Geldenhuys wrote: On 29 January 2012 16:21, Mark Morgan Lloyd wrote: My experience is that both media and drives suffer with age, even if not being used. I can imagine that might be for the disk, but not the drive itself. I recently cleaned up my garage and found

Re: [fpc-pascal] I found FPC v0.2 source code :-)

2012-01-29 Thread waldo kitty
On 1/29/2012 09:21, Mark Morgan Lloyd wrote: Florian Klämpfl wrote: Am 29.01.2012 11:55, schrieb Bart: On 1/29/12, Florian Klämpfl wrote: I've still backups back to 0.1 on 5 1/4 floppies somewhere :) Though I've no idea if they still work :) ___ Bu

Re: [fpc-pascal] I found FPC v0.2 source code :-)

2012-01-29 Thread waldo kitty
On 1/29/2012 06:19, ik wrote: On Sun, Jan 29, 2012 at 13:15, Florian Klämpfl mailto:flor...@freepascal.org>> wrote: Am 29.01.2012 11:55, schrieb Bart: > On 1/29/12, Florian Klämpfl mailto:flor...@freepascal.org>> wrote: >> I've still backups back to 0.1 on 5 1/4 floppies somewhere

Re: [fpc-pascal] I found FPC v0.2 source code :-)

2012-01-29 Thread waldo kitty
On 1/29/2012 05:55, Bart wrote: On 1/29/12, Florian Klämpfl wrote: I've still backups back to 0.1 on 5 1/4 floppies somewhere :) Though I've no idea if they still work :) ___ But do you have a machine to read them? if florian doesn't, i do ;) i s

[fpc-pascal] understanding heaptrc and collection init()

2012-01-23 Thread waldo kitty
i'm trying to understand what heaptrc is telling me... i have two collections that are set up, filled, used and disposed of... at the end of the program run, heaptrc pops up and tells me how much memory was allocated... here's the definitions... Tcat_nbr = pstring; Tsat_name = pstring

Re: [fpc-pascal] convert "epoch" to UTC

2012-01-16 Thread waldo kitty
On 1/16/2012 14:49, Sven Barth wrote: On 16.01.2012 20:06, waldo kitty wrote: with this TLE epoch number, 12013.93338171, ya feed it like so... var JEpoch : double; DT : TDateTime; [...] JEpoch := getJulianDay_SatEpoch(12,013.93338171); [...] if TryJulianDateToDateTime(JEpoch,DT) then writeln

Re: [fpc-pascal] convert "epoch" to UTC

2012-01-16 Thread waldo kitty
On 1/16/2012 13:38, Mark Morgan Lloyd wrote: waldo kitty wrote: i think i might be able to do something with the JulianToDateTime once i get the base year portion converted to a true julian... i spotted some C# code while doing a bit of research earlier (see below)... it appears to convert the

Re: [fpc-pascal] convert "epoch" to UTC

2012-01-16 Thread waldo kitty
On 1/16/2012 12:54, Ralf A. Quint wrote: At 09:40 AM 1/16/2012, Sven Barth wrote: Well... I would say the same as FPC's "floor" routine ( http://www.freepascal.org/docs-html/rtl/math/floor.html ) does ;) Well... someone might want to check the example for that function ;) +1 especially sinc

Re: [fpc-pascal] convert "epoch" to UTC

2012-01-16 Thread waldo kitty
On 1/16/2012 12:40, Sven Barth wrote: On 16.01.2012 17:57, waldo kitty wrote: [TRIM] looks like it should be easy to convert to pascal, too ;) just gotta find out what that "floor" routine does ;) Well... I would say the same as FPC's "floor" routine ( http://www.fre

Re: [fpc-pascal] Re: convert "epoch" to UTC

2012-01-16 Thread waldo kitty
On 1/16/2012 10:00, Jeff Wormsley wrote: I went here: http://www.satellite-calculations.com/TLETracker/SatTracker.htm funny thing, that! when i woke up this morning and went researching, that was the first site that uncle google showed me, too :lol: It had the TLE for Galaxy 15 as follows:

Re: [fpc-pascal] convert "epoch" to UTC (waldo kitty)

2012-01-16 Thread waldo kitty
On 1/16/2012 09:44, edgar jordan wrote: 12 == 2012 013 == 13th day of the year .9338171 * 24 == 22.4116104 hours i typoed the above... it should be .93338171 * 24 == 22.40116104 hours .4114104 * 60 == 24.696624 minutes so this becomes .40116104 * 60 == 24.0696624 minutes which then leads

Re: [fpc-pascal] convert "epoch" to UTC

2012-01-16 Thread waldo kitty
On 1/16/2012 06:22, Sven Barth wrote: Am 16.01.2012 04:10 schrieb "waldo kitty" > > > i'm needing to convert a "UTC epoch" date to a "standard time string"... by > that, i mean that i want to get something like "2011-01-13 22:24:04" o

Re: [fpc-pascal] installing FPC 2.6.0 on OS/2

2012-01-15 Thread waldo kitty
On 1/15/2012 18:41, Tomas Hajny wrote: On Sun, January 15, 2012 23:43, waldo kitty wrote: Thanks for letting me know about it. I suggest that you file a standard bug report (not that I expect anyone else to fix it if the problem is restricted to the OS/2 version, but it becomes visible for

[fpc-pascal] convert "epoch" to UTC

2012-01-15 Thread waldo kitty
i'm needing to convert a "UTC epoch" date to a "standard time string"... by that, i mean that i want to get something like "2011-01-13 22:24:04" out of the "epoch" number 12013.9338171... the above "epoch" number is (supposedly) built like this... 12 == 2012 013 == 13th day of the year .9338

Re: [fpc-pascal] installing FPC 2.6.0 on OS/2

2012-01-15 Thread waldo kitty
On 1/15/2012 17:17, Tomas Hajny wrote: On 15 Jan 12, at 13:31, waldo kitty wrote: On 1/14/2012 16:49, Tomas Hajny wrote: Any difference between link.res file created in the two cases? yes... the first thing i note is the fp link.res includes the .\ directory and the fpc one does not

Re: [fpc-pascal] installing FPC 2.6.0 on OS/2

2012-01-15 Thread waldo kitty
On 1/14/2012 16:49, Tomas Hajny wrote: Is there any difference between ppas.cmd created by fp.exe and fpc.exe if you add option -s to compilation from both? i can't find a ppas.cmd when i use "fp -s" and hit F9 or ALT-F9 to compile... it still fails with an error linking... i am allowing the d

Re: [fpc-pascal] installing FPC 2.6.0 on OS/2

2012-01-14 Thread waldo kitty
On 1/14/2012 08:06, Tomas Hajny wrote: On 14 Jan 12, at 5:13, waldo kitty wrote: On 1/13/2012 12:24, Tomas Hajny wrote: On Fri, January 13, 2012 16:48, waldo kitty wrote: . . i use 4OS2 and both return the same path... >which as 209 rwx 1 bin 212992 Feb 23 2004 10:43:38 h:

Re: [fpc-pascal] installing FPC 2.6.0 on OS/2

2012-01-14 Thread waldo kitty
On 1/13/2012 12:24, Tomas Hajny wrote: On Fri, January 13, 2012 16:48, waldo kitty wrote: [time passes] ok, i figured out how to compile with -s and then i ran the ppas.cmd file... it apparently has completed successfully... i do have a bright shiny new exe file... now to figure out what&#

Re: [fpc-pascal] installing FPC 2.6.0 on OS/2

2012-01-13 Thread waldo kitty
On 1/13/2012 05:40, Tomas Hajny wrote: On Fri, January 13, 2012 11:27, waldo kitty wrote: i've a problem with os2260full... i bit the bullet and wiped my old os2 2.4.0(?? or 2.4.2???) install... now none of my projects compile... they complain about "Error: Can't call the asse

[fpc-pascal] installing FPC 2.6.0 on OS/2

2012-01-13 Thread waldo kitty
i've a problem with os2260full... i bit the bullet and wiped my old os2 2.4.0(?? or 2.4.2???) install... now none of my projects compile... they complain about "Error: Can't call the assembler, error -1 switching to external assembling"... in downloaded os2260full.zip, transferred it to the o

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

2012-01-12 Thread waldo kitty
On 1/12/2012 17:49, Tomas Hajny wrote: On 12 Jan 12, at 14:11, waldo kitty wrote: . . that's pretty close to what i did (see above) :lol: i might be able to tighten mine up a bit instead of doing the .done and then a dispose... or does that matter? I believe that there isn't a

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

2012-01-12 Thread waldo kitty
On 1/12/2012 17:49, Tomas Hajny wrote: On 12 Jan 12, at 14:11, waldo kitty wrote: . . that's pretty close to what i did (see above) :lol: i might be able to tighten mine up a bit instead of doing the .done and then a dispose... or does that matter? I believe that there isn't a

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

2012-01-12 Thread waldo kitty
On 1/12/2012 14:11, waldo kitty wrote: but yet i find this in my debug output... 03597 5.04184917406000E+003 . ** inserting record [...] 03597 1.20109577665600E+004 . ** inserting record i was looking at the wrong compare... i had thought i'd be &

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

2012-01-12 Thread waldo kitty
On 1/12/2012 12:42, Tomas Hajny wrote: On Thu, January 12, 2012 17:23, waldo kitty wrote: [TRIM] but the the problem still comes of how do i know if the record was inserted into the list or not? insert doesn't seem to return a true or false on success... i guess this is where it is req

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

2012-01-12 Thread waldo kitty
On 1/12/2012 11:23, waldo kitty wrote: On 1/12/2012 07:20, Tomas Hajny wrote: On Thu, January 12, 2012 03:34, waldo kitty wrote: [TRIM] i'll probably have broken my code by the time you read this... but i'll very likely be attempting to implement the logic in my Input_Satellite_Li

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

2012-01-12 Thread waldo kitty
On 1/12/2012 07:20, Tomas Hajny wrote: On Thu, January 12, 2012 03:34, waldo kitty wrote: [TRIM] without looking at the "code to copy" if i want to override the insert method, it almost seems that there's a bug if it just throws away the record we're trying to insert... i

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

2012-01-11 Thread waldo kitty
On 1/11/2012 20:35, Tomas Hajny wrote: On 11 Jan 12, at 17:46, waldo kitty wrote: . . 1. right now the compare is working on the catalog number (TTLERec.catnbr) and with duplicates:=FALSE there are no duplicates... however, i need to be able to choose which record to keep when there is a

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

2012-01-11 Thread waldo kitty
On 1/11/2012 11:11, Sven Barth wrote: Am 11.01.2012 09:27, schrieb waldo kitty: i tried this but could only get so far and then not further so i backed up and punted the ball... now i'm trying this with a sortedcollection and while i can apparently insert items, i haven't figured

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

2012-01-11 Thread waldo kitty
On 1/10/2012 16:41, Sven Barth wrote: On 10.01.2012 22:02, waldo kitty wrote: TList? hummm... better? smaller? faster? easier to use? small memory footprint? i'm game to try things as long as it works in the end ;) TList is basically an array wrapped in a class (though I would suggest TF

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

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) Fa

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

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] 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-

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

[fpc-pascal] sorting and merging array of records

2012-01-09 Thread waldo kitty
i have a li'l project i've been wanting to do for a really long time... as i'm trying to do more and more with FPC, i've experimented a bit and found that i should be able to handle this project much easier without the old DOS limitations on memory usage and without having to use special stuff

Re: [fpc-pascal] inline and other modifiers

2011-12-21 Thread waldo kitty
On 12/21/2011 20:27, nore...@z505.com wrote: Also delphi is more strict when it comes to PROGRAM name parsing. In freepascal the program name can mismatch the file name, whereas delphi stops compiling and tells you error. i've never known this (program name must equal filename) to be a require

Re: [fpc-pascal] Why is Random(255) some 529x slower compared to Delphi 7?

2011-12-08 Thread waldo kitty
On 12/8/2011 02:48, Graeme Geldenhuys wrote: On 8 December 2011 09:25, Felipe Monteiro de Carvalho wrote: And what about people using FPC only and depending on our Random being statistically strong, they are less important then theorical Delphi migrants? [like what was told to me numerous tim

Re: [fpc-pascal] Re: Delphi's anonymous functions in Free Pascal

2011-10-24 Thread waldo kitty
On 10/21/2011 01:25, Jürgen Hestermann wrote: Florian Klämpfl schrieb: > If anybody does not see why increasing complexity without a good reason > should be avoided, I recommend: I agree wholeheartly. In the past Pascal was a simple still powerfull language but meanwhile it has become a catchm

Re: [fpc-pascal] Format() directives

2011-10-20 Thread waldo kitty
On 10/20/2011 17:47, Andrew Pennebaker wrote: In the future, could Format respect the difference between '%x' and '%X'? It's useful to use the former for lowercase hexadecimal. please forgive the stoopid question but, is there any real difference? in hex, f00 is the same as F00, isn't it?? __

Re: [fpc-pascal] Why do string indices start at 1, but array indices start at 0?

2011-10-20 Thread waldo kitty
On 10/20/2011 17:43, Andrew Pennebaker wrote: It's inconsistent and ripe for bugs. funny thing, that... i thought the same thing when looking at the proposals and requests :LOL: ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://list

Re: [fpc-pascal] Re: Delphi's anonymous functions in Free Pascal

2011-10-20 Thread waldo kitty
On 10/20/2011 16:35, Juha Manninen wrote: 2011/10/20 Gregory M. Turner mailto:g...@malth.us>> Good point. I guess nothing's O(free lunch). Yes, the downside here is that the concept is very different from any syntax in OP. It will be difficult to learn properly. i still fight, today, wit

Re: [fpc-pascal] Re: Delphi's anonymous functions in Free Pascal

2011-10-20 Thread waldo kitty
On 10/20/2011 15:17, Florian Klämpfl wrote: Am 20.10.2011 21:09, schrieb Gregory M. Turner: Interesting discussion -- at least for me, I didn't know Delphi had this feature. In case anyone really doesn't see the point, consider that this thing: http://www.youtube.com/watch?v=cYw2ewoO6c4

Re: [fpc-pascal] How can I implement "thrice" in Free Pascal?

2011-10-20 Thread waldo kitty
On 10/20/2011 11:08, Andrew Pennebaker wrote: 2.6, eh? Awesome. I'm using the SVN trunk, but it's not working for me for some reason. this is why the latest version of the compiler, 2.4.4 is the one supported ;) I'll just wait for v2.6 then. always another possibility... depending on the w

Re: [fpc-pascal] DBF Field name length and fpdbfexport

2011-09-02 Thread waldo kitty
On 9/2/2011 06:00, Reinier Olislagers wrote: may only contain the letters ‘a’-‘z’ and ‘A’-‘Z’, digits ‘0’-‘9’, and the underscore ‘_’ character well, that's interesting... i was writing back to say that the above all appeared as "garbage" characters while i was reading the message... evidently

Re: [fpc-pascal] random numbers negative

2011-08-16 Thread waldo kitty
On 8/16/2011 12:05, Felipe Monteiro de Carvalho wrote: Another idea: -1 * Random(127); this was what i was thinking of as it doesn't limit the number to any particular size as the following seems to do... random(128)-127; what would happen with this? random(4096)-127; ;) ___

Re: [fpc-pascal] random numbers negative

2011-08-16 Thread waldo kitty
On 8/16/2011 11:54, Luis Fernando Del Aguila Mejía wrote: thansk El 16/08/2011 10:36 a.m., Jonas Maebe escribió: On 16 Aug 2011, at 17:25, Luis Fernando Del Aguila Mejía wrote: I have a doubt. With the random function, Can you generate random numbers negative? Begin randomize; Writeln (rando

Re: RE : [fpc-pascal] Re: RE : Re: RE : RE : RE : Assigning value to ftVariant datatype& varbytes-still stuck

2011-08-09 Thread waldo kitty
On 8/9/2011 11:21, Ludo Brands wrote: line 547 or 574? the error report is 574 ;) waldo, thanks for trying to help, unfortunately, I think he meant 574 ;) My keybroad is suffering from dyslexia. mine does it all the time, too :lol: ___ fpc-pascal m

Re: [fpc-pascal] Re: RE : Re: RE : RE : RE : Assigning value to ftVariant datatype& varbytes-still stuck

2011-08-09 Thread waldo kitty
On 8/9/2011 11:13, Reinier Olislagers wrote: On 9-8-2011 17:03, waldo kitty wrote: On 8/9/2011 10:42, Ludo Brands wrote: Exception: Access violation Source unit: Method name: Line number: 574 00.003 TestXSDExport_Access_NoXSD_NoDecimal Error: Line

Re: RE : [fpc-pascal] Re: RE : RE : RE : Assigning value to ftVariant datatype& varbytes-still stuck

2011-08-09 Thread waldo kitty
On 8/9/2011 10:42, Ludo Brands wrote: Exception: Access violation Source unit: Method name: Line number: 574 00.003 TestXSDExport_Access_NoXSD_NoDecimal Error: Line 547 is where FillTestData is called. Not very usefull. line 547 or 574? the error report is

Re: [fpc-pascal] Re: Library for network calculation

2011-07-26 Thread waldo kitty
On 7/26/2011 15:27, Jorge Aldo G. de F. Junior wrote: I dont like to take local variable initialization for granted. Even if the manual says that its guaranteed that a local variable will start with 0, i prefer to initialize everything to a known value myself. +1000~ this is a

Re: RE : [fpc-pascal] Timezone information in a dataset datetime field?- updated

2011-07-25 Thread waldo kitty
On 7/25/2011 15:53, José Mejuto wrote: Hello FPC-Pascal, Monday, July 25, 2011, 6:23:21 PM, you wrote: JH> And even if dates are correctly stored in UTC it is not easy to reliably JH> get back the "local time". Daylight savings were changed in the past JH> (and may also change in the future)

Re: [fpc-pascal] Re: Linux: How to execute a program, but not to wait until finishes

2011-07-19 Thread waldo kitty
On 7/19/2011 14:14, Sven Barth wrote: On 19.07.2011 16:52, fred f wrote: Hi, use this code, which starts itself, but when you close first started the second ends as well, what I don't want. with TProcess.Create (Application) do begin CommandLine := Application.ExeName + '&'; Execute; Free; end

Re: [fpc-pascal] Redirecting input to a child process

2011-05-08 Thread waldo kitty
On 5/8/2011 16:16, Anton Shepelev wrote: waldo kitty: how about sending the ^Z line the CRLF is being sent to indicate line breaks?? This I had tried even before posting the question :) i wasn't sure and the posts didn't seem to indicate this so i thought i'd ask ;) now

Re: RE : [fpc-pascal] Redirecting input to a child process

2011-05-08 Thread waldo kitty
On 5/8/2011 13:17, Anton Shepelev wrote: Ludo Brands: If you run 'more' in a cmd window you'll notice that 'more' echoes the input but only sends to stdout when a return is entered. I modified the program to send 'Anton'#10 and the program reads back 'Anton'#10 from stdou

Re: [fpc-pascal] Forward type not resolved

2011-03-03 Thread waldo kitty
On 3/3/2011 17:15, Leonardo M. Ramé wrote: Sorry, the error was here: TOnSqueeze = procedure (AQuote: TQuote); of object; This line should be: TOnSqueeze = procedure (AQuote: TQuote) of object; amazing what a misplaced semi-colon will do, eh? ;) i would have thought that there would

Re: [fpc-pascal] Re: Passing objects to libraries and back

2011-02-26 Thread waldo kitty
On 2/26/2011 02:12, leledumbo wrote: is it allowed ? Yes, but watch out that is/as operator might not work as expected. can i pass ansistrings ? Yes, but only if you know what you're doing. NEVER modify the passed strings (it would confuse the reference counting). Use const parameter all th

Re: [fpc-pascal] help with synapse mime routines...

2011-02-21 Thread waldo kitty
On 2/19/2011 21:44, Tomas Hajny wrote: Alright. It's just a hack, but probably sufficient for your current needs. ;-) The attached files "fix" Synapse (the released version) for the OS/2 target. There are limitations related to character set conversions and time handling (timezones and daylight s

Re: [fpc-pascal] help with synapse mime routines...

2011-02-19 Thread waldo kitty
On 2/19/2011 15:27, Tomas Hajny wrote: On 19 Feb 11, at 14:53, waldo kitty wrote: i was also incorrect... on the OS/2 box, in Mode: DEBUG with Target: OS/2, it is giving the following... Fatal: Can't find unit UnixUtil used by synautil i'm using synautil for the space trimming fun

Re: [fpc-pascal] help with synapse mime routines...

2011-02-19 Thread waldo kitty
On 2/19/2011 08:45, Tomas Hajny wrote: On Sat, February 19, 2011 06:36, waldo kitty wrote: Fatal: Can't find unit dynlibs used by synafpc Yes - unit dynlibs (loading of DLLs on demand) is not supported under GO32v2 for obvious reasons... yep! i was also incorrect... on the OS/2 bo

Re: [fpc-pascal] help with synapse mime routines...

2011-02-19 Thread waldo kitty
On 2/19/2011 05:30, Marco van de Voort wrote: In our previous episode, waldo kitty said: Fatal: Can't find unit dynlibs used by synafpc Odd. Dos doesn't support a common dll/shared library format (though some toolchains do on their own, right... the closest would be the o

Re: [fpc-pascal] help with synapse mime routines...

2011-02-18 Thread waldo kitty
On 2/18/2011 04:47, Tomas Hajny wrote: On Fri, February 18, 2011 02:24, waldo kitty wrote: I'm willing to have a look at your current version if you can upload it somewhere. Synapse has probably not been ported to the OS/2 target and it possibly uses various platform specific APIs but it s

Re: [fpc-pascal] help with synapse mime routines...

2011-02-18 Thread waldo kitty
On 2/18/2011 04:47, Tomas Hajny wrote: On Fri, February 18, 2011 02:24, waldo kitty wrote: on my OS/2 box, i've tried targets of OS2 and OS2 with EMX but both have failed all kinds of ways... i suspect that it is simply to do with the paths to the units and include files... i have been ab

Re: [fpc-pascal] help with synapse mime routines...

2011-02-17 Thread waldo kitty
On 2/17/2011 18:16, Kevin Jesshope wrote: [TRIM] I think I have that right. I am working from memory now as I do not have the code before me. i wanted to thank you again.. you gave me some hints that enabled me to propel myself much further than i've gone in the last week of floundering... in

<    1   2   3   4   >