Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2014-07

SpinEdit on Delphi question (related to bug 26488)

6 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

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

Reply by email

Vojtěch Čihák
to Bart

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?

Reply by email

Bart
to Vojtěch Čihák
Vojt?ch ?ih?k wrote 5 lines
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

Reply by email