Re: [fpc-pascal] FPC release for Solaris not available on SF

2011-07-29 Thread michael . vancanneyt
On Thu, 28 Jul 2011, Graeme Geldenhuys wrote: Hi, While I was trying out OpenSolaris and FPC, I did notice one small issue. The FPC 2.4.4 release for Solaris is not available for download from SourceForge, but it was from the freepascal.org domain. Was this simply a minor oversight?

Re: [fpc-pascal] XML-XSD export: importer how to test

2011-07-29 Thread michael . vancanneyt
On Fri, 29 Jul 2011, Felipe Monteiro de Carvalho wrote: On Thu, Jul 28, 2011 at 4:28 PM, Reinier Olislagers reinierolislag...@gmail.com wrote: 5. I briefly thought about including OpenOffice Calc (ODT) format exporting but that seems a bit overkill as there already is a CSV export format.

Re: [fpc-pascal] XML-XSD export: importer how to test

2011-07-29 Thread michael . vancanneyt
On Fri, 29 Jul 2011, Felipe Monteiro de Carvalho wrote: On Fri, Jul 29, 2011 at 10:44 AM, michael.vancann...@wisa.be wrote: Because depending on a full-fledged spreadsheet technology for exporting data is overkill. The idea of the export routines is to be able to export data without too

Re: [fpc-pascal] Memds deprecated?

2011-07-29 Thread michael . vancanneyt
On Fri, 29 Jul 2011, Reinier Olislagers wrote: Hi list, According to Joost van der Sluis - 2010-07-22 12:14 in http://bugs.freepascal.org/view.php?id=13967 TMemDataset is deprecated and TBufDataset should be used instead. If this is true, could TMemDataset be marked as deprecated in the

Re: [fpc-pascal] Is there a way to create a Firebird embedded database programmatically?

2011-08-03 Thread michael . vancanneyt
On Wed, 3 Aug 2011, Tony Whyman wrote: Actually, my preference for creating a database in a deployed application is to first create it on my local system using isql with input from a script and then to save it using gbak in a portable format. The TIBRestoreService is then used to create the

Re: [fpc-pascal] XMLXSDExport: line ending in Excel cells

2011-08-12 Thread michael . vancanneyt
On Fri, 12 Aug 2011, Reinier Olislagers wrote: Hi list, I've been refactoring the XMLXSDExport code and am now busy fixing some bugs based on testing. I'd appreciate your input. In Excel text fields, you can generate a line ending by pressing Alt-Enter. On export to XML this is written as

Re: [fpc-pascal] Patch: new XML export for FCL-DB ready for inclusion, issue 19790 - includes Delphi Clientdataset

2011-08-15 Thread michael . vancanneyt
On Mon, 15 Aug 2011, Reinier Olislagers wrote: On 15-8-2011 11:44, Reinier Olislagers wrote: On 15-8-2011 11:25, Michael Van Canneyt wrote: I created a dataset with 2 fields. A ftString field with size 33, and a ftWideString field with size 44. Based on the following output from

Re: [fpc-pascal] Virtual inline methods

2011-08-18 Thread michael . vancanneyt
On Thu, 18 Aug 2011, dhkblas...@zeelandnet.nl wrote: ZeelandNet Webmail I'm porting a piece of code from C++ and there they use virtual inline methods. I tried it in FPC but it accepts either virtual OR inline methods. Is this a bug, or a feature that I don't understand enough about? You

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

2011-09-02 Thread michael . vancanneyt
On Fri, 2 Sep 2011, Reinier Olislagers wrote: On 2-9-2011 13:23, michael.vancann...@wisa.be wrote: On Fri, 2 Sep 2011, Reinier Olislagers wrote: snip In packages\fcl-db\src\export\fpdbfexport.pp These tablelevels/formats are defined: TTableFormat =

Re: [fpc-pascal] TField.Attributeset explanation?

2011-09-05 Thread michael . vancanneyt
On Mon, 5 Sep 2011, Alex Shishkin wrote: 05.09.2011 12:30, michael.vancann...@wisa.be пишет: On Mon, 5 Sep 2011, Reinier Olislagers wrote: That is normal. Just set the 'Required' property of the CUSTNO field to False. Forget the 'Attributeset' property. It's not used in FPC. (in fact,

Re: [fpc-pascal] TField.Attributeset explanation?

2011-09-05 Thread michael . vancanneyt
On Mon, 5 Sep 2011, Reinier Olislagers wrote: On 5-9-2011 11:39, michael.vancann...@wisa.be wrote: On Mon, 5 Sep 2011, Alex Shishkin wrote: 05.09.2011 12:30, michael.vancann...@wisa.be пишет: Forget the 'Attributeset' property. It's not used in FPC. (in fact, I don't even know what it's

Re: [fpc-pascal] How to detect supported data types in dataset?

2011-09-08 Thread michael . vancanneyt
On Thu, 8 Sep 2011, Reinier Olislagers wrote: Hi list, Possible newbie question so feel free to educate me ;) (Away for some days, so may not read response until back) A patch by Ludo Brands on bufdataset (mantis 19930) got me thinking: const ftSupported = [ftString,ftGuid,... and so on];

Re: [fpc-pascal] Linux - ExecuteProcess versus fpSystem

