Search found 3721 matches

by Little John
Fri Dec 29, 2023 3:44 pm
Forum: Tricks 'n' Tips
Topic: DateEx: Extended Date library
Replies: 33
Views: 4505

Re: DateEx: Extended Date library

Demo program ; tested with PB 5.73 LTS, 6.04 LTS ; Create an annual overview calendar EnableExplicit XIncludeFile "DateEx.pbi" UseModule DateEx Procedure.i CalcOneMonth (year.i, month.i, Array monthCal.i(2)) ; in : year, month ; out: monthCal() ; return value: column index of last week in...
by Little John
Fri Dec 29, 2023 8:17 am
Forum: Feature Requests and Wishlists
Topic: Update FormatDate() and ParseDate() to the new date range
Replies: 27
Views: 3104

Re: [BUG]Re: Update FormatDate() and ParseDate() to the new date range

; The last second of the year 1969 does not exist for FormatDate. That is on purpose. The value -1 has always meant "invalid date" in the PB date library so we have to keep that for backward compatibility. Changing that would break a lot of code so having this one specific second be non-r...
by Little John
Thu Dec 28, 2023 6:18 pm
Forum: Announcement
Topic: i2pdf - image to pdf
Replies: 38
Views: 12929

Re: i2pdf - image to pdf

i2pdf version 1.0.48 works fine here on Windows 11. However, it's good to have the most recent version. :-)
Thank you, Luis!
by Little John
Thu Dec 28, 2023 5:00 pm
Forum: Feature Requests and Wishlists
Topic: Update FormatDate() and ParseDate() to the new date range
Replies: 27
Views: 3104

Re: Update FormatDate() and ParseDate() to the new date range

Sicro wrote: Thu Dec 28, 2023 3:51 pm How %yyyy currently works does not contradict how it is documented
... and I never wrote that. I wrote this.
Well, since freak has now changed the valid date range, the problem has disappeared into thin air anyway.
by Little John
Wed Dec 27, 2023 5:02 pm
Forum: General Discussion
Topic: [SOLVED] Integer calc. variation between ASM and C backend
Replies: 4
Views: 563

Re: Integer calc. variation between ASM and C backend

I can't explain why this is happening. However, problems with implicit typecasting have been reported and discussed here repeatedly, see e.g. Different implicit typecasting with different backends.

I strongly recommend not to use implicit typecasting, but to use Int(), IntQ() or Round().
by Little John
Wed Dec 27, 2023 10:35 am
Forum: Announcement
Topic: PureBasic 6.10 LTS is out !
Replies: 334
Views: 41828

Re: PureBasic 6.10 beta 1 - Xmas Release - is out !

jacdelad wrote: Wed Dec 27, 2023 10:08 am Are the new dates compatible with the old ones?
Yes, they are. See freak's message here
https://www.purebasic.fr/english/viewto ... 32#p613332
by Little John
Tue Dec 26, 2023 4:57 pm
Forum: Feature Requests and Wishlists
Topic: Update FormatDate() and ParseDate() to the new date range
Replies: 27
Views: 3104

Re: Update FormatDate() and ParseDate() to the new date range

@Sicro: In your original example, FormatDate() does not work correctly with a year >= 10000 when using the token "%yyyyy". After I changed the example so that it uses the token "%yyyy", it doesn't work correctly either. That's why I see a bug here. Or what other token should we u...
by Little John
Mon Dec 25, 2023 4:45 pm
Forum: Feature Requests and Wishlists
Topic: Update FormatDate() and ParseDate() to the new date range
Replies: 27
Views: 3104

Re: Update FormatDate() and ParseDate() to the new date range

User_Russian wrote: Mon Dec 25, 2023 4:31 pm
Little John wrote: Mon Dec 25, 2023 2:51 pmshould work in accordance with its documentation.
The documentation has not yet been updated for 6.10.
Try to read and understand my complete previous message, and stop trolling here!
by Little John
Mon Dec 25, 2023 2:51 pm
Forum: Feature Requests and Wishlists
Topic: Update FormatDate() and ParseDate() to the new date range
Replies: 27
Views: 3104

Re: Update FormatDate() and ParseDate() to the new date range

User_Russian wrote: You think that in 12345 year, current applications and PB will be relevant?
I think, just like most other users, that PureBasic should work in accordance with its documentation.
Fred wrote:Updated: Date library for full 64bit support (new range is year 1601 to 30827)
by Little John
Mon Dec 25, 2023 2:26 pm
Forum: Feature Requests and Wishlists
Topic: Update FormatDate() and ParseDate() to the new date range
Replies: 27
Views: 3104

Re: Update FormatDate() and ParseDate() to the new date range

Well, this is also a bug report, since the above results of FormatDate() and ParseDate() are wrong anyway: Define.q date = Date(12345, 1, 2, 3, 4, 5) Debug FormatDate("%dd.%mm.%yyyy %hh:%ii:%ss", date) ; output : 02.01.1234 03:04:05 ; expected by me: 02.01.12345 03:04:05 Debug ParseDate(&q...
by Little John
Mon Dec 25, 2023 1:41 pm
Forum: Feature Requests and Wishlists
Topic: Update FormatDate() and ParseDate() to the new date range
Replies: 27
Views: 3104

Re: Update FormatDate() and ParseDate() to the new date range

It would be OK for me if "%yy" corresponds to the last two digits of the respective year, and "%yyyy" corresponds to the full year number (as it is with PB < 6.10) - regardless whether the year has four or five digits. Note that ""%yyy"" also is not a valid to...
by Little John
Sun Dec 24, 2023 4:30 am
Forum: Bugs - IDE
Topic: No syntax highlighting of comments in ASM (PB 6.10, but also since 6.03)
Replies: 7
Views: 982

Re: No syntax highlighting of comments in ASM (PB 6.10, but also since 6.03)

BarryG wrote: But doesn't the leading "!" mean the entire line is ASM?
It means that the entire line is ASM when using the ASM backend, and it means that the entire line is C when using the C backend.
by Little John
Sat Dec 23, 2023 8:49 pm
Forum: Announcement
Topic: PureBasic 6.10 LTS is out !
Replies: 334
Views: 41828

Re: PureBasic 6.10 beta 1 - Xmas Release - is out !

User_Russian wrote: Sat Dec 23, 2023 8:44 pm I tested the code with WebViewGadget from the first post in Win 7, Win 8 and Win 10, and the window is always empty (gadget is not initialized).
Does anyone have this code working fine?
It works well here on Windows 11. I can't test on any other Windows version.
by Little John
Fri Dec 22, 2023 10:13 pm
Forum: Announcement
Topic: PureBasic 6.10 LTS is out !
Replies: 334
Views: 41828

Re: PureBasic 6.10 beta 1 - Xmas Release - is out !

Many thanks, Fred and Freak :!: And Merry Christmas to all :!: Ok. But then it is difficult to test the new beta. Absolutely. What should be the return value for the compare procedure in CustomSortList()? Only True/False or -1/0/1 ? I played a little bit, and the following seems to work :-) (note th...
by Little John
Wed Dec 20, 2023 9:22 pm
Forum: Coding Questions
Topic: bug or no bug?
Replies: 3
Views: 404

Re: bug or no bug?

I don't think that it's strange. It's just invalid syntax.
The situation is not specific for a StructureUnion.

Oops! mk-soft was quicker. :-)