Re: [fpc-pascal] Methods for autoupdating fpc programs?

2015-10-04 Thread waldo kitty
On 10/03/2015 05:40 PM, Bo Berglund wrote: On Sat, 3 Oct 2015 15:04:31 -0400, waldo kitty wrote: On 10/03/2015 02:30 PM, Bo Berglund wrote: The program will probably be started by cron every minute to check if it has anything to do and if so execute its data collection task and quit

Re: [fpc-pascal] Methods for autoupdating fpc programs?

2015-10-03 Thread waldo kitty
On 10/03/2015 02:30 PM, Bo Berglund wrote: The program will probably be started by cron every minute to check if it has anything to do and if so execute its data collection task and quit. Otherwise just quit, but here maybe also check for an update on the web? But how could one exchange a running

Re: [fpc-pascal] How to compile Lazarus program using only FPC?

2015-09-24 Thread waldo kitty
On 09/24/2015 11:14 AM, Michael Van Canneyt wrote: On Thu, 24 Sep 2015, waldo kitty wrote: On 09/24/2015 10:03 AM, Marco van de Voort wrote: Lazarus has lazbuild to simply compile a project from the commandline. but you have to have lazarus which is not available for all environments... eg

Re: [fpc-pascal] How to compile Lazarus program using only FPC?

2015-09-24 Thread waldo kitty
On 09/24/2015 10:03 AM, Marco van de Voort wrote: In our previous episode, Graeme Geldenhuys said: No, FPC knows nothing about Lazarus project files. In Lazarus IDE you can go to Project Options, and then click on the "Show Options" button and the bottom of that dialog. Copy and paste that into

Re: [fpc-pascal] How to compile Lazarus program using only FPC?

2015-09-24 Thread waldo kitty
On 09/24/2015 09:48 AM, Bo Berglund wrote: I want to check my options regarding Lazarus and FPC. If I develop a program on Windows Lazarus, move it to Debian Lazarus (x86) and then finally want to compile on ARM on for example Raspberry Pi but outside of Lazarus, how is that done? the lpr file

Re: [fpc-pascal] shift right operation with variables

2015-08-17 Thread waldo kitty
On 08/16/2015 09:38 PM, Xiangrong Fang wrote: The output is: 00FF 00FF Why they are different? How can I ensure the result is like SHR with constant. being curious, i tried your program with the same results... then i changed the var name from "res" to "foo" with the

Re: [fpc-pascal] which GUI (noob)

2015-08-06 Thread waldo kitty
On 08/06/2015 12:30 PM, Graeme Geldenhuys wrote: On 2015-08-06 15:43, Graeme Geldenhuys wrote: 1. Run Lazarus and open the fpgui_toolkit.lpk package found in the fpGUI code: /src/corelib/[x11|gdi]/fpgui_toolkit.lpk Click "Compile". It was brought to my attention that the above is som

Re: [fpc-pascal] Basic Sockets in FreePascal

2015-07-26 Thread waldo kitty
On 07/26/2015 09:14 PM, Coyo wrote: How do you import a unit/library in FPC? Is there a .deb package or something that I install? hunh?? is there something wrong with the standard ""uses foo, bar;"" clause?? -- NOTE: No off-list assistance is given without prior approval. *Please keep

Re: [fpc-pascal] Please trim your quotes

2015-07-22 Thread waldo kitty
On 07/22/2015 03:59 PM, Bart wrote: On 7/22/15, Frederic Da Vitoria wrote: Strange. In Settings, go to the Labs tab, the setting should be named something like what Graeme wrote, There simply is nosuch tab. are you using the plain html interface or the fancier one? i have the fancy one...

Re: [fpc-pascal] loadlibrary() unsafe ?

