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

2011-07-27 Thread michael . vancanneyt
be made. In fact, Inoussa Ouedraogo (hope I spelled that correct) made a complete SDO implementation in FPC which should be powerful enough to able to handle this. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.free

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

2011-07-27 Thread michael . vancanneyt
On Wed, 27 Jul 2011, Sven Barth wrote: On 27.07.2011 19:24, Michael Van Canneyt wrote: On Wed, 27 Jul 2011, Sven Barth wrote: On 27.07.2011 14:05, michael.vancann...@wisa.be wrote: On Wed, 27 Jul 2011, Ludo Brands wrote: 2. Atom feeds as used by Google. Feel free to take a shot at

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

2011-07-27 Thread michael . vancanneyt
emCounter].Field.Size))); end; Is dead wrong. It passes on 32-bit (but generating wrong data), but fails to compile on 64-bit. The compiler has a warning for this, so checking your warnings while compiling for 32-bit may also be a good idea. Michael.

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

2011-07-28 Thread michael . vancanneyt
. I added your implementation to SVN. Thanks, Michael. I noticed your remark on a failing conversion of a longint to a string - that code wouldn't have worked. Obviously a priority to increase the test coverage. But you may want to check your implementation on 64-bit prior to submittin

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

2011-07-28 Thread michael . vancanneyt
know. Adding '>' to AttrSpecialChars seems to be a save solution. Another issue in bugtracker? Yes, and please assign it to sergei gorelkin. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

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

2011-07-28 Thread michael . vancanneyt
represented using the string " > ", and MUST, for compatibility, be escaped using either " > " or a character reference when it appears in the string " ]]> " in content, when that string is not marking the end of a CDATA section. So replacing >

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

2011-07-29 Thread michael . vancanneyt
entation is actually overriding this. Not in FPC, but in Delphi, IBX for instance overrides it. Maybe mseide does it too. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

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

2011-07-29 Thread michael . vancanneyt
? Probably, yes. Someone in the core team with access to Sourceforge should probably upload it. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

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

2011-07-29 Thread michael . vancanneyt
routines is to be able to export data without too much dependencies. Which does not mean that the opposite direction (importing data from a dataset into a spreadsheet) is not useful in it's own right, far from it. Michael. ___ fpc-pascal maillist -

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

2011-07-29 Thread michael . vancanneyt
x27;s not really possible for ODS. You will need to at least add a dependency to paszlib and possibly to a xml library too. Well, the exports are already dependent on fcl-XML. So adding paszlib is not really a heavy burden... Michael. ___ fpc-pascal mai

Re: [fpc-pascal] Memds deprecated?

2011-07-29 Thread michael . vancanneyt
ted in the code and documentation? No. The idea is that TMemDataset becomes a descendent of TBufDataset. It has some methods that make operation more simple. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.o

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

2011-08-03 Thread michael . vancanneyt
this is not 100% correct. It is extremely easy to create a corrupt backup in firebird. Just add a required field to any table with data, create the backup. This backup cannot be restored. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.free

Re: [fpc-pascal] timer_create on linux

2011-08-10 Thread michael . vancanneyt
), What can be wrong with the code below? I assume threads are used for these timers. If so, then this is normal, signal USR1 is used by the linux threading mechanism, if I remember correctly. Michael. ___ fpc-pascal maillist - fpc-pascal

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

2011-08-12 Thread michael . vancanneyt
x27;t matter on which platform you're accessing a database, so we should treat both #13#10 and #10 equally, so I'd choose option 3. Your thoughts? Make it a property of the converter. Michael. ___ fpc-pascal maillist - fpc-pascal@

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 SaveToFile

Re: [fpc-pascal] Virtual inline methods

2011-08-18 Thread michael . vancanneyt
out? You can't inline virtual methods, since you don't know which method will be called at runtime. I suspect C++ simply ignores the directive in the case of a virtual method. Michael. ___ fpc-pascal maillist - fpc-pascal@lists

[fpc-pascal] Division by Zero

2011-08-22 Thread Michael Fuchs
Hello, WriteLn(FloatToStr(100 / 0)); This code prints on the screen "+Inf", but I think it should be "NaN". Is this a bug or a special case in computer arithmetic? thx Michael ___ fpc-pascal maillist - fpc-pascal@lists

Re: [fpc-pascal] Division by Zero

