Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 7 of 7 total
Thread ShortTimeFormat in Version 1.04 Build 1
Wed, Oct 15 2014 5:32 AMPermanent Link

Chris Holland

SEC Solutions Ltd.

Avatar

Team Elevate Team Elevate

When I try and set the Short Time Format like this:

FormatSettings.ShortTimeFormat := 'HH:mm';

It throws an error in V1.04 Build 1

This worked fine in V1.03, has the format changed for this build or is
this a bug?

Chris Holland
[Team Elevate]
Wed, Oct 15 2014 8:03 AMPermanent Link

Matthew Jones

Chris Holland wrote:

> When I try and set the Short Time Format like this:
>
> FormatSettings.ShortTimeFormat := 'HH:mm';
>
> It throws an error in V1.04 Build 1
>
> This worked fine in V1.03, has the format changed for this build or
> is this a bug?

I'd want to do a diff on the source - checking back this used to be an
issue, so I wonder if it has regressed.

--

Matthew Jones
Wed, Oct 15 2014 8:55 AMPermanent Link

Chris Holland

SEC Solutions Ltd.

Avatar

Team Elevate Team Elevate

Tim has emailed me and it is a "feature" - he will have a fix out soon.

Chris

On 15/10/2014 13:03, Matthew Jones wrote:
> Chris Holland wrote:
>
>> When I try and set the Short Time Format like this:
>>
>> FormatSettings.ShortTimeFormat := 'HH:mm';
>>
>> It throws an error in V1.04 Build 1
>>
>> This worked fine in V1.03, has the format changed for this build or
>> is this a bug?
>
> I'd want to do a diff on the source - checking back this used to be an
> issue, so I wonder if it has regressed.
>
Fri, Oct 24 2014 11:06 AMPermanent Link

Walter Matte

Tactical Business Corporation

Chris

Was there a workaround for this?

Or did you revert back to V 1.03 B7

Walter


SChris Holland wrote:

Tim has emailed me and it is a "feature" - he will have a fix out soon.

Chris

On 15/10/2014 13:03, Matthew Jones wrote:
> Chris Holland wrote:
>
>> When I try and set the Short Time Format like this:
>>
>> FormatSettings.ShortTimeFormat := 'HH:mm';
>>
>> It throws an error in V1.04 Build 1
>>
>> This worked fine in V1.03, has the format changed for this build or
>> is this a bug?
>
> I'd want to do a diff on the source - checking back this used to be an
> issue, so I wonder if it has regressed.
>
Sat, Oct 25 2014 7:22 AMPermanent Link

Chris Holland

SEC Solutions Ltd.

Avatar

Team Elevate Team Elevate

Tim sent me a work around but I just changed the short time to be
HH:mm:ss and that worked.


--
Chris Holland

Walter Matte <> Wrote in message:
> Chris
>
> Was there a workaround for this?
>
> Or did you revert back to V 1.03 B7
>
> Walter
>
>
> SChris Holland wrote:
>
> Tim has emailed me and it is a "feature" - he will have a fix out soon.
>
> Chris
>
> On 15/10/2014 13:03, Matthew Jones wrote:
>> Chris Holland wrote:
>>
>>> When I try and set the Short Time Format like this:
>>>
>>> FormatSettings.ShortTimeFormat := 'HH:mm';
>>>
>>> It throws an error in V1.04 Build 1
>>>
>>> This worked fine in V1.03, has the format changed for this build or
>>> is this a bug?
>>
>> I'd want to do a diff on the source - checking back this used to be an
>> issue, so I wonder if it has regressed.
>>
>
>
Mon, Oct 27 2014 2:48 AMPermanent Link

Chris Holland

SEC Solutions Ltd.

Avatar

Team Elevate Team Elevate

Hi Walter,

Here is the work around that Tim sent me:

I'll have a fix for this out shortly, but for now just use this code:

function TFormatSettings.ParseShortTime(const Value: String;
                                        Format: Boolean=False):
TStringsArray;
var
   I: Integer;
begin
   SetLength(Result,4);
   if Format then  <<<<<<<<<<<<<<<<<<<<<<<<<<  Add these if/else blocks
      begin
      Result[0]:='';
      Result[1]:='';
      Result[2]:='';
      Result[3]:='';
      end
   else
      begin
      Result[0]:='0';
      Result[1]:='0';
      Result[2]:='0';
      Result[3]:='0';
      end;

and also:

function TFormatSettings.ParseShortDate(const Value: String;
                                        Format: Boolean=False):
TStringsArray;
var
   I: Integer;
begin
   SetLength(Result,3);
   if Format then  <<<<<<<<<<<<<<<  Same thing, add these if/else blocks
      begin
      Result[0]:='';
      Result[1]:='';
      Result[2]:='';
      end
   else
      begin
      Result[0]:='0';
      Result[1]:='0';
      Result[2]:='0';
      end;

Chris Holland
[Team Elevate]
Mon, Oct 27 2014 8:34 AMPermanent Link

Walter Matte

Tactical Business Corporation


Thank you.

Walter
Image