2011-09-08 Thread michael . vancanneyt
On Wed, 7 Sep 2011, brian wrote: Reinforcing the subject, this is using Linux - to be specific, FPC 2.4.2-0 under 64 bit Mint 9. I'm trying to convert a large number of MP3 files to Ogg Vorbis. This is a two step process, first I run mpg321 to switch them to a .wav file, then oggenc to

Re: [fpc-pascal] Linux - ExecuteProcess versus fpSystem

2011-09-09 Thread michael . vancanneyt
On Fri, 9 Sep 2011, Marco van de Voort wrote: In our previous episode, brian said: write a batch file for the actual conversions. What are the commands? mpg321 -q -w tempfile.wav inputfile.mp3 oggenc -Q --output=outputfile.ogg tempfile.wav between the ExecuteProcess and fpSystem calls, I

Re: [fpc-pascal] Linux - ExecuteProcess versus fpSystem

2011-09-09 Thread michael . vancanneyt
On Fri, 9 Sep 2011, Marco van de Voort wrote: In our previous episode, michael.vancann...@wisa.be said: You must remove the quotes around 'outputfile.org': Status:=ExecuteProcess('/path/to/oggenc',['-Q','--output=outputfile.org','tempfile.wav']); While better, this is afaik not

Re: [fpc-pascal] [Patch] New tests for fcl-db export

2011-09-16 Thread michael . vancanneyt
On Fri, 16 Sep 2011, Reinier Olislagers wrote: Hi list, FYI hopefully implementation: I've been writing some tests for fcl-db export, that test basic functionality for: - CSV export - DBF export - SimpleXML export Please find them in Mantis: 20271 [Patch] SimpleXML export: new test for

Re: [fpc-pascal] freetype unit + unicode

2011-10-04 Thread michael . vancanneyt
On Tue, 4 Oct 2011, David Emerson wrote: What freetype API function are you calling? Not sure if it applies to freetype, but with Xft (as implemented and used in fpGUI), there are various versions of the same API. You need to call the correct one based on the encoding type of you text.

Re: [fpc-pascal] freetype unit + unicode

2011-10-06 Thread michael . vancanneyt
On Wed, 5 Oct 2011, David Emerson wrote: On Tue 4 Oct 2011, michael.vancann...@wisa.be wrote: If you need some UTF8 extensions to the freetype unit, feel free to make some suggestions, and we'll see what we can do. When the unit was made, unicode support was a thing of the distant future.

Re: [fpc-pascal] 3-tier database applications with FPC

2011-10-19 Thread michael . vancanneyt
On Wed, 19 Oct 2011, Graeme Geldenhuys wrote: Hi, Just over 3 years ago I asked about FPC support for creating 3-tier database applications. The answer was basically: it's not possible (unless you roll your own Midas / Datasnap code). TClientDataset also missed some vital features, and the

Re: [fpc-pascal] 3-tier database applications with FPC

2011-10-19 Thread michael . vancanneyt
On Wed, 19 Oct 2011, Graeme Geldenhuys wrote: On 2011-10-19 11:36, michael.vancann...@wisa.be wrote: Out of the box: no. OK, thanks. Do you know if TClientDataset has improved at all? Midas is written in C++, so that's not going to happen. I didn't know that. OTOH the

Re: [fpc-pascal] 3-tier database applications with FPC

2011-10-19 Thread michael . vancanneyt
On Wed, 19 Oct 2011, Graeme Geldenhuys wrote: On 2011-10-19 11:23, Marco van de Voort wrote: - kbmMW http://components4developers.com/ the author was on the Lazarus day in 2010. Strange, nowhere on the kbmMW website do I see any mention of Free Pascal Compiler or Lazarus IDE support.

Re: [fpc-pascal] 3-tier database applications with FPC

2011-10-19 Thread michael . vancanneyt
On Wed, 19 Oct 2011, Leonardo M. Ramé wrote: From: Graeme Geldenhuys graemeg.li...@gmail.com To: FPC-Pascal users discussions fpc-pascal@lists.freepascal.org Sent: Wednesday, October 19, 2011 8:25 AM Subject: Re: [fpc-pascal] 3-tier database applications with

Re: [fpc-pascal] Unicode function names

2011-10-20 Thread michael . vancanneyt
On Thu, 20 Oct 2011, Mark Morgan Lloyd wrote: Out of curiosity, I've just tried creating a function named ⍳ (Unicode character 2373, i.e. the APL iota function). FPC trunk complains Fatal: illegal character '???' ($E2) What is the rule here- functions must be entirely ANSI or functions

Re: [fpc-pascal] sqldb how to find a record fast with primary key