2015-06-20 Thread waldo kitty
On 06/20/2015 11:11 AM, fredvs wrote: Re-re-re-Hello. This one does not work too ;-( => - AProcess.Environment.Text := 'LD_PRELOAD=/home/fred/sak/sak/sakit/liblinux64/libportaudio.so' ; how many "sak" are there really? you have two plus "sakit"... this is the first you've posted anything of

Re: [fpc-pascal] TFPHashList and nil pointers

2015-05-20 Thread waldo kitty
On 05/20/2015 07:11 AM, Michael Van Canneyt wrote: On Tue, 19 May 2015, Serguei TARASSOV wrote: Hello, Is it normal that TFPHashList cannot find an item by name if the pointer is nil? However, the item is stored in the list. FPC 2.6.4, both Windows and Linux versions. program project1; us

Re: [fpc-pascal] Using Cairo lib on Linux without X

2015-04-08 Thread waldo kitty
On 4/8/2015 1:40 PM, Juha Manninen wrote: On Wed, Apr 8, 2015 at 4:36 PM, fredvs wrote: Yep, usually i use sudo apt-get build-dep xxx but it does not work any more... I also have XUbuntu where I could run that command. It downloaded and installed many packages but I don't find the cairo sourc

Re: [fpc-pascal] Reinier Olislagers

2015-02-01 Thread waldo kitty
On 2/1/2015 6:38 AM, Bart wrote: On 2/1/15, waldo kitty wrote: someone please tell me that BigChimp on the forums is not Reinier Olislagers in RL... Unfortunately in fact he is. thank you... i just found out about his passing on 2014 Dec 04... i was looking on the forums for some

[fpc-pascal] Reinier Olislagers

2015-01-31 Thread waldo kitty
someone please tell me that BigChimp on the forums is not Reinier Olislagers in RL... ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Cannot reuse TFPHTTPClient object for 2 different POST requests

2015-01-17 Thread waldo kitty
On 1/17/2015 12:42 PM, leledumbo wrote: you don't have to clear the inbound buffer to prevent constipation? ;) Which inbound buffer? i was thinking that there's some sort of inbound traffic that may be filling a buffer that needs to be emptied... i don't know or have any other ideas to offer

Re: [fpc-pascal] Cannot reuse TFPHTTPClient object for 2 different POST requests

2015-01-17 Thread waldo kitty
On 1/16/2015 12:57 PM, leledumbo wrote: Consider the following program (it's a real program with real parameters, nothing hidden, so you can really just try it out because the target server is public): you don't have to clear the inbound buffer to prevent constipation? ;) -- NOTE: No off-list

[fpc-pascal] multi-platform and filesystem case sensitivity

2014-12-20 Thread waldo kitty
what is the recommended way of handling filesystem case sensitivity when users can provide a filename mask for use in processing? i'm not sure what the best or recommended way is and i'm not sure how i would want to handle it... i do know that i need to handle it, though... one of my testing

Re: [fpc-pascal] findfirst wildcards...

2014-12-03 Thread waldo kitty
On 12/3/2014 8:10 PM, waldo kitty wrote: MatchesMaskList and its friends are in the Lazarus MASKS unit... since lazarus is not available for OS/2, i'm not looking for it to happen... then there's the difference in the way it operates compared to what is expected... not "the

Re: [fpc-pascal] findfirst wildcards...

2014-12-03 Thread waldo kitty
On 12/3/2014 5:48 PM, Tomas Hajny wrote: On Wed, December 3, 2014 23:18, waldo kitty wrote: . . desirable in some cases... i just have to test it on OS/2 and see if i can compile it... i can't do that with MatchesMaskList because the unit that contains it is not available on OS/2...

Re: [fpc-pascal] findfirst wildcards...

2014-12-03 Thread waldo kitty
On 12/3/2014 5:09 PM, Bart wrote: On 12/3/14, Ralf Quint wrote: On 12/3/2014 12:27 PM, Bart wrote: Windows.FindFirstFile however treats ? as exactly 1 character AFAIK. And is I'm not mistake this was also the case with TP in the old days. A quick test in a Windows 8.1 command prompt:

Re: [fpc-pascal] findfirst wildcards...

2014-12-03 Thread waldo kitty
On 12/3/2014 3:27 PM, Bart wrote: On 12/3/14, Ralf Quint wrote: On any DOS based OS (that includes OS/2 and Windows), the "?" wildcard character will find any character, including no character at all in that position. So in your example, t?.txt will find t.txt and tx.txt but not txy.txt. It wi

Re: [fpc-pascal] findfirst wildcards...

2014-12-03 Thread waldo kitty
On 12/3/2014 3:02 PM, Ralf Quint wrote: On 12/3/2014 8:30 AM, waldo kitty wrote: yes, i wrote t11.txt when i should have written t1.txt... my bad... however on OS/2 native OS/2 with 4OS2 command interpreter replacement OS/2 DOS native OS/2 DOS with 4DOS command interpreter replacement

Re: [fpc-pascal] findfirst wildcards...

2014-12-03 Thread waldo kitty
On 12/3/2014 6:16 AM, Tomas Hajny wrote: Given the fact that OS/2 appeared in your listing, I can clarify the difference. It comes from the fact that in case of FindFirst/FindNext, the interpretation of wildcards is performed by the underlying operating system whereas the routine mentioned by Bar

Re: [fpc-pascal] findfirst wildcards...

2014-12-03 Thread waldo kitty
On 12/3/2014 3:41 AM, Jonas Maebe wrote: On 03 Dec 2014, at 06:05, waldo kitty wrote: can you help me understand the differences in the output of the below program? given these three filenames: t.txt t1.txt t11.txt with mask t?.txt why does MatchesMaskList not show t.txt and t11.txt like

Re: [fpc-pascal] findfirst wildcards...

2014-12-02 Thread waldo kitty
On 12/2/2014 5:12 PM, Bart wrote: On 12/2/14, waldo kitty wrote: how do you process for multiple filemasks? eg: find ts??.sel and t???.sel for the same processing run Maybe I misunderstand the question but: Use '*' as mask for FindFirst/FindNext then use MatchesMaskList()?

Re: [fpc-pascal] findfirst wildcards...

2014-12-02 Thread waldo kitty
On 12/2/2014 5:12 PM, Bart wrote: On 12/2/14, waldo kitty wrote: how do you process for multiple filemasks? eg: find ts??.sel and t???.sel for the same processing run Maybe I misunderstand the question but: Use '*' as mask for FindFirst/FindNext then use MatchesMaskList()?

Re: [fpc-pascal] findfirst wildcards...

2014-12-02 Thread waldo kitty
On 12/2/2014 5:12 PM, Bart wrote: On 12/2/14, waldo kitty wrote: how do you process for multiple filemasks? eg: find ts??.sel and t???.sel for the same processing run Maybe I misunderstand the question but: Use '*' as mask for FindFirst/FindNext then use MatchesMaskList()

[fpc-pascal] findfirst wildcards...

2014-12-02 Thread waldo kitty
how do you process for multiple filemasks? eg: find ts??.sel and t???.sel for the same processing run == snip filemask.pas == Program Filemasks; Uses SysUtils, StrUtils, Classes; var dirSR : TSearchRec; flist : TStringList; fmask : string; begin if paramstr(1) <> '' th

Re: [fpc-pascal] date formating dificulty

2014-11-19 Thread waldo kitty
On 11/19/2014 9:17 AM, Philippe wrote: I still don't know how to use at the same time formatStr and FormatSettings in FormatDateTime. i'm not sure i understand your delima... perhaps you are trying to determine how the FormatSettings work and how you can force the same output format on diffe

Re: [fpc-pascal] Catching Exceptions in Library

2014-11-06 Thread waldo kitty
On 11/6/2014 7:39 PM, Steve Gatenby wrote: Could anybody tell me why the following error is caught by the try except in an Application, but not in a Library ? I am needing to find out where try except doesn't do what I think, not fix this code. are you seeing a different error than what you ar

Re: [fpc-pascal] any generic List class other than those in fgl unit?

2014-10-24 Thread waldo kitty
On 10/24/2014 11:18 AM, Reinier Olislagers wrote: On 24/10/2014 17:15, Dennis Poon wrote: Can you give me a link to report this bug? I have not done this before. Is it really so hard to find? E.g. forum.lazarus.freepascal.org/ top left under free pascal, bugtracker link. Thanks. who uses fo

Re: [fpc-pascal] Internal error 200706094

2014-09-29 Thread waldo kitty
On 9/29/2014 5:48 AM, Victor Matuzenko wrote: IMO the problem is the transformation -1 into an unsigned value. (Unsigned(-1) > Max(Signed).) How can I rewrite this code to make it correct? I want to use constants to calculate offsets from untyped pointer. have you tried using a typed const? c

Re: [fpc-pascal] Is it possible to use top directory of subtree with -Fu -Fi -Fl options?

2014-09-29 Thread waldo kitty
On 9/29/2014 5:00 AM, Tony Papadimitriou wrote: OK, I think I realized what the problem is. The * will apparently search in all subdirectories but (apparently again) one level deep. So, if you have something like: \progs\pascal\units\a \progs\pascal\units\a\b and you give -Fu\progs\pascal\uni

Re: [fpc-pascal] best? safest? fastest?

2014-08-08 Thread waldo kitty
On 8/7/2014 4:35 AM, Mark Morgan Lloyd wrote: waldo kitty wrote: On 8/6/2014 4:08 AM, Mark Morgan Lloyd wrote: I'd be inclined to start off using your method 1, i.e. text manipulation until the format is consistent. i don't understand "until the format is consistent"...

Re: [fpc-pascal] http://free-pascal-develop.nabble.com/ ?

2014-08-06 Thread waldo kitty
On 8/6/2014 4:41 AM, leledumbo wrote: Does it exist a nabble web page for fpc-develop (with all fpc-devel archives) ? Nope. I'm the one who registered FPC general to Nabble a couple of years ago. You might want to register FPC develop as well. i assume that ""fpc-general"" is this list, fpc-p

Re: [fpc-pascal] best? safest? fastest?

2014-08-06 Thread waldo kitty
On 8/6/2014 4:08 AM, Mark Morgan Lloyd wrote: waldo kitty wrote: i suspect this is going to be like the long-standing joke of cheap, fast, stable: choose two over the years, i've seen two schools of code for dealing with dates... years, specifically... one school is string based an

[fpc-pascal] best? safest? fastest?

2014-08-05 Thread waldo kitty
i suspect this is going to be like the long-standing joke of cheap, fast, stable: choose two over the years, i've seen two schools of code for dealing with dates... years, specifically... one school is string based and the other is math based... both have their faults and pluses... eg: s

Re: [fpc-pascal] exitproc?

2014-08-05 Thread waldo kitty
On 8/5/2014 12:51 PM, leledumbo wrote: is this still able to be done easily? No difference I guess: http://www.freepascal.org/docs-html/rtl/system/exitproc.html However, this is better: http://www.freepascal.org/docs-html/rtl/system/addexitproc.html thanks for the pointers! i was extremely ti

Re: [fpc-pascal] exitproc?

2014-08-05 Thread waldo kitty
On 8/5/2014 3:29 AM, Tomas Hajny wrote: On Tue, August 5, 2014 02:00, waldo kitty wrote: back in the [g]?olden days of TP6, i used to be able to set an exitproc procedure that would be executed any time my program exited for any reason... something like exitproc := @myexitproc; is this

[fpc-pascal] exitproc?

2014-08-04 Thread waldo kitty
back in the [g]?olden days of TP6, i used to be able to set an exitproc procedure that would be executed any time my program exited for any reason... something like exitproc := @myexitproc; is this still able to be done easily? does it work even if there's an untrapped exception? -- NO

Re: [fpc-pascal] Wikipedia article about fcl-web

2014-07-31 Thread waldo kitty
On 7/31/2014 5:08 PM, Fabrício Srdic wrote: Thanks a lot! About the web server implemented by the unit fphttpserver, is it recommended for high load environments? please define "high load environments"... 2014-07-31 17:54 GMT-03:00 leledumbo : Hi everyone, Today I just started http

Re: [fpc-pascal] replacement of MemAvail and MaxAvail

2014-05-30 Thread waldo kitty
On 5/30/2014 5:37 AM, mokashe.ram wrote: Thanks For Your This Prompt Reply... but in promgram these functions are already used in my applcation developed in TP7, sonow i am migration this applcation to free pascal. how can i replace using free pascal? take them out... what do you need them fo

Re: [fpc-pascal] Ping problems - OS/X

2014-05-21 Thread waldo kitty
On 5/21/2014 7:00 AM, Peter Brooks wrote: AStringList.LoadFromStream(Aprocess.Output); AStringList.LoadFromStream(AProcess.Stderr); AStringList.LoadFromStream(AProcess.Output); [quote] LoadFromStream loads the contents of Stream into the stringlist. Each line in the stream (as marked

Re: [fpc-pascal] how to disable case sensitivity for file names on *nix?

2014-05-11 Thread waldo kitty
On 5/11/2014 3:29 AM, Sven Barth wrote: You could add the option -vut to see which files the compiler tries to use (t) and which it does then finally use (u). Be aware though that this might get noisy ;) i thought i had replied back in this thread that i had found the problem... i used -vav a

Re: [fpc-pascal] how to disable case sensitivity for file names on *nix?

2014-05-10 Thread waldo kitty
On 5/10/2014 5:14 PM, Sven Barth wrote: On 10.05.2014 20:09, waldo kitty wrote: i'm using git to pull a project from sourceforge to a windows box and to a linux box... on windows, the project compiles fine... on linux, though, all of the files' names are lowercase but the sources

Re: [fpc-pascal] how to disable case sensitivity for file names on *nix?

2014-05-10 Thread waldo kitty
On 5/10/2014 2:18 PM, Michael Van Canneyt wrote: On Sat, 10 May 2014, waldo kitty wrote: i surely don't want to have to edit the sources to lowercase all the uses and includes statements every time i update my local repositories... how can i get it to compile on linux no matter what cas

[fpc-pascal] how to disable case sensitivity for file names on *nix?

2014-05-10 Thread waldo kitty
i'm using git to pull a project from sourceforge to a windows box and to a linux box... on windows, the project compiles fine... on linux, though, all of the files' names are lowercase but the sources have upper and CaMeL cased file names in the uses and include statements... i have no control

Re: [fpc-pascal] how to use macros on linux?

2014-04-14 Thread waldo kitty
On 4/14/2014 12:54 PM, Mattias Gaertner wrote: On Mon, 14 Apr 2014 12:29:00 -0400 waldo kitty wrote: when i try to compile a program on my non-GUI linux, it tells me that it can't find the programs... hunh? fpc -FUlib/$(TargetCPU)-$(TargetOS) foo.pas These are Lazarus macros. oh!

[fpc-pascal] how to use macros on linux?

2014-04-14 Thread waldo kitty
when i try to compile a program on my non-GUI linux, it tells me that it can't find the programs... hunh? fpc -FUlib/$(TargetCPU)-$(TargetOS) foo.pas fpc is trunk installed via fpcup... [quote] user@machine:~/development/projects/misc$ ~/fpc -FUlib/$(TargetCPU)-$(TargetOS) foo.pas Targe

Re: [fpc-pascal] Processing passwords etc.

2014-04-12 Thread waldo kitty
On 4/12/2014 8:24 AM, Michael Van Canneyt wrote: Attached is an implementation that allows you to specify: What to do when allocating memory (zero out, randomize, nothing) What to do when freeing memory (zero out, randomize, nothing). very nice! thank you sir! i'm still learning FPC and all it

Re: [fpc-pascal] Watching for file change

2014-04-11 Thread waldo kitty
On 4/11/2014 3:06 PM, Krzysztof wrote: Hi, Does FPC have some file watching solution? I need this only for linux. I need notifications: - File/folder changed / removed / added in watched directory. I have idea how to do this in thread loop but maybe FPC has OS solution i'm interested in this,

Re: [fpc-pascal] Processing passwords etc.

2014-04-11 Thread waldo kitty
On 4/11/2014 4:10 AM, Mark Morgan Lloyd wrote: Using a memory manager would reliably wipe strings etc. when reallocated (i.e rather than when an assignment didn't trigger reallocation). On the other hand it would have the overhead of also overwriting blocks that the user knew were being freed and

Re: [fpc-pascal] Processing passwords etc.

2014-04-11 Thread waldo kitty
On 4/11/2014 5:03 AM, Michael Van Canneyt wrote: The main point is that in FPC you can install a memory manager that wipes out any memory when getting or releasing it, if you want to make your software more secure that way. how would one go about doing this? i learned in my TP3/6 days to use fi

Re: [fpc-pascal] lazarus not reachable

2014-04-06 Thread waldo kitty
On 4/6/2014 5:40 PM, m...@rpzdesign.com wrote: Jim: Are you able to web surf to the lazarus.freepascal.org web site? yes, i can and i do not normally visit that site... FWIW: icmp may not be being allowed by the destination site or the router saying that the destination host is unreachable..

Re: [fpc-pascal] updating an old DOS tool using PChar strings

2014-02-20 Thread waldo kitty
On 2/19/2014 8:30 PM, Paul Breneman wrote: On 02/19/2014 03:06 PM, waldo kitty wrote: ... any help is appreciated and thanks for reading this quite possibly rambling post emanating from my scrambled brain cells... FPC DOS is pretty easy for a console program, but it is 32-bit (whereas DOS is

Re: [fpc-pascal] updating an old DOS tool using PChar strings

2014-02-19 Thread waldo kitty
On 2/19/2014 6:10 PM, Tomas Hajny wrote: On Wed, February 19, 2014 23:58, leledumbo wrote: Well, if you're not using FPC, then asking for non-FPC code here isn't the right way. It's useless to point yout o FPC units that BP7 doesn't have. As you've experienced, ReplaceStr (from StrUtils), String

Re: [fpc-pascal] updating an old DOS tool using PChar strings

2014-02-19 Thread waldo kitty
On 2/19/2014 5:58 PM, leledumbo wrote: Well, if you're not using FPC, then asking for non-FPC code here isn't the right way. It's useless to point yout o FPC units that BP7 doesn't have. this is rather true and i forgot to prefix my subject line with OT... my apologies for that... but i'm no

[fpc-pascal] updating an old DOS tool using PChar strings

2014-02-19 Thread waldo kitty
i have an old DOS tool written in BP7 that i'm needing to fix a couple of problems with... the main problem is that it is using an old CStr unit written by a Todd Holmes back in 1993... this unit was written to suppliment the reading and writing of "C strings" to/from streams and converting "C

Re: [fpc-pascal] TSortedCollection dupes ordering

2014-02-07 Thread waldo kitty
On 2/7/2014 4:06 AM, Frederic Da Vitoria wrote: 2014-02-07 waldo kitty mailto:wkitt...@windstream.net>>: [...] so now i'm a bit confused but it has been a long day... again... :/ This makes sense... at least in your previous version: I guess catnbr is a string. yes... C

Re: [fpc-pascal] freepascal community and USB printing

2014-02-06 Thread waldo kitty
think ;) Em 06.02.2014 15:59, waldo kitty escreveu: On 2/6/2014 9:24 AM, Philippe wrote: searching for raw printing to usb printer ... I found that some stuff has been posted in the community forum ... which looks to be out of order ... is there a way to get the informations posted ...

Re: [fpc-pascal] TSortedCollection dupes ordering

2014-02-06 Thread waldo kitty
On 2/6/2014 1:47 PM, Jim Leonard wrote: On 2/6/2014 11:04 AM, waldo kitty wrote: ahh... i see what you are doing... you are passing the pointer to the whole record instead of just the needed key... hummm... i'll have to think about that and how to do it in my app... right now i'm on

Re: [fpc-pascal] windows title

2014-02-06 Thread waldo kitty
On 2/6/2014 9:16 AM, Philippe wrote: compiling for targets win32 and win64, I´ld like to change the window title, the window opened by cmd.exe please do not hijack other people's topics to ask an unrelated question... use your 'write' or 'new message' button instead of 'reply' to start a your

Re: [fpc-pascal] freepascal community and USB printing

2014-02-06 Thread waldo kitty
On 2/6/2014 9:24 AM, Philippe wrote: searching for raw printing to usb printer ... I found that some stuff has been posted in the community forum ... which looks to be out of order ... is there a way to get the informations posted ... and you did it (hijacked the same thread with another topic)

Re: [fpc-pascal] TSortedCollection dupes ordering

2014-02-06 Thread waldo kitty
On 2/6/2014 4:23 AM, Frederic Da Vitoria wrote: Then my trick does not work for you because it hides the fact that the records are identical. actually, the problem comes when referencing the IndexOf() the record... IndexOf(Item) is passed (unmodified) thru a couple of routines to finally end u

Re: [fpc-pascal] TSortedCollection dupes ordering

2014-02-06 Thread waldo kitty
On 2/5/2014 7:48 PM, Jim Leonard wrote: On 2/5/2014 5:24 PM, waldo kitty wrote: i'm unsure what to do or how to handle this so that there is a secondary (sub) sorting order so that the main key is the master sort and then a secondary ""key"" is used when duplicates are

Re: [fpc-pascal] TSortedCollection dupes ordering

2014-02-05 Thread waldo kitty
On 2/5/2014 3:57 AM, Frederic Da Vitoria wrote: [...] Once again I did not test this, but it seems to me that if Compare returned -1 instead of 0, any duplicate would be inserted after because it would never be considered as equal to any other. But since you still want your collection to be able

Re: [fpc-pascal] TSortedCollection dupes ordering

2014-02-04 Thread waldo kitty
On 2/4/2014 5:16 PM, Frederic Da Vitoria wrote: 2014-02-04 waldo kitty mailto:wkitt...@windstream.net>>: [...] i kinda thought about that earlier when i was digging thru the code... IIRC, insert was overridden because there are cases where the existing record needs to be re

Re: [fpc-pascal] TSortedCollection dupes ordering

2014-02-04 Thread waldo kitty
On 2/4/2014 3:28 PM, Jim Leonard wrote: On 2/4/2014 1:40 PM, waldo kitty wrote: i have a TSortedCollection that i'm allowing duplicate keys to be inserted in... the problem that i'm having is that the duplicate keys are in reverse order from how they were inserted... Sounds

Re: [fpc-pascal] DefaultFormatSettings usage

2014-02-04 Thread waldo kitty
On 2/4/2014 8:54 AM, silvioprog wrote: t := StrToDate('2013-02-04 11:39:54'); // to format -mm-dd hh:nn:ss the above is StrToDate but you are also sending the time... you would see similar if you were sending the above string to StrToTime... StrToDate only accepts date formats as StrT

[fpc-pascal] TSortedCollection dupes ordering

2014-02-04 Thread waldo kitty
i have a TSortedCollection that i'm allowing duplicate keys to be inserted in... the problem that i'm having is that the duplicate keys are in reverse order from how they were inserted... i am overriding MyCollection^.Insert because i have additional tasks that need to be done at the time of

Re: [fpc-pascal] best method: multiple three state options in a decision tree

2014-01-27 Thread waldo kitty
On 1/27/2014 4:57 AM, Lukasz Sokol wrote: On 24/01/14 16:20, waldo kitty wrote: with the above epiphany and some other information i have acquired, i'm now in the process of rewriting the app... i suspect it will take me a day or two to get to the point i was at previously with the operat

Re: [fpc-pascal] Pure FPC ?

2014-01-26 Thread waldo kitty
On 1/26/2014 4:00 PM, fredvs wrote: Hello. Does it exist a option to compile fpc without Delphi compatibility ? does {$mode objpfc} not suit your needs? ;) or whatever the default is? O:) -- NOTE: No off-list assistance is given without prior approval. Please keep mailing list traffic