2011-08-23 Thread Michael Fuchs
read only the german part of wikipedia. Shame on me. Michael ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

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

2011-09-02 Thread michael . vancanneyt
lipper DBF tables, Microsoft FoxPro DBF tables, and dBASE III+ DBF tables: may only contain the letters ‘a’-‘z’ and ‘A’-‘Z’, digits ‘0’-‘9’, and the underscore ‘_’ character Presumably the CheckExportFieldNames could be amended for that, too, right? Presumably, yes

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

2011-09-02 Thread michael . vancanneyt
way): If FormatSettings.AutoRenameFields and (FormatSettings.TableFormat in [tfDbaseIII,tfDbaseIV,FoxPro]) then CheckExportFieldNames; Presumably, yes. Michael. Uploaded a patch, issue 20134 http://bugs.freepascal.org/view.php?id=20134 I think I've also found the solution to http://bugs.freepascal.

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

2011-09-05 Thread michael . vancanneyt
, I don't even know what it's for or where it comes from) Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

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

2011-09-05 Thread michael . vancanneyt
ot used in FPC. (in fact, I don't even know what it's for or where it comes from) Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal http://docs.embarcadero.com/p

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

2011-09-05 Thread michael . vancanneyt
even know what it's for or where it comes from) Michael. http://docs.embarcadero.com/products/rad_studio/delphiAndcpp2009/HelpUpdate2/EN/html/delphivclwin32/DB_TField_AttributeSet.html In short, Delphi also no longer uses it, as TTable and TQuery are BDE components and they are depr

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

2011-09-08 Thread michael . vancanneyt
a type is being created. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

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

2011-09-08 Thread michael . vancanneyt
uld be one that fails with 'operation not permitted'. (assuming your program exits straight away after the failed command) This way you'll know the actual cause of the failure. Michael. ___ fpc-pascal maillist - fpc-pascal@

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

2011-09-09 Thread michael . vancanneyt
n't offer the commands to exexuteprocess in a separated matter. Try Status:=ExecuteProcess('/path/to/oggenc',['-Q','--output="outputfile.org"','tempfile.wav']); You must remove the quotes around 'outp

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

2011-09-09 Thread michael . vancanneyt
ile.wav']); While better, this is afaik not required per se, the executing binary can strip them also while doing cmdline parsing. It doesn't matter for executeprocess. In general, you can't expect that from the executing binary. It's safe to assume that most d

Re: [fpc-pascal] File monitoring Linux

2011-09-13 Thread Michael Schneider
Am Tuesday 13 September 2011 14:05:52 schrieb Mattias Gaertner: > Hi, > > I'm searching some pascal code for file monitoring for Linux. That means > getting notified if a file in a directory or its sub directories was > modified. > I found some hints that people started it, but I can't find the res

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

2011-09-16 Thread michael . vancanneyt
test for fcl-db 20268 [Patch] CSV export: new test for fcl-db 20163 [Patch] Dbase export: new test for fcl-db (reopened, contains fixes suggested by Michael Van Canneyt) They're all set up in a similar way: create a bufdataset with all the field types I can cram in, fill them wit

Re: [fpc-pascal] freetype unit + unicode

2011-10-04 Thread michael . vancanneyt
pt up on us faster than we imagined) Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] freetype unit + unicode

2011-10-06 Thread michael . vancanneyt
tions, and left the existing functions intact. The way it is now, we'd force everyone to use UTF-8. I'll see if I can modify the patch. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] Linking to C++ DLL compiled with MSVC

2011-10-10 Thread Michael Lutz
I've been trying to link to an external DLL which is unfortunately compiled using MSVC in C++ mode. The functions itself do not use any C++ features, they are just not declared as extern "C" and thus use name mangling. With MSVC name mangling, each symbol starts with a '?' character, which seems t

[fpc-pascal] Re: Linking to C++ DLL compiled with MSVC

2011-10-10 Thread Michael Lutz
hould at least get a documentation line somewhere. Thanks, Michael ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] Re: Linking to C++ DLL compiled with MSVC

2011-10-10 Thread Michael Lutz
Am 10.10.2011 21:01 schrieb Sven Barth: > So could you report one, so it's not forgotten? Done: http://bugs.freepascal.org/view.php?id=20456 Michael ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org

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

2011-10-19 Thread Michael Fuchs
read. Of course it would be nice to have anonymous functions or even lambdas (think about integrated languages like LinQ). But maybe Pascals strength of easy readable code gets lost. Michael ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

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

2011-10-19 Thread Michael Fuchs
son why anonymous methods should differ here. Allow both, like it is already allowed in Pascal: if True then DoSomething; if True then begin DoSomething; DoSomethingMore; Etc; end; If a function only contains one statement it is

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

2011-10-19 Thread michael . vancanneyt
uld only work with HTTP as the transport layer. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

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

2011-10-19 Thread michael . vancanneyt
nage with FPC. If you do, then I'd be very interested in hearing about your progress. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

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

2011-10-19 Thread michael . vancanneyt
the support is ready, but not widely advertized, because lazarus lacks binary package support. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

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

2011-10-19 Thread michael . vancanneyt
JSON readability and the small size of binary format. That's exactly what we do also. But in the case of large packages (we have datasets of 30.000 records), the JSON is really slow. The browser chokes already on a dataset of 3000 records, when using ExtJS =-) Michael._

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

2011-10-19 Thread Michael Fuchs
a function and passing it with a reference to this function. Sometimes I miss them in FPC, but I am also not sure if this feature destroys the beauty of Pascal. Not easy. Michael ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.

Re: [fpc-pascal] Unicode function names

2011-10-20 Thread michael . vancanneyt
ntirely ANSI or functions must start with ANSI? To my knowledge FPC does not support non-ascii identifiers ? Only a-z, 0-9 and _ are allowed. Michael.___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

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

2011-10-21 Thread michael . vancanneyt
Martin Schreibers' implementation. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

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

2011-10-21 Thread michael . vancanneyt
s the indexes. It's just an additional index routine. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] How are Assigned, Free, Nil and Destroy related?

2011-10-22 Thread Michael Müller
Am 22.10.2011 um 09:08 schrieb Frank Church: > > > On 22 October 2011 07:20, Felipe Monteiro de Carvalho > wrote: > I understand Assigned as being the same as <> nil, so Assigned(Object) > = Object <> nil > > I vaguely remember that it could be safer in some corner case, but I > don't rememb

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

2011-10-22 Thread michael . vancanneyt
. By reading the just created record, see my reply from yesterday. If the table uses a sequence, first get the new sequence value, and then do the insert with the generated value. Didn't you get a copy of the Lazarus book ? There is a whole chapter on database programming with Lazarus. Al

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

2011-10-22 Thread michael . vancanneyt
it's impossible to retrieve the sequence value after the insert except by re-reading the record. I don't know which mechanism postgresql follows. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal

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

2011-10-22 Thread michael . vancanneyt
=( Use a TSQLQuery with SQL "select scope_identity() as theid" and read field 0. I repeat, do not use ExecuteDirect. Michael.___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

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

2011-10-24 Thread michael . vancanneyt
connection is the one for table 2, but you need/expect the last id for table 1 :-) Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

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

2011-10-24 Thread michael . vancanneyt
were introduced in 5.0.2. SQLServer's SCOPE_IDENTITY() returns table 1 (the trigger is out of scope) and @@IDENTITY returns 2. This mess is why I prefer sequences :-) Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://

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

2011-10-24 Thread michael . vancanneyt
fact they are not sequential by design. You just discarded most Microsoft product designs =-) They use GUIDs all over the place :-) Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc

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

2011-10-24 Thread michael . vancanneyt
n the need arises. I can't hear them doing that with a GUID :-) Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

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

2011-10-24 Thread michael . vancanneyt
ion, there is precious little to support as it will in general be client code that generates the GUID (unless I am much mistaken in what is common practise) ? Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.free

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

2011-10-24 Thread michael . vancanneyt
field values anyway? (Unless you primary keys are part of the data display in the UI I guess). They don't see them as a matter of course. But often the only way to correctly identify a record is the primary key. And then it helps if this is an integer, not a GUID.

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

2011-10-25 Thread michael . vancanneyt
code block. I don't know about you, but I have serious trouble reading the above monstrosity. It looks like you forgot the closing ) for the queue call. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

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

2011-10-25 Thread michael . vancanneyt
o we can put that to rest. Please note that I didn't question their use, just the syntax :) Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

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

2011-11-07 Thread michael . vancanneyt
7;t be found, apparently an Excel reader library required by spatialite... I'm going to ask the spatialite guys for clarification on this... I'll upload the diff as a patch unless somebody has objections/a better implementation... Uploading the diff should be fine. Michael.

Re: [fpc-pascal] Generics vs TCollection

2011-11-08 Thread michael . vancanneyt
them. Lazarus has tons of code that uses them. There is no way that we're going to rewrite all that stuff. So: yes, even if only for backwards compatibility. Nothing stops people from not using it, and use generics instead, if they are so inclined.

Re: [fpc-pascal] TClientDataset equivalent?

2011-11-08 Thread michael . vancanneyt
it. It has support for writing data packages and deltas (even in XML, I think). It has no support for transporting these packages. That can be done using WST. Or, you can use Data Abstract from RemObjects (a commercial product), which works with FPC and Delphi alike

Re: [fpc-pascal] Generics vs TCollection

2011-11-08 Thread michael . vancanneyt
he expense of copying the whole TCollection code each time you create a specialized descendent. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

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

2011-11-09 Thread michael . vancanneyt
a commercial project to implement full-text-search on a firebird database. And it works with any FPC supported database as storage. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

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

2011-11-09 Thread michael . vancanneyt
impressed :-) (considering their question was 'we want to do like google search but on the database') Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

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

2011-11-09 Thread michael . vancanneyt
eld2').Value:='Value2'; This should be: MyTable.Append; MyTable.FieldByname('Field1').AsString:='Value1'; MyTable.FieldByname('Field2').AsString:='Value2'; MyTable.Post; MyTable.Applyupdates; Michael.

Re: [fpc-pascal] Location of fpvectorial

2011-11-10 Thread michael . vancanneyt
t I'd like to use the powerful lazutils package. A dependency on the LCL TCanvas means that fpVectorial will not be usable in a CGI (or web) environment. Can you tell me what is missing in TFPCustomCanvas, so we can add it ? Michael. ___ fpc-pasca

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

2011-11-15 Thread michael . vancanneyt
es" feature? It does not support this. I am working on it, but I need to refactor a large part of the parser. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

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
th/to/database in your databasename. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

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

2011-11-16 Thread michael . vancanneyt
sumes a "shortstring" (by this I mean the compiler internal's idea of "shortstring"). The definition of 'Shortstring' as shown above is just an aid, for Delphi compatibility. Michael. ___ fpc-pascal maillist - fpc-pas

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
it in the official docs unless all identifiers in the unit have been documented. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

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

2011-11-17 Thread michael . vancanneyt
it always for the initial file ? Given the proper parameters, it creates a very usable initial file ? Michael.___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

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

2011-11-17 Thread michael . vancanneyt
ments for which no tag was found. So as far as I could see, none of the issues you quoted are with makeskel ? Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

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

2011-11-17 Thread michael . vancanneyt
iables are specified on startup, and are then immutable. If you want to specify the environment for a process, you must do it at the start. Michael.___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

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

2011-11-21 Thread michael . vancanneyt
nctDelimiter property to true, in which case the space loses its special meaning. I recommend the second. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

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

2011-11-21 Thread michael . vancanneyt
ou should either enclose values with spaces in quotes, or set the StrinctDelimiter property to true, in which case the space loses its special meaning. Typo, should be StrictDelimiter, of course. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

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

2011-11-21 Thread michael . vancanneyt
viour based on documented behaviour, not implementation behaviour? Sure. See the 'CommaText' help. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

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

2011-11-21 Thread michael . vancanneyt
here to discuss the merits/disadvantages of the Delphi docs :-) Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

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

2011-11-21 Thread michael . vancanneyt
tl/classes/tstrings.delimitedtext.html Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] FCL Web Combined Demo

2011-11-21 Thread michael . vancanneyt
occurrences. Michael. On Mon, 21 Nov 2011, Dimitrios Chr. Ioannidis wrote: Hi all, i wanted to check the combined demo so i set it up to my server at http://demo.artesoft.gr/combined . As i'm newbie to javascript can someone check to see why doesn't work with IE ? With Firef

Re: [fpc-pascal] FCL Web Combined Demo

2011-11-21 Thread michael . vancanneyt
search for a , in front of } and ] and remove it. Thx. I fixed the script and it worked. Did you need to do additional fixes beyond the ones I did ? Michael.___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org

Re: [fpc-pascal] FCL Web Combined Demo

2011-11-21 Thread michael . vancanneyt
. Correct. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Name of a var

2011-11-21 Thread michael . vancanneyt
u can make such a function that returns the name when debug info is included in the binary. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Name of a var