2011-10-21 Thread michael . vancanneyt
On Fri, 21 Oct 2011, Felipe Monteiro de Carvalho wrote: Ping, No sqldb specific answers on this one? I did some googling and also searched for TPrimaryKey or LocalIndex in sqldb without results ... =( To my knowledge there is no fast search/locate in sqldb. Maybe we should have a look at

Re: [fpc-pascal] sqldb how to find a record fast with primary key

2011-10-21 Thread michael . vancanneyt
On Fri, 21 Oct 2011, Martin Schreiber wrote: On Friday 21 October 2011 16.30:18 michael.vancann...@wisa.be wrote: On Fri, 21 Oct 2011, Felipe Monteiro de Carvalho wrote: Ping, No sqldb specific answers on this one? I did some googling and also searched for TPrimaryKey or LocalIndex in

Re: [fpc-pascal] How to insert a record and get the primary key with sqldb?

2011-10-22 Thread michael . vancanneyt
On Sat, 22 Oct 2011, Felipe Monteiro de Carvalho wrote: Hello, Yet another chapter of my database problems =) Ok, now I want to insert a record in my table and I would like to obtain the auto-generated PrimaryKey I tryed a number of options: SQLGameSession.Insert(); SQLGameSession.Edit;

Re: [fpc-pascal] How to insert a record and get the primary key with sqldb?

2011-10-22 Thread michael . vancanneyt
On Sat, 22 Oct 2011, Marco van de Voort wrote: In our previous episode, Felipe Monteiro de Carvalho said: Ok, now I want to insert a record in my table and I would like to obtain the auto-generated PrimaryKey This is a classic problem, since SQL simply doesn't support this. So all DBs do

Re: [fpc-pascal] Re: How to insert a record and get the primary key with sqldb?

2011-10-22 Thread michael . vancanneyt
On Sat, 22 Oct 2011, Felipe Monteiro de Carvalho wrote: Hello, Ok, searching some more I see that select scope_identity() could return the generated primary key. But how to get the value?  DBComm.PQConnection.ExecuteDirect(SQLText); The method above has no return value =( Use a TSQLQuery

Re: [fpc-pascal] Re: How to insert a record and get the primary key with sqldb?

2011-10-24 Thread michael . vancanneyt
On Mon, 24 Oct 2011, Reinier Olislagers wrote: On 22-10-2011 15:33, michael.vancanneyt-0is9kj9s...@public.gmane.org wrote: On Sat, 22 Oct 2011, Marco van de Voort wrote: In our previous episode, Felipe Monteiro de Carvalho said: Ok, now I want to insert a record in my table and I would

Re: RE : [fpc-pascal] Re: How to insert a record and get the primary keywith sqldb?

2011-10-24 Thread michael . vancanneyt
On Mon, 24 Oct 2011, Ludo Brands wrote: What's funny is that I never understood how the MySQL/SQL-Server way could correctly work. For example I have 2 tables, both with an auto-incremental field. Table 1 has an after insert trigger that does an extra insert in table 2. When I do an insert

Re: [fpc-pascal] How to insert a record and get the primary key with sqldb?

2011-10-24 Thread michael . vancanneyt
On Mon, 24 Oct 2011, Vincent Snijders wrote: 2011/10/22 Graeme Geldenhuys graemeg.li...@gmail.com: 1) Use a GUID created at the time you do the Insert. This also means you can do Master/Detail records with no problems at all. I consider this bad advice. GUID are bad primary keys, because

Re: [fpc-pascal] How to insert a record and get the primary key with sqldb?

2011-10-24 Thread michael . vancanneyt
On Mon, 24 Oct 2011, Vincent Snijders wrote: 2011/10/24 michael.vancann...@wisa.be: On Mon, 24 Oct 2011, Vincent Snijders wrote: 2011/10/22 Graeme Geldenhuys graemeg.li...@gmail.com: 1) Use a GUID created at the time you do the Insert. This also means you can do Master/Detail records

Re: [fpc-pascal] How to insert a record and get the primary key with sqldb?

2011-10-24 Thread michael . vancanneyt
On Mon, 24 Oct 2011, Graeme Geldenhuys wrote: On 2011-10-24 14:25, michael.vancann...@wisa.be wrote: And, very important but often underestimated: At least our clients can read an integer primary/foreign key aloud over the phone when the need arises. I can't hear them doing that with a GUID

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

2011-10-25 Thread michael . vancanneyt
On Tue, 25 Oct 2011, Marco van de Voort wrote: In our previous episode, t...@free.fr said: it will be more readable (imo)? The example still does not take This seldom happens, but here I fully agree with Florian. ;-) Every example of anonymous methods I have seen so far, can easily be done

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