Re: [fpc-pascal] how to pass a procedure address and execute it?

2014-01-24 Thread waldo kitty
On 1/24/2014 3:18 PM, Ewald wrote: On 24 Jan 2014, at 21:20, waldo kitty wrote: On 1/23/2014 2:18 PM, waldo kitty wrote: following up on this, how do i pass parameters to doThis and doThat?? do i have to use an intermediate pre_doThis and pre_doThat which handles the calls from

Re: [fpc-pascal] how to pass a procedure address and execute it?

2014-01-24 Thread waldo kitty
On 1/23/2014 2:18 PM, waldo kitty wrote: following up on this, how do i pass parameters to doThis and doThat?? do i have to use an intermediate pre_doThis and pre_doThat which handles the calls from centralControl and then calls doThis and doThat with the necessary parameters? type TProc

Re: [fpc-pascal] best method: multiple three state options in a decision tree

2014-01-24 Thread waldo kitty
On 1/23/2014 5:01 AM, Lukasz Sokol wrote: Maybe Something like: (but this is with type TOptionMinMax = [mmNone, mmMin,mmMinMax, mmMax]) i wanted to thank you, lukasz, for your input... it has made me take another look while rewriting to implement your ideas... during this process i had an

Re: [fpc-pascal] how to pass a procedure address and execute it?

2014-01-23 Thread waldo kitty
On 1/23/2014 2:32 PM, Jim Leonard wrote: On 1/23/2014 1:27 PM, Marco van de Voort wrote: Define a procedure type that matches both procedures, in your example Type TProc = procedure ; // which is predefined in system afaik. and change whichproc to that type. The VAR is not necessary in this

Re: [fpc-pascal] how to pass a procedure address and execute it?

2014-01-23 Thread waldo kitty
On 1/23/2014 2:27 PM, Marco van de Voort wrote: In our previous episode, waldo kitty said: i'm trying to use one routine (centralControl) to process data from two different routines (inputThis and outputThat)... the one routine (centralControl) needs to call one of two other rou

Re: [fpc-pascal] how to pass a procedure address and execute it?

2014-01-23 Thread waldo kitty
On 1/23/2014 2:22 PM, Ewald wrote: On 23 Jan 2014, at 20:18, waldo kitty wrote: i'm trying to use one routine (centralControl) to process data from two different routines (inputThis and outputThat)... the one routine (centralControl) needs to call one of two other routines (doThis or d

[fpc-pascal] how to pass a procedure address and execute it?

2014-01-23 Thread waldo kitty
i'm trying to use one routine (centralControl) to process data from two different routines (inputThis and outputThat)... the one routine (centralControl) needs to call one of two other routines (doThis or doThat)... how? :( procedure doThis; begin end; procedure doThat; begin end; procedu

Re: [fpc-pascal] Strange message about mixed signed expression

2014-01-22 Thread waldo kitty
On 1/22/2014 5:39 PM, Frederic Da Vitoria wrote: 2014/1/22 waldo kitty mailto:wkitt...@windstream.net>> the string type is/was a 256 character array with the 0th (zero-th) element containing the length of the string... this allowed one to immediately know how many characters t

Re: [fpc-pascal] Strange message about mixed signed expression

2014-01-22 Thread waldo kitty
On 1/22/2014 1:00 PM, Jürgen Hestermann wrote: Am 2014-01-22 07:41, schrieb leledumbo: Jürgen Hestermann wrote Realy? But why that? It cannot be negative. Using integer instead of unsigned values reduces the possible (positive) range and produces such illogical (to me) compiler warnings. Delp

Re: [fpc-pascal] best method: multiple three state options in a decision tree

2014-01-22 Thread waldo kitty
On 1/22/2014 12:12 PM, Lukasz Sokol wrote: [...] If you insist on using bits define them: it isn't that i'm insisting on using them... more the way that my linear mind sees them... i'm trying to change this if it affords me better code that is easier to read, understand and modify... c

Re: [fpc-pascal] best method: multiple three state options in a decision tree

2014-01-22 Thread waldo kitty
On 1/22/2014 3:52 AM, Lukasz Sokol wrote: [...] ^and this... looks like a (good?) use for a dynamic array of TMinMaxState = [mmNone, mmMin, mmMinMax, mmMax]; (then var Options = array[static or dynamic] of TMinMaxState;) This assumes options have a fixed position in the array however... but the

Re: [fpc-pascal] Adding files to a tar file

2014-01-21 Thread waldo kitty
On 1/21/2014 7:45 PM, luciano de souza wrote: The program compiles, but I got an error. The message says that the first file of the directory can't be opened. What is wrong? your code uses faAnyfile... perhaps you need to be more restrictive? is your problem caused by a sub-directory with the

Re: [fpc-pascal] best method: multiple three state options in a decision tree

2014-01-21 Thread waldo kitty
On 1/21/2014 10:21 AM, Mattias Gaertner wrote: On Tue, 21 Jan 2014 09:51:38 -0500 waldo kitty wrote: On 1/18/2014 7:40 PM, waldo kitty wrote: what is the best method of coding a decision tree with options that have three states and all options are additive? clarification: i have a

Re: [fpc-pascal] best method: multiple three state options in a decision tree

2014-01-21 Thread waldo kitty
On 1/18/2014 7:40 PM, waldo kitty wrote: what is the best method of coding a decision tree with options that have three states and all options are additive? clarification: i have a situation with 5 (at this time) options and all 5 are three state... each option can be paired with all other

[fpc-pascal] best method: multiple three state options in a decision tree

2014-01-18 Thread waldo kitty
what is the best method of coding a decision tree with options that have three states and all options are additive? clarification: i have a situation with 5 (at this time) options and all 5 are three state... each option can be paired with all other options' states but may NOT be paired with

Re: [fpc-pascal] windows.GetProcAddress() vs DynLibs.GetProcAddress()

2014-01-13 Thread waldo kitty
fred, can you please adjust your quoting to use the standard '>' for previous responses and then add your response below? you do add your response below but the quote is the exact of the previous and it is very hard to read only your responses when the previous is not prefixed by '>'... thanks

Re: [fpc-pascal] how to initialize a SearchRec var?

2014-01-05 Thread waldo kitty
On 1/5/2014 6:26 PM, Sven Barth wrote: On 05.01.2014 19:24, waldo kitty wrote: following up on this... this is what i came up with... is it right/proper? {$IF (FPC_FULLVERSION >= 20701)} {$INFO initializing dirinfo with Default(SearchRec)} dirinfo := default(searchrec); {$E

Re: [fpc-pascal] how to initialize a SearchRec var?

2014-01-05 Thread waldo kitty
On 1/2/2014 6:31 PM, waldo kitty wrote: On 1/2/2014 2:52 PM, Sven Barth wrote: Beginning with 2.7.1 you can use the new Default() intrinsic which takes a type name as first and only argument (it returns a 0 initialized value of that type): 2.7.1 which means that we still have to respond to

Re: [fpc-pascal] how to initialize a SearchRec var?

2014-01-02 Thread waldo kitty
On 1/2/2014 4:27 PM, Mark Morgan Lloyd wrote: Sven Barth wrote: === code begin === var dirinfo: SearchRec; begin dirinfo := Default(SearchRec); Out of curiosity, does this work: var dirinfo: SearchRec= Default(SearchRec); +1 ;) what i run into is porting old code and trying to pos

