Re: [Lazarus] Option hints popup truncated

2014-06-04 Thread zeljko
On 06/03/2014 01:36 PM, John Landmesser wrote: .. same issue ( sometimes ) with toolbar button hints. GTK2 and Linux Yes, another clipping problem under gtk2. zeljko -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] Option hints popup truncated

2014-06-04 Thread Mattias Gaertner
On Wed, 04 Jun 2014 08:11:38 +0200 zeljko zel...@holobit.net wrote: On 06/03/2014 01:36 PM, John Landmesser wrote: .. same issue ( sometimes ) with toolbar button hints. GTK2 and Linux Yes, another clipping problem under gtk2. The same? Mattias --

Re: [Lazarus] Problem rounding values at post

2014-06-04 Thread Allan E. Registos
On Wednesday, 04 June, 2014 04:39 AM, Daniel Erles wrote: 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)

Re: [Lazarus] Problem rounding values at post

2014-06-04 Thread Allan E. Registos
On Wednesday, 04 June, 2014 06:03 AM, Philippe wrote: generally, if one needs accurate values he does not use real values ... use integer (or word, longint, longword etc) ... then when needed make the conversion or formating (for computing or printing) ... My thinking is quite the opposite. I

Re: [Lazarus] Problem rounding values at post

2014-06-04 Thread FreeMan
mysolution is CREATE DOMAIN D_REAL AS DOUBLE PRECISION; and always not null default value exactly 0.0 use tfields.displayformat zeljko wrote, thats conversion problem. can problem be in longint too, tparam.aslongint or tparam.aslargeint and tfield.aslongint or tfield.aslargeint aswell

Re: [Lazarus] Option hints popup truncated

2014-06-04 Thread zeljko
On 06/04/2014 08:25 AM, Mattias Gaertner wrote: On Wed, 04 Jun 2014 08:11:38 +0200 zeljko zel...@holobit.net wrote: On 06/03/2014 01:36 PM, John Landmesser wrote: .. same issue ( sometimes ) with toolbar button hints. GTK2 and Linux Yes, another clipping problem under gtk2. The same? I

Re: [Lazarus] Problem rounding values at post

2014-06-04 Thread Mattias Gaertner
On Wed, 04 Jun 2014 15:47:24 +0800 Allan E. Registos allan.regis...@smpc.steniel.com.ph wrote: On Wednesday, 04 June, 2014 06:03 AM, Philippe wrote: generally, if one needs accurate values he does not use real values ... use integer (or word, longint, longword etc) ... then when needed

Re: [Lazarus] Problem rounding values at post