2011-10-25 Thread michael . vancanneyt
On Tue, 25 Oct 2011, Marco van de Voort wrote: In our previous episode, michael.vancann...@wisa.be said: targethread.queue( procedure(targetobject:ttargetobject;a:integer;b:someobject;c:string) begin targetobject.destinationprocedure(a,b,c); end;

Re: [fpc-pascal] SQLite Load_extension seems to be working

2011-11-07 Thread michael . vancanneyt
On Mon, 7 Nov 2011, Reinier Olislagers wrote: On 7-11-2011 8:23, Reinier Olislagers wrote: 2. You can apparently load the spatialite (and dependencies) dll/so as an extension to SQLite, with a statement like [3] select load_extension('libspatialite-4.dll'); However, it seems you have to

Re: [fpc-pascal] Generics vs TCollection

2011-11-08 Thread michael . vancanneyt
On Tue, 8 Nov 2011, Graeme Geldenhuys wrote: Hi, I was reviewing some old code that used TCollection TCollectionItem descendants. This made me think... With the introduction of Generics, is there really still a need for TCollection/TCollectionItem? I have tons of code that uses them.

Re: [fpc-pascal] TClientDataset equivalent?

2011-11-08 Thread michael . vancanneyt
On Tue, 8 Nov 2011, Rich Saunders wrote: I'm designing a new program and would like to use Delphi's TClientDataset but would also like to keep FPC compatibility as high as possible. What is the closest equivalent available in the FPC ecosystem? TBufDataset in the bufdataset unit. It has

Re: [fpc-pascal] Generics vs TCollection

2011-11-08 Thread michael . vancanneyt
On Tue, 8 Nov 2011, Graeme Geldenhuys wrote: On 8 November 2011 12:13, michael.vancanneyt@... wrote: I have tons of code that uses them. Lazarus has tons of code that uses them. There is no way that we're going to rewrite all that stuff. Sorry for any confusion. I did not post this with

Re: [fpc-pascal] ioda joda fulltext search not working

2011-11-09 Thread michael . vancanneyt
On Tue, 8 Nov 2011, nore...@z505.com wrote: Has anyone got Ioda 1.3 fulltext search project working? I have it working. Every time I try version 1.3 it doesn't seem to find any words in a file that is indexed when I try a simple demo with it. The project IODA is here:

Re: [fpc-pascal] ioda joda fulltext search not working

2011-11-09 Thread michael . vancanneyt
On Wed, 9 Nov 2011, Graeme Geldenhuys wrote: On 9 November 2011 10:40, michael.vancanneyt@. wrote: It definitely works, I also use it in a commercial project to implement full-text-search on a firebird database. Now that would be pretty awesome! :) It is. When I showed it to the

Re: [fpc-pascal] Database access in console program

2011-11-09 Thread michael . vancanneyt
On Wed, 9 Nov 2011, Koenraad Lelong wrote: Hi, I don't know if it's the right place to ask, maybe it's for the lazarus list. When I insert values I do : myTable.Params.ParamByName('Field1').Value:='Value1'; myTable.Params.ParamByName('Field2').Value:='Value2'; This should be:

Re: [fpc-pascal] Location of fpvectorial

2011-11-10 Thread michael . vancanneyt
On Thu, 10 Nov 2011, Felipe Monteiro de Carvalho wrote: I moved fpvectorial out of fpc because I found it too slow/problematic for me to develop inside the FCL. it was bothersome to rebuild the FCL and reconfigure the environment noting that I develop across 5 different setups on a daily

Re: [fpc-pascal] Makeskel error or error behind keyboard?

2011-11-15 Thread michael . vancanneyt
On Tue, 15 Nov 2011, Sven Barth wrote: Am 14.11.2011 17:11, schrieb Reinier Olislagers: Snippet of the code in question: { TCustomXMLXSDExporter } TCustomXMLXSDExporter = class(TCustomFileExporter) const DefaultDatasetName = 'Table1';== this is where it bombs //

Re: [fpc-pascal] various ways of passing a class instance as a parameter

2011-11-15 Thread michael . vancanneyt
On Tue, 15 Nov 2011, Graeme Geldenhuys wrote: Hi, What exactly is the difference (if any) between the parameter modifier when you pass a class instance to a procedure? It behaves exactly the same as if you would pass a typed pointer. Michael.

Re: [fpc-pascal] SQLDB Firebird port other than 3050

2011-11-15 Thread michael . vancanneyt
On Tue, 15 Nov 2011, Reinier Olislagers wrote: Hi all, This is probably my confused week, but I couldn't find any documentation. How do I specify the port number when connecting to Firebird/Interbase databases with sqldb on a different port than the default (3050)? Try

Re: [fpc-pascal] Re: pchar with more than 255 characters

2011-11-16 Thread michael . vancanneyt
On Wed, 16 Nov 2011, Rainer Stratmann wrote: Am Monday 14 November 2011 22:00:28 schrieb Jonas Maebe: On 13 Nov 2011, at 14:02, Rainer Stratmann wrote: Am Sunday 13 November 2011 02:15:07 schrieb leledumbo: It works when {$LONGSTRINGS ON} or {$H+} directive exists. I think the compiler

Re: [fpc-pascal] JSON - RTTI streaming.

2011-11-17 Thread michael . vancanneyt
On Wed, 16 Nov 2011, Stephane Carre wrote: Hello Michael, In the current stable release (fpc 2.4.4) the unit tests for fpjsonrtti fail to compile because unit testcomps is missing. I believe this is the unit with the test classes used for the destreamer tests. Where can I find this unit ?

Re: [fpc-pascal] Makeskel how to add Firebird connection documentation?

2011-11-17 Thread michael . vancanneyt
On Thu, 17 Nov 2011, Reinier Olislagers wrote: Hi list, I want to document packages/fcl-db/src/sqldb/interbase/ibconnection.pp So I run this to get started: makeskel --disable-private --emit-class-separator --update --package=fcl-sqldb

Re: [fpc-pascal] Makeskel how to add Firebird connection documentation?

2011-11-17 Thread michael . vancanneyt
On Thu, 17 Nov 2011, Graeme Geldenhuys wrote: On 17 November 2011 11:06, michael.vancanneyt@... wrote: Apart from that, is this the right command to start? You can drop the '--update', if it is the first time. and the output option should be  --output=ibconnection.xml, not  

Re: [fpc-pascal] Makeskel how to add Firebird connection documentation?

2011-11-17 Thread michael . vancanneyt
On Thu, 17 Nov 2011, Graeme Geldenhuys wrote: On 17 November 2011 11:45, michael.vancanneyt@ wrote: I'm not sure why you recommend leaving makeskel ? I use it always for the initial file ? Given the proper parameters, it creates a very usable initial file ? Maybe fpdoc has improved

Re: [fpc-pascal] Setting environment variables on Unix/Linux?

2011-11-17 Thread michael . vancanneyt
On Thu, 17 Nov 2011, Reinier Olislagers wrote: Hi list, It seems FPC allows one to retrieve environment variables on Linux/Unix (GetEnvironmentVariable) but not to set them. Is that correct? Yes. Some digging: Setting environment variables on Unix with gnu libc:

Re: [fpc-pascal] Is there a bug in TStrings.Delimiter handling?

2011-11-21 Thread michael . vancanneyt
On Mon, 21 Nov 2011, Frank Church wrote: adapterVals: TStringList adapterVals.Delimiter := ';'; adapterVals.DelimitedText := '192.168.1.2,00:0E:08:E0:7C:ED,Word Space'; adapterVals[0] = '192.168.1.2' adapterVals[1] = '00:0E:08:E0:7C:ED' adapterVals[2] = 'Word' - this should be 'Word Space'

Re: [fpc-pascal] Is there a bug in TStrings.Delimiter handling?

2011-11-21 Thread michael . vancanneyt
On Mon, 21 Nov 2011, michael.vancann...@wisa.be wrote: On Mon, 21 Nov 2011, Frank Church wrote: adapterVals: TStringList adapterVals.Delimiter := ';'; adapterVals.DelimitedText := '192.168.1.2,00:0E:08:E0:7C:ED,Word Space'; adapterVals[0] = '192.168.1.2' adapterVals[1] =

Re: [fpc-pascal] Is there a bug in TStrings.Delimiter handling?

2011-11-21 Thread michael . vancanneyt
On Mon, 21 Nov 2011, Graeme Geldenhuys wrote: On 2011-11-21 10:28, michael.vancann...@wisa.be wrote: A space is always treated special. Where in the Delphi documentation does it mention that? I couldn't find any such reference in the Delphi 7 docs, and I thought FPC implements behaviour

Re: [fpc-pascal] Is there a bug in TStrings.Delimiter handling?

2011-11-21 Thread michael . vancanneyt
On Mon, 21 Nov 2011, Graeme Geldenhuys wrote: On 2011-11-21 11:17, michael.vancanneyt@w. wrote: Where in the Delphi documentation does it mention that? I couldn't find any such reference in the Delphi 7 docs, and I thought FPC implements behaviour based on documented behaviour, not

Re: [fpc-pascal] FCL Web Combined Demo

2011-11-21 Thread michael . vancanneyt
IE has a bug that causes it to report an error if the last element in an array or object is empty. (it is explicitly mentioned in the standard that it is allowed). So you should search for a , in front of } and ] and remove it. Attached is a cleaned-up version of users.js, where I corrected 3

Re: [fpc-pascal] FCL Web Combined Demo

2011-11-21 Thread michael . vancanneyt
On Mon, 21 Nov 2011, Dimitrios Chr. Ioannidis wrote: On 21/11/2011 1:28 μμ, michael.vancann...@wisa.be wrote: IE has a bug that causes it to report an error if the last element in an array or object is empty. (it is explicitly mentioned in the standard that it is allowed). So you should

Re: [fpc-pascal] FCL Web Combined Demo

2011-11-21 Thread michael . vancanneyt
On Mon, 21 Nov 2011, Marcos Douglas wrote: On Mon, Nov 21, 2011 at 9:32 AM, Felipe Monteiro de Carvalho felipemonteiro.carva...@gmail.com wrote: Hello, How did you generate that grid? You wrote your own html+javascript or are you using a ready made javascript library or something else? I

Re: [fpc-pascal] Name of a var

2011-11-21 Thread michael . vancanneyt
On Mon, 21 Nov 2011, Rainer Stratmann wrote: Is it possible to get information of the name of a var? For Example. var counter : longint; varname : shortstring; varname := nameofvar( counter ); The content of varname then is 'counter'. There is no way in Pascal. Conceivably, you can make

Re: [fpc-pascal] Name of a var

2011-11-21 Thread michael . vancanneyt
On Mon, 21 Nov 2011, Rainer Stratmann wrote: Am Monday 21 November 2011 14:08:43 schrieb michael.vancann...@wisa.be: On Mon, 21 Nov 2011, Rainer Stratmann wrote: Is it possible to get information of the name of a var? For Example. var counter : longint; varname : shortstring; varname :=

Re: [fpc-pascal] Name of a var

2011-11-22 Thread michael . vancanneyt
On Tue, 22 Nov 2011, Sven Barth wrote: Am 21.11.2011 14:22, schrieb michael.vancann...@wisa.be: On Mon, 21 Nov 2011, Rainer Stratmann wrote: Am Monday 21 November 2011 14:08:43 schrieb michael.vancann...@wisa.be: On Mon, 21 Nov 2011, Rainer Stratmann wrote: Is it possible to get

