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

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

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

[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

[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

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

2006-09-27 Thread Jeremy Cowgar
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 have libpq.so. I do have libpq.dylib

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

Re: [fpc-pascal] TStringList Bug?

2006-09-26 Thread Jeremy Cowgar
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. Can anyone comment

[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

[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

[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