Icon View Thread

The following is the text of the current message along with any replies.
Messages 11 to 14 of 14 total
Thread error when changing formatsettings.DateSeparator
Tue, Sep 27 2016 3:26 AMPermanent Link

Ronald

Ronald wrote:

<<
Could it be the text property in the calendar control? In the ide it says: 9/21/2016, but when I run my app I change the formatsettings but the text property is still 9/21/2016 at that moment. Could that be the cause?
>>

Yes, it is in the text property. I tested this by changing the value of the textproperty by hand in the .wbf file in a "dutch" date (1-1-2016). If I then run the application I do not get the error.
Tue, Sep 27 2016 8:18 AMPermanent Link

Raul

Globestar Systems

Team Elevate Team Elevate

On 9/27/2016 3:26 AM, Ronald wrote:
> Ronald wrote:
> Yes, it is in the text property. I tested this by changing the value of the textproperty by hand in the .wbf file in a "dutch" date (1-1-2016). If I then run the application I do not get the error.

Good it works for you but i'm not seeing this.

With text property as "9/27/2016" and app changing formatsettings to
"d-M-yyyy" calendar works just fine here without any errors.

Raul


Mon, Oct 3 2016 5:22 AMPermanent Link

Ronald

Raul wrote:

<<Good it works for you but i'm not seeing this.

With text property as "9/27/2016" and app changing formatsettings to
"d-M-yyyy" calendar works just fine here without any errors.>>

I now create the TCalender control at runtime and it works ok now.
Mon, Oct 3 2016 12:43 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Ronald,

<< Yes, it is in the text property. I tested this by changing the value of the textproperty by hand in the .wbf file in a "dutch" date (1-1-2016). If I then run the application I do not get the error. >>

I tried this, which means that the date is incorrect for my date format, and the Text simply resets to today's date.  The same thing happens if I assign an invalid date (format) to the Text property of the TDateEditComboBox control.

However, the IDE *should* be raising an error in these cases, so I've fixed that.

Tim Young
Elevate Software
www.elevatesoft.com
Previous PagePage 2 of 2
Jump to Page:  1 2
Image