Alaska Software Inc. - error in ctod() function on Xbase++ 2.00.1487
Username: Password:
AuthorTopic: error in ctod() function on Xbase++ 2.00.1487
Claudio Driussi error in ctod() function on Xbase++ 2.00.1487
on Thu, 02 Sep 2021 12:39:21 +0200
I found a bug in latest Xbase++ version.

now:

? dtoc(ctod('01/01/9999'))   19990101

previous versions:

? dtoc(ctod('01/01/9999'))   99990101

my workaronud is:

? dtoc(stod('99990101'))   19990101

Regards

Claudio
Claudio Driussi Re: error in ctod() function on Xbase++ 2.00.1487
on Thu, 02 Sep 2021 12:51:26 +0200
not only ctod('01/01/9999')

but all dates give wrong result.

I use

SET DATE TO BRITISH

Must reinstall previous version

claudio


Il 02/09/21 12:39, Claudio Driussi ha scritto:
> I found a bug in latest Xbase++ version.
> 
> now:
> 
> ? dtoc(ctod('01/01/9999'))   19990101
> 
> previous versions:
> 
> ? dtoc(ctod('01/01/9999'))   99990101
> 
> my workaronud is:
> 
> ? dtoc(stod('99990101'))   19990101
> 
> Regards
> 
> Claudio
Jonathan LeemingRe: error in ctod() function on Xbase++ 2.00.1487
on Fri, 03 Sep 2021 21:33:22 -0600
On 9/2/2021 4:51 AM, Claudio Driussi wrote:
> SET DATE TO BRITISH

Hi Claudio,

I tested the following with 1461...

MsgBox(dtoc(ctod('01/01/9999')))

SET DATE TO BRITISH	 My app had already SET DATE TO AMERICAN

MsgBox(dtoc(ctod('01/01/9999')))

Both instances displayed 01/01/9999.  Since you were noting original 
return values of 99990101 I modified the dtoc() to dtos() and found the 
return values were 99990101 in both cases.

I then upgraded to 1487 with identical return values that I was getting 
with 1461 so I have no idea why you are experiencing different return 
values.

Regards... Jonathan
Claudio Driussi Re: error in ctod() function on Xbase++ 2.00.1487
on Sat, 04 Sep 2021 09:16:10 +0200
On 04/09/21 05:33, Jonathan Leeming wrote:

Maybe a DLL mismatch in my environment... can be.

Back in 1461 all is ok.

I will try again.

Thanks for your feedback.

Claudio


> On 9/2/2021 4:51 AM, Claudio Driussi wrote:
>> SET DATE TO BRITISH
> 
> Hi Claudio,
> 
> I tested the following with 1461...
> 
> MsgBox(dtoc(ctod('01/01/9999')))
> 
> SET DATE TO BRITISH     My app had already SET DATE TO AMERICAN
> 
> MsgBox(dtoc(ctod('01/01/9999')))
> 
> Both instances displayed 01/01/9999.  Since you were noting original 
> return values of 99990101 I modified the dtoc() to dtos() and found the 
> return values were 99990101 in both cases.
> 
> I then upgraded to 1487 with identical return values that I was getting 
> with 1461 so I have no idea why you are experiencing different return 
> values.
> 
> Regards... Jonathan
>
Carlos Re: error in ctod() function on Xbase++ 2.00.1487
on Sun, 05 Sep 2021 12:15:44 +0100
Hi,
Yes, there is CTOD() a problem at line 22.
I already changed my code to use STOD().
Carlos










Às 08:16 de 04/09/2021, Claudio Driussi escreveu:
> On 04/09/21 05:33, Jonathan Leeming wrote:
> 
> Maybe a DLL mismatch in my environment... can be.
> 
> Back in 1461 all is ok.
> 
> I will try again.
> 
> Thanks for your feedback.
> 
> Claudio
> 
> 
>> On 9/2/2021 4:51 AM, Claudio Driussi wrote:
>>> SET DATE TO BRITISH
>>
>> Hi Claudio,
>>
>> I tested the following with 1461...
>>
>> MsgBox(dtoc(ctod('01/01/9999')))
>>
>> SET DATE TO BRITISH     My app had already SET DATE TO AMERICAN
>>
>> MsgBox(dtoc(ctod('01/01/9999')))
>>
>> Both instances displayed 01/01/9999.  Since you were noting original 
>> return values of 99990101 I modified the dtoc() to dtos() and found 
>> the return values were 99990101 in both cases.
>>
>> I then upgraded to 1487 with identical return values that I was 
>> getting with 1461 so I have no idea why you are experiencing different 
>> return values.
>>
>> Regards... Jonathan
>>
>


