[fpc-pascal] How to customize a TDBMemo

2008-09-06 Thread Felipe Monteiro de Carvalho
Hello, I am using a TDBMemo with a TSdfDataset, but this database uses newlines to separate the records, so it's impossible to store data with multiple lines. So I thougth that I could do a trick, and process the data before showing in the TDBMemo and also before sending it again to the database.

Re: [fpc-pascal] License question; unit to view floating-point details

2008-09-06 Thread Marco van de Voort
In our previous episode, Florian Klaempfl said: > > Would there be any interest in incorporating it? > > If it's endian safe and if there are tests, I propose to incoperate it > in math. The "Tostring" stuff should go into sysutils or strutils. ___ fpc

Re: [fpc-pascal] License question; unit to view floating-point details

2008-09-06 Thread Florian Klaempfl
Tom Verhoeff schrieb: I have a created a unit FloatView to help you inspect in detail 32-bit (Single) and 64-bit (Double) IEEE 754 floating-point values (in case "every bit counts; note that when floating-point numbers are output in decimal, some information is inevitably lost). I would like to

Re: [fpc-pascal] Re: Using TSdfDataset

2008-09-06 Thread Michael Van Canneyt
On Sat, 6 Sep 2008, Felipe Monteiro de Carvalho wrote: > Thanks! It works! > > But I am confused as to why the previous code didn't work, specially > considering that it worked perfectly with the sqlite dataset. > > I assume that RecNo does not work with the Sdf dataset. RecNo or MoveTo is ne

Re: [fpc-pascal] Re: Using TSdfDataset

2008-09-06 Thread Felipe Monteiro de Carvalho
Thanks! It works! But I am confused as to why the previous code didn't work, specially considering that it worked perfectly with the sqlite dataset. I assume that RecNo does not work with the Sdf dataset. -- Felipe Monteiro de Carvalho ___ fpc-pascal

Re: [fpc-pascal] Re: Using TSdfDataset

2008-09-06 Thread Howard Page-Clark
Felipe Monteiro de Carvalho wrote: Here is my database file: ID,NAMEEN,NAMEPT,HEIGHT,WIDTH,PINS,DRAWINGCODE 1,resistor,resistor,1,1,1,LINE 2,capacitor,capacitor,1,1,1,LINE When listing the value of the NAMEEN field it will show: NAMEEN, resistor, resistor (yes, resistor again!) The correct sho

[fpc-pascal] Re: Using TSdfDataset

2008-09-06 Thread Felipe Monteiro de Carvalho
Now I got it a bit further. It seams that it doesn't crash if I set FirstLineAsSchema to true, but it also shows wrong value. Here is my database file: ID,NAMEEN,NAMEPT,HEIGHT,WIDTH,PINS,DRAWINGCODE 1,resistor,resistor,1,1,1,LINE 2,capacitor,capacitor,1,1,1,LINE When listing the value of the NAM

Re: [fpc-pascal] SSocket: TSocketServer.StopAccepting

2008-09-06 Thread Johann Glaser
Hi! > I am using Synapse for all my socket work, so this might be a bit > different for you. But for a blocking listener in a thread (waiting at > an Accept), I call AbortSocket. It immediately stops all work on the > socket and lets you do the things you need to do. I'm sure there's a > simil

Re: [fpc-pascal] ibase60.inc

2008-09-06 Thread Dimitrios Chr. Ioannidis
On Sep 4, 2008, at 5:03 PM, Marco van de Voort wrote:In our previous episode, Dimitrios Chr. Ioannidis said:  is it possible someone to add support for OS X in ibase60.inc ?  Firebird for OS X is working fine for quite some time now.This can be done. Are you sure that gds and fbembed really arelibf

Re: [fpc-pascal] Blog system written in Pascal

2008-09-06 Thread Musan Antal
We just wanted to start one, but my fellow colleague just quit and he has only done the algorithm on paper for this, though we haven't dropped the idea to work on our own blog system, but lack of time... 2008/9/4 ik <[EMAIL PROTECTED]> > Hi, > > Out of pure curiosity, are there any blog systems w

Re: [fpc-pascal] Speed difference between intel/ppc on intel Mac

2008-09-06 Thread Jonas Maebe
On 05 Sep 2008, at 20:07, Tom Verhoeff wrote: I have an Intel-based MacBook Pro. Until recently, I still used a PowerPC version of FPC. PowerPC code on this machine runs through (invisible) emulation. However, I upgraded now to FPC 2.2.2 for Intel on mac. And to my surprise one of my time-co

Re: [fpc-pascal] Debugger interaction in FP IDE and Lazarus

2008-09-06 Thread Marc Weustink
leledumbo wrote: Peter Vreman wrote: The idea to implement this and reuse some Lazarus code has been around for a couple of years. But it is not an easy task after a couple of quick investigations. That is also the reason why it has not been started yet. You are welcome to implement such an int

Re: [fpc-pascal] License question; unit to view floating-point details

2008-09-06 Thread Adriaan van Os
Tom Verhoeff wrote: Would there be any interest in incorporating it? Here are the supported operations (for Single; a similar set exists for Double): function SingleToStrBits ( const x: Single ): String; { returns string with bits for sign, biased exponent, and fraction } function SingleToStr

Re: [fpc-pascal] Exe size

2008-09-06 Thread Paul
Hi Tomas, Similarly to Felipe, I don't understand why this should be a bad news for you or why this should mean that Visual Studio gave you something not available with FPC (or what that "something" was in that case)... It looks as if I either don't understand what you meant with the statement a