Re: [Lazarus] SpinEdit on Delphi question (related to bug 26488)

2014-07-26 Thread Bart
On 7/26/14, Vojtěch Čihák  wrote:
> This
>
>>Caption := 'Value = ', + FloatToStr(SE.Value);
>
> raises the same exception, EConvertError, not a integrer value.

Thanks.
This proves that Delphi sucks ;-)

Bart

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] SpinEdit on Delphi question (related to bug 26488)

2014-07-26 Thread Vojtěch Čihák

This
 

Caption := 'Value = ', + FloatToStr(SE.Value);

 
raises the same exception, EConvertError, not a integrer value.
 
Vojtěch 
__

Od: Bart 
Komu: Lazarus mailing list 
Datum: 26.07.2014 17:08
Předmět: Re: [Lazarus] SpinEdit on Delphi question (related to bug 26488)


On 7/26/14, Vojtěch Čihák  wrote:

Hi,

on Delphi7, when I do SpinEdit1.Text:='abc'; then it fairly contains abc
:-). But when I try to spin it, it raises exception: abc is not integer
value.


OK, but that doesn't answer the question:

SE.Text := 'abc';
Caption := 'Value = ', + FloatToStr(SE.Value);

Bart

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus 
<http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus>

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] SpinEdit on Delphi question (related to bug 26488)

2014-07-26 Thread Bart
On 7/26/14, Vojtěch Čihák  wrote:

> :-). But when I try to spin it, it raises exception: abc is not integer
> value.

My D3 does then spin up to 1..., not exception.

Bart

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] SpinEdit on Delphi question (related to bug 26488)

2014-07-26 Thread Bart
On 7/26/14, Vojtěch Čihák  wrote:
> Hi,
>
> on Delphi7, when I do SpinEdit1.Text:='abc'; then it fairly contains abc
> :-). But when I try to spin it, it raises exception: abc is not integer
> value.

OK, but that doesn't answer the question:

SE.Text := 'abc';
Caption := 'Value = ', + FloatToStr(SE.Value);

Bart

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] SpinEdit on Delphi question (related to bug 26488)

2014-07-26 Thread Vojtěch Čihák

Hi,
 
on Delphi7, when I do SpinEdit1.Text:='abc'; then it fairly contains abc :-). 
But when I try to spin it, it raises exception: abc is not integer value.
 
Vojtěch 
__

Od: Bart 
Komu: Lazarus mailing list 
Datum: 26.07.2014 16:42
Předmět: [Lazarus] SpinEdit on Delphi question (related to bug 26488)


Hi,

I'm trying to fix issue http://bugs.freepascal.org/view.php?id=26488 
<http://bugs.freepascal.org/view.php?id=26488>
For this I need to know how Delphi behaves in following situations:

Given that SE is a TFloatSpinEdit (if Delphi only has SpinEdit this
will do as well):
Given that SE.Value is set to 10 at design time.

Now do (in code @runtime):

SE.Text := 'abc'; //obviously invalid number
After that what is the content of SE.Value?
Is it 10 or 0 or something else? (in D3 with a SpinEdit it is 0.)

Same question if you do SE.Clear as the first step.

Bart

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus 
<http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus>

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] SpinEdit on Delphi question (related to bug 26488)

2014-07-26 Thread Bart
Hi,

I'm trying to fix issue http://bugs.freepascal.org/view.php?id=26488
For this I need to know how Delphi behaves in following situations:

Given that SE is a TFloatSpinEdit (if Delphi only has SpinEdit this
will do as well):
Given that SE.Value is set to 10 at design time.

Now do (in code @runtime):

SE.Text := 'abc'; //obviously invalid number
After that what is the content of SE.Value?
Is it 10 or 0 or something else? (in D3 with a SpinEdit it is 0.)

Same question if you do SE.Clear as the first step.

Bart

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus