Re: [fpc-pascal] for .. in loop implementation

2009-01-08 Thread Jeremy Cowgar
Marco van de Voort wrote: In our previous episode, Jeremy Cowgar said: What is the negative of adding it? Clutter, maintenance, and somebody has to do both implementation and maintenance, addition to documentation tool, pretty printer etc. I wonder how much maintenance would

Re: [fpc-pascal] for .. in loop implementation

2009-01-08 Thread Jeremy Cowgar
Marco van de Voort wrote: In our previous episode, leledumbo said: The latter one has iteration overheads, while the former can be optimized to loop as many as needed. I'm not saying I'm the best Pascal programmer, but in case there's a (better) solution to this (rather than extending the la

Re: [fpc-pascal] property of an array

2009-01-04 Thread Jeremy Cowgar
dmitry boyarintsev wrote: 1) type StringArray : array of String; defines a StringArray type to be dynamic array. are you sure, that you have SetColumnNames defined as procedure SetColumnNames(names : StringArray); rather than: procedure SetColumnNames(names : array of string); ??? Hm, you

Re: [fpc-pascal] property of an array

2009-01-04 Thread Jeremy Cowgar
On Sun, 04 Jan 2009 05:25:40 -0500, Joost van der Sluis wrote: Op zaterdag 03-01-2009 om 19:04 uur [tijdzone -0500], schreef Jeremy Cowgar: myObj.ColumnNames := [ 'Id', 'Name', 'Age' ]; Error: Ordinal expression expected A list of values between squ

[fpc-pascal] Message Boards or Mailing List?

2009-01-03 Thread Jeremy Cowgar
I am curious what is the best way to get help with Free Pascal? Seems there are two competing methods, the mailing list and then the message boards (http://community.freepascal.org:1/bboards/) ... Just wondering if there is a preferred method, if one is legacy the other a replacement or

[fpc-pascal] property of an array

2009-01-03 Thread Jeremy Cowgar
I am trying to make this work: type StringArray : array of String; ... later in code ... procedure SetColumnNames(names : StringArray); property ColumnNames : StringArray write SetColumnNames; ... later in code ... procedure TMyObject.SetColumnNames(names : StringArray); begin ... cod

[fpc-pascal] XPath Problem?

2006-10-02 Thread Jeremy Cowgar
Hello, I am trying to use the xpath unit... I am getting an An unhandled exception occurred at $000E4268 : EAccessViolation : Access violation $000E4268 Via gdb, I can see the place it's happening is xpath.pp:2470. Here is my simple test program: program xpathtest; uses dom, xpath; var

[fpc-pascal] TDatabase Docs?

2006-09-27 Thread Jeremy Cowgar
Does anyone know where I can read about the TDatabase classes? I know I can look in the source, but I was hoping for an API ref or something. Thanks, Jeremy ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mail

Re: [fpc-pascal] TDatabase, PostgreSQL and Mac OS X?

2006-09-27 Thread Jeremy Cowgar
ply rename libpq.dylib to libpq.so? --- Jeremy Cowgar <[EMAIL PROTECTED]> wrote: I have the following simple program that does not seem to be working. Connectivity using postgres unit works fine. Here's the error and then the program will follow. Thank you! Oh, a note. I do not hav

[fpc-pascal] TDatabase, PostgreSQL and Mac OS X?

2006-09-26 Thread Jeremy Cowgar
I have the following simple program that does not seem to be working. Connectivity using postgres unit works fine. Here's the error and then the program will follow. Thank you! Oh, a note. I do not have libpq.so. I do have libpq.dylib. Also, my postgresql is installed in a non-standard plac

Re: [fpc-pascal] TStringList Bug?

2006-09-26 Thread Jeremy Cowgar
t. Thanks for the info though, I'll figure another way. Jeremy On Sep 26, 2006, at 11:27 AM, Michael Van Canneyt wrote: On Tue, 26 Sep 2006, Jeremy Cowgar wrote: Below is a simple program that I *think* is working wrong. I am new to Pascal, so I may very well be doing something wrong.

[fpc-pascal] TStringList Bug?

2006-09-26 Thread Jeremy Cowgar
Below is a simple program that I *think* is working wrong. I am new to Pascal, so I may very well be doing something wrong. Can anyone comment? Jeremy program stringlistbug; uses Classes; var SL : TStringList; begin SL := TStringList.Create; SL.

Re: [fpc-pascal]Local Ip Address

2004-02-23 Thread Jeremy Cowgar
Crabtree, Chad wrote: Hello I am having a dikens of a time getting my IP address on the machine that I am working on. I've looked in the mailing list and I found something that I've been toying with but still I cannot get the xxx.xxx.xxx.xxx style name I can only get my machine name. Here's what

Re: [fpc-pascal]My object function is overriding real function

2004-02-19 Thread Jeremy Cowgar
Quoting Peter Vreman <[EMAIL PROTECTED]>: > Use explicit namespacing: System.Close(sin) Thank you all for the many responses. I now understand a bit more about the namespaces and have a working program :) Thanks, Jeremy ___ fpc-pascal maillist - [E

[fpc-pascal]My object function is overriding real function

2004-02-18 Thread Jeremy Cowgar
Greetings. I have a object that connects to a speech server, festival. In my object, I define a function called close. This must close the socket connection, which is done by the function close. Therefore, I am having a problem, because simply calling close with the sin and sout parameters results

[fpc-pascal]TDatabase, TDataset, Mysql

2004-02-18 Thread Jeremy Cowgar
Greetings. I am new to Pascal, and FPC. I am curious how I can learn more about using TDatabase and TDataset in conjunction with MySQL, if that's even possible. I have only seen references to these classes and am not certian what they accomplish, or their interface, only that they are used for dat