2014-06-04 Thread zeljko
On 06/04/2014 10:43 AM, Mattias Gaertner wrote: On Wed, 04 Jun 2014 15:47:24 +0800 Allan E. Registos allan.regis...@smpc.steniel.com.ph wrote: On Wednesday, 04 June, 2014 06:03 AM, Philippe wrote: generally, if one needs accurate values he does not use real values ... use integer (or word,

Re: [Lazarus] Problem rounding values at post

2014-06-04 Thread A. Fortuny
Le 3/06/2014 22:39, Daniel Erles a écrit : 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

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 Joost van der Sluis
On 06/04/2014 01:20 PM, Daniel Erles wrote: Strange. I tried many values and y found this happens: ... inserting 0.06 stored as 0.0599 0.07 -- 0.07 0.08 -- 0.08 0.09 -- 0.0899 0.10 -- 0.10 0.11 -- 0.11 0.12 -- 0.1199 0.13 -- 0.13 0.14 -- 0.14 0.15 -- 0.1499 0.16 -- 0.16 0.17 -- 0.17 0.18 --

Re: [Lazarus] root privileg

2014-06-04 Thread SPRL AFOR
Le 4/06/2014 16:54, Michael Van Canneyt a écrit : On Wed, 4 Jun 2014, A. Fortuny wrote: Hi Folks. How to gain temporarily root privileges in a pascal program ? I need to 'ping' an IP address and for ping to work (Indy 10) I need to be root. Usage of another TCP component is not an option.

Re: [Lazarus] root privileg

2014-06-04 Thread Reinier Olislagers
On 04/06/2014 16:54, Michael Van Canneyt wrote: On Wed, 4 Jun 2014, A. Fortuny wrote: How to gain temporarily root privileges in a pascal program ? I need to 'ping' an IP address and for ping to work (Indy 10) I need to be root. Why do you need root to ping? You could set up sudo to allow

Re: [Lazarus] root privileg

2014-06-04 Thread Michael Van Canneyt
On Wed, 4 Jun 2014, Reinier Olislagers wrote: On 04/06/2014 16:54, Michael Van Canneyt wrote: On Wed, 4 Jun 2014, A. Fortuny wrote: How to gain temporarily root privileges in a pascal program ? I need to 'ping' an IP address and for ping to work (Indy 10) I need to be root. Why do you

Re: [Lazarus] root privileg

2014-06-04 Thread Reinier Olislagers
On 04/06/2014 17:11, Michael Van Canneyt wrote: On Wed, 4 Jun 2014, Reinier Olislagers wrote: On 04/06/2014 16:54, Michael Van Canneyt wrote: Why do you need root to ping? All ports less than 1024 are only usable by the root user. By defautl, perhaps. See the rest of my post.

[Lazarus] root privileg

2014-06-04 Thread A. Fortuny
Hi Folks. How to gain temporarily root privileges in a pascal program ? I need to 'ping' an IP address and for ping to work (Indy 10) I need to be root. Usage of another TCP component is not an option. Another way is to execute a shell and intertpret the results but I'd to avoid it if

Re: [Lazarus] root privileg

2014-06-04 Thread Michael Van Canneyt
On Wed, 4 Jun 2014, Reinier Olislagers wrote: On 04/06/2014 17:11, Michael Van Canneyt wrote: On Wed, 4 Jun 2014, Reinier Olislagers wrote: On 04/06/2014 16:54, Michael Van Canneyt wrote: Why do you need root to ping? All ports less than 1024 are only usable by the root user. By

Re: [Lazarus] root privileg

2014-06-04 Thread Reinier Olislagers
On 04/06/2014 17:19, Michael Van Canneyt wrote: On Wed, 4 Jun 2014, Reinier Olislagers wrote: On 04/06/2014 17:11, Michael Van Canneyt wrote: On Wed, 4 Jun 2014, Reinier Olislagers wrote: On 04/06/2014 16:54, Michael Van Canneyt wrote: Why do you need root to ping? All ports less than

Re: [Lazarus] root privileg

2014-06-04 Thread m...@rpzdesign.com
You want to use a lightweight UDP packet above 1024 instead of PING to accomplish the same mission. You need to have something on the other side to ACK your UDP PING md On 6/4/2014 11:19 AM, Michael Van Canneyt wrote: On Wed, 4 Jun 2014, Reinier Olislagers wrote: On 04/06/2014 17:11,

Re: [Lazarus] Problem rounding values at post

2014-06-04 Thread Poncho Velázquez
Hi Daniel, have you tried to use function Round in te assignment of the value?? RegardsPoncho Date: Tue, 3 Jun 2014 16:39:30 -0400 From: der...@gmail.com To: lazarus@lists.lazarus.freepascal.org Subject: [Lazarus] Problem rounding values at post Hello. I have this problem: My database

Re: [Lazarus] root privileg

2014-06-04 Thread A. Fortuny
Le 4/06/2014 17:01, Reinier Olislagers a écrit : On 04/06/2014 16:54, Michael Van Canneyt wrote: On Wed, 4 Jun 2014, A. Fortuny wrote: How to gain temporarily root privileges in a pascal program ? I need to 'ping' an IP address and for ping to work (Indy 10) I need to be root. Why do you need

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

Re: [Lazarus] root privileg

2014-06-04 Thread Reinier Olislagers
On 04/06/2014 19:23, A. Fortuny wrote: Le 4/06/2014 17:01, Reinier Olislagers a écrit : On 04/06/2014 16:54, Michael Van Canneyt wrote: On Wed, 4 Jun 2014, A. Fortuny wrote: How to gain temporarily root privileges in a pascal program ? I need to 'ping' an IP address and for ping to work (Indy

Re: [Lazarus] root privileg

2014-06-04 Thread Michael Van Canneyt
On Wed, 4 Jun 2014, Reinier Olislagers wrote: On 04/06/2014 19:23, A. Fortuny wrote: Le 4/06/2014 17:01, Reinier Olislagers a écrit : On 04/06/2014 16:54, Michael Van Canneyt wrote: On Wed, 4 Jun 2014, A. Fortuny wrote: How to gain temporarily root privileges in a pascal program ? I need

Re: [Lazarus] Problem rounding values at post

2014-06-04 Thread Allan E. Registos
On Wednesday, 04 June, 2014 04:43 PM, Mattias Gaertner wrote: On Wed, 04 Jun 2014 15:47:24 +0800 Allan E. Registos allan.regis...@smpc.steniel.com.ph wrote: On Wednesday, 04 June, 2014 06:03 AM, Philippe wrote: generally, if one needs accurate values he does not use real values ... use

Re: [Lazarus] Problem rounding values at post

2014-06-04 Thread Allan E. Registos
On Thursday, 05 June, 2014 02:33 AM, Daniel Erles wrote: 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