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 get garbage. I would

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 will

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

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

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

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 Klaempflflor...@freepascal.org 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

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've got

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

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

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

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 Gaertnernc-gaert...@netcologne.de 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

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 following

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

[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

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] 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ämpflflor...@freepascal.org 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

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 flor...@freepascal.org mailto:flor...@freepascal.org wrote: Am 29.01.2012 11:55, schrieb Bart: On 1/29/12, Florian Klämpfl flor...@freepascal.org mailto:flor...@freepascal.org wrote: I've still

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 flor...@freepascal.org wrote: I've still backups back to 0.1 on 5 1/4 floppies somewhere :) Though I've no idea if they still work :)

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 markmll.fpc-pas...@telemetry.co.uk 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

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

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 .. : :( i don't nderstand why one

[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 =

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 wkitt...@windstream.net 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

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

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

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.freepascal.org/docs-html/rtl

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 since

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

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

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

[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 .9338171 * 24

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

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's

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:\fp

[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

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 assembler, error -1

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... it would seem

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_List routine

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 required

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 smart

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 difference

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 difference

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 TFPList

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 out how

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

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

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

[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

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

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

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

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

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] 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 g...@malth.us 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

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

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

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

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

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

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). If

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;

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

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 i'll go back

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

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

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

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 old OVR/OVL

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 box

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 functions

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 able

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 should

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

2011-02-17 Thread waldo kitty
On 2/16/2011 23:39, Kevin Jesshope wrote: Hi Waldo, I don't have the mimepart or synaser units available at the moment so without actually compiling the code I am not certain the following observations are the cause of your trouble. They are however somewhere to start. 1 In line 63 you are

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

2011-02-17 Thread waldo kitty
On 2/17/2011 08:32, Kevin Jesshope wrote: Hi Waldo, I have now got the units so I can build and test your code properly. The reason you are getting the exception is that when you free m1 at line 66 you are not freeing the m1 you created at line 44, but the subpart belonging to m. This means

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

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

2011-02-16 Thread waldo kitty
i'm trying to work with the synapse mime library but am running into a bit of a problem... i'm an old procedural type coder from the TP3 to TP6 days... it has been a long time since i've done much of anything with objects and i've forgotten a lot more than i remember... i've not done any

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

2011-02-16 Thread waldo kitty
so i take it, from the dearth of replies, that no one on this list uses synapse or its mime library? i've reduced/stripped the code to produce the attached .pas file... while i now do not get a line number any more (which i also do not understand), at least i can more easily see now that

Re: [fpc-pascal] Re: processing quote-printable text...

2011-02-11 Thread waldo kitty
On 2/11/2011 01:28, Ben wrote: Op 2011-02-10 22:24, waldo kitty het geskryf: the tool to be a native OS/2 FPC tool... the only real change i had to make was to change string to ansistring... Glad to see somebody still uses OS/2. I still have my original disks and packaging of OS/2 2.1, 3.0

[fpc-pascal] processing quote-printable text...

2011-02-10 Thread waldo kitty
i am processing an email message that is saved to a text file... currently my processing only locates the content type, plain/text or multipart... if multipart, then we look for the plain/text section and the multipart boundary... all we want is the plain/text... i've been doing this with a

<    1   2   3