2011-11-21 Thread michael . vancanneyt
rs. Obviously. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Name of a var

2011-11-22 Thread michael . vancanneyt
identifiers in scope to strings (such as functions names etc.) But what is the use ? As far as I can see, it forces you to type more. Typing VarName:=nameofvar( counter ); is more work than VarName:='counter'; So what's the point ? Michael.

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

2011-11-22 Thread michael . vancanneyt
e, this is different. in TSQLConnector you say Type = 'IBConnection' (or something like it) and then it searches in the list of registered types for the type it must create, and creates it. Michael. ___ fpc-pascal maillist - fpc-pascal@lists

Re: [fpc-pascal] Name of a var

2011-11-22 Thread michael . vancanneyt
unter) No, if I was to program it using varname, I would get the name of the parameter in the function SendInteger. You need the address of the variable that was passed to SendInteger. Obviously, there is no way the compiler can know that. Michael. ___

Re: [fpc-pascal] Name of a var

2011-11-22 Thread michael . vancanneyt
done with search&replace, option whole word, so the text 'counter' should get changed as well. The name of a variable is of absolutely no use to the end user. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Name of a var

2011-11-22 Thread michael . vancanneyt
e work than VarName:='counter'; So what's the point ? Compiler check of the name as Sven also mentioned. This check is very important. And as I answered, I can't possibly imagine why this would matter in the least. Michael. __

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

2011-11-22 Thread michael . vancanneyt
ther than something to do with connection pooling etc. The end result is that you can write a database-independent program, add run-time configuration and some drivers and let the client choose the database server, right? Exactly. Michael. ___ fpc-

Re: [fpc-pascal] Name of a var

2011-11-22 Thread michael . vancanneyt
And since that's all you want the function for, I consider the use totally marginal... Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Name of a var

2011-11-22 Thread michael . vancanneyt
ooks up the name in the debug info. But hey, if someone wants to implement this, why not. There are other things in FPC of which I personally do not see the added value... Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

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

2011-11-28 Thread michael . vancanneyt
support classes. That will simply not be possible. The C# class model is fundamentally different from FPC's. Even the reverse (using C# classes from FPC) is hardly possible (although crosstalk from atozed software does a good effort in Delphi). Mi

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

2011-11-28 Thread michael . vancanneyt
can be owned by the server component itself. If you want still to have a "main program", you should use a thread and create the component in the thread. Which is exactly what happens in a service application, the intended environment for the component. Michael.__

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

2011-11-28 Thread michael . vancanneyt
.Active:=False; or implement Procedure TMyServerThread.StopServer; begin MyServer.Active:=False; end; and call MyServerThread.StopServer; Since this will happen from another thread or from a request handler, you can do this without problem. Michael. __

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

2011-11-28 Thread michael . vancanneyt
n Active:=True - Or the server must be made non-blocking and then you need to run an event loop. Either way is a significant architectural change. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman

Re: [fpc-pascal] CGI JSON RPC

2011-12-01 Thread michael . vancanneyt
.cgi extension, but that depends on your webserver setup. Now, how do i call the dispatcher handler ? I tried to change the uri like this You should append the module. I would think the URL is: http://localhost/cgi-bin/demo.cgi/echo/dispatch Michael. _

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

2011-12-07 Thread michael . vancanneyt
more so than Delphi, probably. Jonas Maebe implemented it, I think, he can probably shed some more light on this. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

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

2011-12-07 Thread michael . vancanneyt
e hit, but I understand that the FPC implementation is different. Does FPC have a faster (comparable to Delphi) version of Random() too? @Michael, Should the FPC docs maybe mention the fact that the FPC version is considerably slower that Delphi (with an explanation why of course) - purely fo

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

2011-12-19 Thread michael . vancanneyt
// No content-length, so we read till no more data available. Repeat R:=Transfer(ReadBufLen); until (R=0); Is there a remedy? Can you check what happens with strace? It means that the server didn't send a 'content-length' header, which is strange in itself. Michae

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

2011-12-19 Thread michael . vancanneyt
strace? It means that the server didn't send a 'content-length' header, which is strange in itself. Yes, it does not send the Content-Length. The comment is right. If I skip the repeat loop, it works, but I don't get the response. The response is a small xml snippet. Wha

<    1   2   3   4   5   6   7   8   9   10   >