Re: [fpc-pascal] Re: Firebird Connection documentation: suggestions? remarks?

2011-11-22 Thread michael . vancanneyt
On Tue, 22 Nov 2011, Reinier Olislagers wrote: On 19-11-2011 14:21, Reinier Olislagers wrote: Hi list, Please find attached my current version for the Interbase/Firebird connection documentation source. If the attachment gets deleted by the list or if you want to see the latest version,

Re: [fpc-pascal] Name of a var

2011-11-22 Thread michael . vancanneyt
On Tue, 22 Nov 2011, Graeme Geldenhuys wrote: On 2011-11-22 11:13, michael.vancann...@wisa.be wrote: Typing VarName:=nameofvar( counter ); is more work than VarName:='counter'; So what's the point ? Maybe there is a use for it in the dbugintf unit? eg: SendInteger(counter) No, if

Re: [fpc-pascal] Name of a var

2011-11-22 Thread michael . vancanneyt
On Tue, 22 Nov 2011, Sven Barth wrote: Am 22.11.2011 10:13, schrieb michael.vancann...@wisa.be: If we choose to implement such a function, yes. My response was based on the compiler as it is. Seems like I'm not the only one that likes to have such a function. Though I would extend it to

Re: [fpc-pascal] Name of a var

2011-11-22 Thread michael . vancanneyt
On Tue, 22 Nov 2011, Rainer Stratmann wrote: Am Tuesday 22 November 2011 10:13:20 schrieb michael.vancann...@wisa.be: On Tue, 22 Nov 2011, Sven Barth wrote: Am 21.11.2011 14:22, schrieb michael.vancann...@wisa.be: On Mon, 21 Nov 2011, Rainer Stratmann wrote: Am Monday 21 November 2011

Re: [fpc-pascal] Re: Firebird Connection documentation: suggestions? remarks?

2011-11-22 Thread michael . vancanneyt
On Tue, 22 Nov 2011, Reinier Olislagers wrote: On 22-11-2011 10:32, michael.vancanneyt-0is9kj9s...@public.gmane.org wrote: Still don't understand what the TIBConnectionDef/TConnectionDef class is used for? It is uses for the TSQLConnector component. Actually, I don't understand

Re: [fpc-pascal] Name of a var

2011-11-22 Thread michael . vancanneyt
On Tue, 22 Nov 2011, Rainer Stratmann wrote: Am Tuesday 22 November 2011 12:05:07 schrieb michael.vancann...@wisa.be: On Tue, 22 Nov 2011, Sven Barth wrote: Am 22.11.2011 10:13, schrieb michael.vancann...@wisa.be: If we choose to implement such a function, yes. My response was based on the

Re: [fpc-pascal] Name of a var

2011-11-22 Thread michael . vancanneyt
On Tue, 22 Nov 2011, Rainer Stratmann wrote: The name of a variable is only used for debugging, and then you can just as well use the debug info. And the change of a name is usually done with searchreplace, option whole word, so the text 'counter' should get changed as well. The name of a

Re: [fpc-pascal] Re: dll for C#

2011-11-28 Thread michael . vancanneyt
On Mon, 28 Nov 2011, ik wrote: On Mon, Nov 28, 2011 at 10:22, ik ido...@gmail.com wrote: Hello, I have a requirement to create an API for application that C# can communicate with using dll (rather then REST). What is required by FPC to be able to create such DLL ? And one other thing I

Re: [fpc-pascal] fcl-web TFPHttpServer component problem

2011-11-28 Thread michael . vancanneyt
On Mon, 28 Nov 2011, Graeme Geldenhuys wrote: On 28/11/2011, Leonardo M. Ramé martinrame@y. wrote: I think that class was meant to be used as the main program loop. If so, that's a pretty dumb design. Ah. And why is that so ? Also the HTTP server is implemented as a component

Re: [fpc-pascal] fcl-web TFPHttpServer component problem

2011-11-28 Thread michael . vancanneyt
On Mon, 28 Nov 2011, Graeme Geldenhuys wrote: On 28/11/2011, michael.vancann...@wisa.be michael.vancanneyt@w. wrote: If so, that's a pretty dumb design. Ah. And why is that so ? Now it's much less useful. How are you supposed to correctly terminate the HTTP Server once Active =

Re: [fpc-pascal] fcl-web TFPHttpServer component problem

2011-11-28 Thread michael . vancanneyt
On Mon, 28 Nov 2011, Graeme Geldenhuys wrote: On 28/11/2011, michael.vancann...@wisa.be michael.vancanneyt@ wrote: The mistake you make is that you create a loop in the thread; The thread does not need a loop. It just needs to set Active to true: Procedure TMyServerThread.Execute;

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

2011-12-07 Thread michael . vancanneyt
On Wed, 7 Dec 2011, Graeme Geldenhuys wrote: Hi, I'm busy working on some of the remaining unit tests for the tiOPF project that doesn't run 100% to my satisfaction yet under FPC (compared to Delphi 7). One of the tests is for a Simple Encryption algorithm implemented in tiOPF, that runs

