Re: [Lazarus] Problem rounding values at post

2014-06-04 Thread Daniel Erles
zeljko: the rTitle is defined as DECIMAL(8,4), for sure. Allan Registos: I need 4 decimal precision on that field. And I tried to input 0.1200, got same wrong value inserted: 0.1199 Strange. I tried many values and y found this happens: ... inserting 0.06 stored as 0.0599 0.07 -- 0.07 0.08 --

Re: [Lazarus] Problem rounding values at post

2014-06-04 Thread Daniel Erles
Yes, I tried with round too. Now I understand the problem, thanks to the explanation of Mattias. But I could not find a solution yet. The problem only occurs when I insert data using INSERT and POST functions. I tried creating an SQL INSERT, and running it with ExecuteQuery (), and the values

[Lazarus] Problem rounding values at post

2014-06-03 Thread Daniel Erles
Hello. I have this problem: My database (Firebird) has a table with the following fields: ... rTitle DECIMAL(8,4) not null, rDiameter DECIMAL(10,6) not null, ... In my program I have a Form with a a TZTable object (ZEOS) called zData, bound to that table. In a routine I have the following code:

[Lazarus] Scrolling text

2014-05-23 Thread Daniel Erles
Hello. I need to put in a form an horizontally scrolling text. Something like a StaticText (so I can set text style), but with the text scrolling horizontally, like a markee, just one line, one or two words. Anyone knows any control with this property, or how to do it programmatically in an easy

Re: [Lazarus] Scrolling text

2014-05-23 Thread Daniel Erles
__ Od: Daniel Erles der...@gmail.com Komu: Lazarus mailing list lazarus@lists.lazarus.freepascal.org Datum: 23.05.2014 15:47 Předmět: [Lazarus] Scrolling text Hello. I need to put in a form an horizontally scrolling text. Something like a StaticText (so I can set text style

Re: [Lazarus] Não encontra o parametro?

2014-03-04 Thread Daniel Erles
Intenta con esta linea: sql_Query.ParamByName('PCodigo').AsInteger := Codigo; sin : 2014-03-03 15:58 GMT-04:00 William Oliveira Ferreira bdexterholl...@gmail.com: Olá lista, eu tenho um código mamão com açúcar aqui que eu não consigo entender por que cargas d'água não encontra o