Re: [Lazarus] TFMTBCDField problem

2014-11-22 Thread Chris Rempas
i just hope i did it correctly thanks for all the help :) On Friday, November 21, 2014 11:05 AM, Joost van der Sluis jo...@cnoc.nl wrote: On 11/18/2014 06:02 PM, Chris Rempas wrote: I guess i was wrong, the best solution is the first one, atr least in my tests can someone help me

Re: [Lazarus] TFMTBCDField problem

2014-11-18 Thread Chris Rempas
I guess i was wrong, the best solution is the first one, atr least in my tests can someone help me put a bug report with the fix? Regards Chris -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] TFMTBCDField problem

2014-11-09 Thread Chris Rempas
I am almost convinced that the problem is not what i am seeing...this code works if VSQLVar^.sqlscale = 0 then  i := AParams[ParNr].AsIntegerelse//i := Round(AParams[ParNr].AsCurrency * IntPower10(-VSQLVar^.sqlscale));   i := Round(BCDToDouble(AParams[ParNr].AsFMTBCD) *

Re: [Lazarus] TFMTBCDField problem

2014-11-08 Thread Chris Rempas
Hi, it compiled correctly but i still can't get debug infoI tried to be a smartass and make clean all with OPT=-gl but of course it failed!the closest i got to the error is in ibconnection.pp fileprocedure TIBConnection.Execute(cursor: TSQLCursor;atransaction:tSQLtransaction; AParams :

Re: [Lazarus] TFMTBCDField problem

2014-11-06 Thread Chris Rempas
I just fixed my program so we are back to the original problem Invalid variant type cast on ApplyUpdates i repeat, i can post the record, but i cannot read or write a record that has data on this field to the database On Wednesday, November 5, 2014 10:30 PM, Chris Rempas cror...@yahoo.com

Re: [Lazarus] TFMTBCDField problem

2014-11-05 Thread Chris Rempas
You were correct! changing to the correct path does not compile again! i get just one line with error :registerfcl.pas(43,3) Fatal: Can not find unit ServiceManager used by RegisterFCL. Check if package FCL is in the dependencies. Regards,Chris On Monday, November 3, 2014 5:38 PM, Joost

Re: [Lazarus] TFMTBCDField problem

2014-11-05 Thread Chris Rempas
so where do i send the flowers? :) and another question...where is the conversation about the string --- UTF8Sting convertions? i had to use UTF8String in a library and is not compiling now because i call UTF8Delete and it says that parameter arguments must match exactly On Wednesday,

Re: [Lazarus] TFMTBCDField problem

2014-11-02 Thread Chris Rempas
Latest news!I did a full uninstall and install Lazarus again, installed my components, compiled my project.Then, i changed the FPC folders to 2.7.1 and rebuild Lazarus. worked fine.Execute program, crush on reading real values.I put NULL in the database, execute program, all ok! This means the

Re: [Lazarus] TFMTBCDField problem

2014-10-30 Thread Chris Rempas
...as a last resort, i formatted an old disk, installed windows 8.1, installed lazarus, downloaded a new snapshot from freepascal site, extracted and followed instructions. I get an error (i think in fpmkunit.pp) when i execute make clean all.i tried to execute make install but i get the same

Re: [Lazarus] TFMTBCDField problem

2014-10-30 Thread Joost van der Sluis
On 10/30/2014 04:45 PM, Chris Rempas wrote: ...as a last resort, i formatted an old disk, installed windows 8.1, installed lazarus, downloaded a new snapshot from freepascal site, extracted and followed instructions. I get an error (i think in fpmkunit.pp) when i execute make clean all. i tried

Re: [Lazarus] TFMTBCDField problem

2014-10-27 Thread Chris Crori
think that all changes effect readability, tBCD cannot be converted to variant, so it can’t still be passed to SQLdb to execute ApllyUpdates Regards Chris From: Vincent Snijders Sent: Monday, October 27, 2014 7:31 AM To: Lazarus mailing list Subject: Re: [Lazarus] TFMTBCDField problem

Re: [Lazarus] TFMTBCDField problem

2014-10-27 Thread Joost van der Sluis
On 10/27/2014 09:28 AM, Chris Crori wrote: Hi Vincent, can you help me build lazarus with fpc 2.7.1? I downloaded fpc trunk, changed the file folders, undated the lazarus configuration, but I cannot build fpc and lazarus tells me it can’t find fpc.cfg file... the file exists! When you

Re: [Lazarus] TFMTBCDField problem

2014-10-26 Thread Vincent Snijders
2014-10-24 13:28 GMT+02:00 Joost van der Sluis jo...@cnoc.nl: And I received a warning from Vincent that building the snapshot failed. So I know for sure that these snapshots are still being build. Maybe you have just bad luck that it is not available today, due to a mistake from me. So

Re: [Lazarus] TFMTBCDField problem

2014-10-24 Thread Chris Rempas
Hi,  I downloaded trunk fpc but i can't get it to work, is there an easy way to get fpc 2.7.1 compiled for lazarus? Thanks Chris On Thursday, October 23, 2014 4:03 PM, Joost van der Sluis jo...@cnoc.nl wrote: On 10/23/2014 01:07 AM, Chris Rempas wrote: Hi guys!       I am using

Re: [Lazarus] TFMTBCDField problem

2014-10-24 Thread Joost van der Sluis
On 10/24/2014 09:22 AM, Chris Rempas wrote: I downloaded trunk fpc but i can't get it to work, is there an easy way to get fpc 2.7.1 compiled for lazarus? Hmm, it was always available at the snapshot-page http://www.hu.freepascal.org/lazarus/ but it's not there. Maybe that the 2.7.1

Re: [Lazarus] TFMTBCDField problem

2014-10-24 Thread Chris Rempas
This is killing me! i just want my headache to stop! Thanks for the responce,I will check for the updates  Chris On Friday, October 24, 2014 2:29 PM, Joost van der Sluis jo...@cnoc.nl wrote: On 10/24/2014 09:22 AM, Chris Rempas wrote:     I downloaded trunk fpc but i can't get it to

Re: [Lazarus] TFMTBCDField problem

2014-10-23 Thread Joost van der Sluis
On 10/23/2014 01:07 AM, Chris Rempas wrote: Hi guys! I am using SQLdb with Firebird 2. I have a DECIMAL(9,5) field that SQLdb makes it TFMTBCDField automatically. Mt problem is that i cannot save any value to the database. If i let the field with the NULL value, my record is saved fine, if

[Lazarus] TFMTBCDField problem

2014-10-22 Thread Chris Rempas
Hi guys!    I am using SQLdb with Firebird 2. I have a DECIMAL(9,5) field that SQLdb makes it TFMTBCDField automatically. Mt problem is that i cannot save any value to the database. If i let the field with the NULL value, my record is saved fine, if i try to put any value and save the record,