test.prg
James LoughnerRe: error in ctod() function on Xbase++ 2.00.1487
on Mon, 13 Sep 2021 08:22:19 -0400
Explains a problem I saw with 1461. I had to drop back to previous version.

Jim

On 9/5/21 7:15 AM, Carlos wrote:
> Hi,
> Yes, there is CTOD() a problem at line 22.
> I already changed my code to use STOD().
> Carlos
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Às 08:16 de 04/09/2021, Claudio Driussi escreveu:
>> On 04/09/21 05:33, Jonathan Leeming wrote:
>>
>> Maybe a DLL mismatch in my environment... can be.
>>
>> Back in 1461 all is ok.
>>
>> I will try again.
>>
>> Thanks for your feedback.
>>
>> Claudio
>>
>>
>>> On 9/2/2021 4:51 AM, Claudio Driussi wrote:
>>>> SET DATE TO BRITISH
>>>
>>> Hi Claudio,
>>>
>>> I tested the following with 1461...
>>>
>>> MsgBox(dtoc(ctod('01/01/9999')))
>>>
>>> SET DATE TO BRITISH     My app had already SET DATE TO AMERICAN
>>>
>>> MsgBox(dtoc(ctod('01/01/9999')))
>>>
>>> Both instances displayed 01/01/9999.  Since you were noting original 
>>> return values of 99990101 I modified the dtoc() to dtos() and found 
>>> the return values were 99990101 in both cases.
>>>
>>> I then upgraded to 1487 with identical return values that I was 
>>> getting with 1461 so I have no idea why you are experiencing 
>>> different return values.
>>>
>>> Regards... Jonathan
>>>
>>
>
James LoughnerRe: error in ctod() function on Xbase++ 2.00.1487
on Tue, 14 Sep 2021 15:01:28 -0400
Anyone report this to Alaska yet???

On 9/4/21 3:16 AM, Claudio Driussi wrote:
> On 04/09/21 05:33, Jonathan Leeming wrote:
> 
> Maybe a DLL mismatch in my environment... can be.
> 
> Back in 1461 all is ok.
> 
> I will try again.
> 
> Thanks for your feedback.
> 
> Claudio
> 
> 
>> On 9/2/2021 4:51 AM, Claudio Driussi wrote:
>>> SET DATE TO BRITISH
>>
>> Hi Claudio,
>>
>> I tested the following with 1461...
>>
>> MsgBox(dtoc(ctod('01/01/9999')))
>>
>> SET DATE TO BRITISH     My app had already SET DATE TO AMERICAN
>>
>> MsgBox(dtoc(ctod('01/01/9999')))
>>
>> Both instances displayed 01/01/9999.  Since you were noting original 
>> return values of 99990101 I modified the dtoc() to dtos() and found 
>> the return values were 99990101 in both cases.
>>
>> I then upgraded to 1487 with identical return values that I was 
>> getting with 1461 so I have no idea why you are experiencing different 
>> return values.
>>
>> Regards... Jonathan
>>
>
Andreas Gehrs-Pahl
Re: error in ctod() function on Xbase++ 2.00.1487
on Tue, 14 Sep 2021 19:21:53 -0400
James,

>Anyone report this to Alaska yet???

Apparently so. See here:

https://www.alaska-software.com/scripts/waa001.dll?WAA_PACKAGE=PUBLICDTS&WAA_FORM=DISPLAYPDR&PDRID=7440

Andreas

Andreas Gehrs-Pahl
Absolute Software, LLC

phone: (989) 723-9927
email: Andreas@AbsoluteSoftwareLLC.com
web:   http://www.AbsoluteSoftwareLLC.com
[L]:   https://www.LinkedIn.com/in/AndreasGehrsPahl
[F]:   https://www.FaceBook.com/AbsoluteSoftwareLLC
Claudio Driussi Re: error in ctod() function on Xbase++ 2.00.1487
on Mon, 20 Sep 2021 11:16:37 +0200
Thanks Andreas,

They know it, so I think it will be solved soon.

Waiting for next release.

Claudio

Il 15/09/21 01:21, Andreas Gehrs-Pahl ha scritto:
> James,
> 
>> Anyone report this to Alaska yet???
> 
> Apparently so. See here:
> 
> https://www.alaska-software.com/scripts/waa001.dll?WAA_PACKAGE=PUBLICDTS&WAA_FORM=DISPLAYPDR&PDRID=7440
> 
> Andreas
>