Re: [fpc-pascal] how to initialize a SearchRec var?

2014-01-02 Thread waldo kitty
On 1/2/2014 2:52 PM, Sven Barth wrote: Beginning with 2.7.1 you can use the new Default() intrinsic which takes a type name as first and only argument (it returns a 0 initialized value of that type): 2.7.1 which means that we still have to respond to queries with older versions... ok, i think

[fpc-pascal] how to initialize a SearchRec var?

2014-01-02 Thread waldo kitty
understanding that SearchRec has different formats for different OS targets, we've tried to use fillchar to initialize it to an empty record... unfortunately that does not remove the hint... instead the hint points to the fillchar line... we do not want to turn off hints so how can we initia

Re: [fpc-pascal] Free Pascal 2.6.4-rc1 released!

2013-12-25 Thread waldo kitty
On 12/25/2013 6:33 PM, Gerhard Scholz wrote: I downloaded ftp://freepascal.stack.nl/pub/fpc/beta/2.6.4-rc1/i386-win32/fpc-2.6.4rc1.i386-win32.exe The setup the said: "The setup files are corrupted. Please obtain a new copy of the program." I did that; the second copy also didn't work. let

Re: [fpc-pascal] Re: Announcing PUMA Repository (Ralf Quint)

2013-12-15 Thread waldo kitty
On 12/15/2013 3:06 PM, Johannes W. Dietrich wrote: A proper email client (instead of Apple Mail) would be a good start... ;-) Ralf Apple Mail doesn't seem to be the only software that doesn't know what to do with this type of encoded data. The problem seem to affect the list processor, too. Se

Re: [fpc-pascal] Announcing PUMA Repository

2013-12-15 Thread waldo kitty
On 12/15/2013 8:41 AM, Jonas Maebe wrote: On 14 Dec 2013, at 21:52, waldo kitty wrote: On 12/14/2013 8:00 AM, Jonas Maebe wrote: [...] No, because the MIME header seems to be invalid. thunderbird had no problem decoding the post... As mentioned, that's because your copy probably w

Re: [fpc-pascal] Re: Announcing PUMA Repository (waldo kitty)

2013-12-14 Thread waldo kitty
3 um 12:00 schrieb fpc-pascal-requ...@lists.freepascal.org <mailto:fpc-pascal-requ...@lists.freepascal.org>: Re: Announcing PUMA Repository (waldo kitty) -- NOTE: No off-list assistance is given without prior approval. Please keep mailing list traffic on the list unless pr

Re: [fpc-pascal] Announcing PUMA Repository

2013-12-14 Thread waldo kitty
On 12/14/2013 8:00 AM, Jonas Maebe wrote: On 13 Dec 2013, at 21:33, waldo kitty wrote: On 12/13/2013 3:12 PM, Johannes W. Dietrich wrote: Sorry, I cannot understand your message. Which software do I need to decode it? what you quoted is a MIME encoded block... the message headers should

Re: [fpc-pascal] Announcing PUMA Repository

2013-12-13 Thread waldo kitty
On 12/13/2013 5:41 PM, Vincent Snijders wrote: 2013/12/13 Johannes W. Dietrich mailto:j.w.dietr...@medizinische-kybernetik.de>> Sorry, I cannot understand your message. Which software do I need to decode it? I have no idea what went wrong. nothing went wrong... it appears that someo

Re: [fpc-pascal] Announcing PUMA Repository

2013-12-13 Thread waldo kitty
On 12/13/2013 3:12 PM, Johannes W. Dietrich wrote: Sorry, I cannot understand your message. Which software do I need to decode it? what you quoted is a MIME encoded block... the message headers should give you the information needed to decode it... your mail software should have decoded it fo

  1   2   3   4   >