Re: [fpc-pascal] TFPHTTPClient Post works with jetty, fails with tomcat

2011-12-19 Thread michael . vancanneyt
On Mon, 19 Dec 2011, Mattias Gaertner wrote: On Mon, 19 Dec 2011 09:27:16 +0100 (CET) michael.vancann...@wisa.be wrote: On Mon, 19 Dec 2011, Mattias Gaertner wrote: Hi, For some reason TFPHTTPClient.Post hangs when accessing a solr server over tomcat. It works with solr over jetty.

Re: [fpc-pascal] Timer in X11

2011-12-21 Thread michael . vancanneyt
On Wed, 21 Dec 2011, Henry Vermaak wrote: On 21/12/11 15:56, Felipe Monteiro de Carvalho wrote: On Wed, Dec 21, 2011 at 4:53 PM, Henry Vermaakhenry.verm...@gmail.com wrote: Spinning like this is bad news for efficiency and battery life of embedded devices. Well, using X11 in an embedded

Re: [fpc-pascal] Timer in X11

2011-12-22 Thread michael . vancanneyt
On Thu, 22 Dec 2011, Graeme Geldenhuys wrote: On 21 December 2011 18:06, Henry Vermaak wrote: embedded devices, laptops have batteries, too.  You're wasting CPU and power just spinning around a loop, so even if your app isn't active, it's still waking up every 50ms.  I don't consider this

Re: [fpc-pascal] Timer in X11

2011-12-22 Thread michael . vancanneyt
On Thu, 22 Dec 2011, Graeme Geldenhuys wrote: On 22 December 2011 10:15, michael.vancanneyt@w.. wrote: I think it depends on what you mean with 'OnIdle'. - An event which occurs once when an application falls Idle. - An event which is triggered repeatedly when the application is idle.

Re: [fpc-pascal] Problems with fpdoc

2012-01-02 Thread michael . vancanneyt
On Mon, 2 Jan 2012, dhkblas...@zeelandnet.nl wrote: Hi, I seem to have some problems using fpdoc in combination with html tags. When I enter some text (taken from the documentation) I get compilation errors: Text used: With Strings do For i:=Count-1 downto 0 do Delete(i); Compilation

Re: [fpc-pascal] Problems with fpdoc

2012-01-02 Thread michael . vancanneyt
On Mon, 2 Jan 2012, dhkblas...@zeelandnet.nl wrote: Here's the xml file. See attached. The problem code is around line 235. pcodeWith Strings do For i:=Count-1 downto 0 do Delete(i); /code/p Is wrong. the code tag must be at the same level as a p tag, and cannot appear in a p

Re: [fpc-pascal] Problems with fpdoc

2012-01-02 Thread michael . vancanneyt
On Mon, 2 Jan 2012, dhkblas...@zeelandnet.nl wrote: Thanks for the help. After also re-reading the documentation I now better understand how to use fpdoc. No more error messages anymore However, including an image in the documentation does not work unfortunately. After generating the

Re: [fpc-pascal] Problems with fpdoc

2012-01-02 Thread michael . vancanneyt
On Mon, 2 Jan 2012, Marco van de Voort wrote: In our previous episode, michael.vancann...@wisa.be said: the same directory as the .xml file is and from where the chm file is generated from. All relevant files and scripts are in SVN. CHM ? This is for Marco. I don't think it differs from

Re: [fpc-pascal] Adding code indentation without Lazarus

2012-01-02 Thread michael . vancanneyt
On Mon, 2 Jan 2012, luciano de souza wrote: hello listers, A blind programer doesn't matter whether a code is indented. That's my case. For us, it's natural to disregard all code formatation. In spite of that, the indentation is crucial. If my code is read by sighted programers, they will

Re: [fpc-pascal] How can I trap signals

2012-01-03 Thread michael . vancanneyt
On Tue, 3 Jan 2012, ik wrote: Hello, I wish to trap two signals in Linux (ABRT and HUP), how can I do that ? Install a signal handler. See e.g. http://www.freepascal.org/docs-html/rtl/baseunix/fpsigaction.html For an example. Michael. ___

Re: [fpc-pascal] Problems with fpdoc

2012-01-03 Thread michael . vancanneyt
On Tue, 3 Jan 2012, Graeme Geldenhuys wrote: On 2 January 2012 16:23, Marco van de Voort wrote: I don't think it differs from html. Some questions that come to mind: Upon reading, my first guess would be that either that specification how paths are transformed is murky (and it just happens

Re: [fpc-pascal] Group arguments from overloaded functions in fpdoc

2012-01-06 Thread michael . vancanneyt
On Fri, 6 Jan 2012, dhkblas...@zeelandnet.nl wrote: Resending the email. The images are here: http://imagebin.org/192019 [3] http://imagebin.org/192020 [4] http://imagebin.org/192021 [5] On 6 jan '12, dhkblas...@zeelandnet.nl wrote: I checked doxygen

Re: [fpc-pascal] Group arguments from overloaded functions in fpdoc

2012-01-06 Thread michael . vancanneyt
On Fri, 6 Jan 2012, dhkblas...@zeelandnet.nl wrote: In our previous episode, michael.vancann...@wisa.be said: On a side note, 1) for overloaded functions it seems that only one result string is possible to define. As seen in the XML file:(no desitinction based on result type) Correct.

Re: [fpc-pascal] FPCUnit without Lazarus

2012-01-09 Thread michael . vancanneyt
On Mon, 9 Jan 2012, Graeme Geldenhuys wrote: On 8 January 2012 17:23, Michael Van Canneyt wrote: After your previous mails about this, I have discussed this with Vincent Snijders, the author of the console runner class. The console runner class of the LCL does not really have any

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

2012-01-10 Thread michael . vancanneyt
On Tue, 10 Jan 2012, Tomas Hajny wrote: On Tue, January 10, 2012 05:14, waldo kitty wrote: Hi, . . are certain enforced limits on these lines... as such, i have defined a record type sat_name = string[25]; line_data = string[69]; two_line = array [1..2] of line_data;

Re: [fpc-pascal] Redis client for FPC

2012-01-11 Thread michael . vancanneyt
On Wed, 11 Jan 2012, ik wrote: Hello, Does anyone know of a Redis client for FPC (and open source) ? Another question: If I need to implement it, how would you do it regarding dataset ? I'm not sure that it is suited for the task, what do you think ? No. Dataset relies on a tabular

Re: [fpc-pascal] MySQL5

2012-01-17 Thread michael . vancanneyt
On Tue, 17 Jan 2012, Mattias Gaertner wrote: Hi, I tried connecting to a mysql 5.5 database and used the fpc unit mysql51. There are only examples for 3 and 4, so I started with testdb4.pp and adapted it. It turned out that the MYSQL record is missing some new fields, so the mysql_init

Re: [fpc-pascal] MySQL5

2012-01-17 Thread michael . vancanneyt
On Tue, 17 Jan 2012, Mattias Gaertner wrote: michael.vancann...@wisa.be hat am 17. Januar 2012 um 13:28 geschrieben: On Tue, 17 Jan 2012, Mattias Gaertner wrote: Hi, I tried connecting to a mysql 5.5 database and used the fpc unit mysql51. There are only examples for 3 and 4, so I

Re: [fpc-pascal] MySQL5

2012-01-17 Thread michael . vancanneyt
On Tue, 17 Jan 2012, ik wrote: Most people don't notice this, since all distributions recompile everything that depends on MySQL from scratch anyway. But for FPC, the case is different. MySQL is deprecated, and there are several open source projects that uses the same code base, but try

Re: [fpc-pascal] Postscriptcanvas

2012-01-17 Thread michael . vancanneyt
On Tue, 17 Jan 2012, Mattias Gaertner wrote: Felipe Monteiro de Carvalho felipemonteiro.carva...@gmail.com hat am 17. Januar 2012 um 13:59 geschrieben: On Tue, Jan 17, 2012 at 1:40 PM, David Copeland david.copel...@jsidata.ca wrote: I had not thought that approach (a non-visual lcl

Re: [fpc-pascal] fpdoc links and short description

2012-01-27 Thread michael . vancanneyt
On Fri, 27 Jan 2012, Felipe Monteiro de Carvalho wrote: Hello, I havent seen an answer for this in the other thread and it is getting too big. So, in fpdoc if we make a link like this: element name=TShellTreeView.OnMouseDown link=#LCL.Controls.TControl.OnMouseDown/ It does not properly

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

2012-01-30 Thread michael . vancanneyt
On Sun, 29 Jan 2012, Krzysztof wrote: Just as I thought - it is object class thing. So if FPC does not (fully) support directly calling external C++ libraries there are plans to support it? This will be great There are no plans to support it, since every C++ compiler uses it's own

Re: [fpc-pascal] TStringStream.DataString returns garbage?

2012-02-03 Thread michael . vancanneyt
On Fri, 3 Feb 2012, Marco van de Voort wrote: In our previous episode, Jorge Aldo G. de F. Junior said: I would vote for a new function on all stream types to allow writing strings in the expected way There is no default way to stream a string. On textfiles you only stream contents, on

Re: [fpc-pascal] TStringStream.DataString returns garbage?

2012-02-03 Thread michael . vancanneyt
On Fri, 3 Feb 2012, Marco van de Voort wrote: In our previous episode, michael.vancann...@wisa.be said: On textfiles you only stream contents, on binary files usually a length field (which can be 1,2,4 bytes depending on format) + contents. The latter exists:

Re: [fpc-pascal] FPC docs wrong for TStream.WriteBuffer()

2012-02-06 Thread michael . vancanneyt
On Mon, 6 Feb 2012, Graeme Geldenhuys wrote: Hi, I'm I just not reading/understanding this correctly, or is it indeed a documentation bug (in which case I'll file a bug report with a patch). http://www.freepascal.org/docs-html/rtl/classes/tstream.readbuffer.html The short description, as

Re: [fpc-pascal] FPC docs wrong for TStream.WriteBuffer()

2012-02-06 Thread michael . vancanneyt
On Mon, 6 Feb 2012, Graeme Geldenhuys wrote: ReadBuffer actually reads data from the stream to the buffer. Just like read. Sorry, I got my email all twisted - to many open windows at the same time. My issue is with the TStream.WriteBuffer's short description. It reads as follows...

  1   2   3   4   >