Search found 3930 matches

by Little John
Sun Aug 10, 2025 11:56 am
Forum: Coding Questions
Topic: Accented Characters (French)
Replies: 3
Views: 120

Re: Accented Characters (French)

... and save your data in the CSV file preferably in UTF-8 format.
by Little John
Sun Aug 03, 2025 8:13 pm
Forum: Off Topic
Topic: Illustrating BASIC: A Book from 1977
Replies: 19
Views: 779

Re: Illustrating BASIC: A Book from 1977

Kiffi wrote: Sun Aug 03, 2025 7:31 pm
My edition is older :wink:
From the Stone Age! Cool. 8)
by Little John
Sun Aug 03, 2025 2:18 pm
Forum: General Discussion
Topic: trouble with win update.
Replies: 7
Views: 263

Re: trouble with win update.

chandler wrote: Sun Aug 03, 2025 1:38 pm So if you use an old version of PB with new Win 11 update. Program can't "open screen...."
It may depend on how old the PB version is. ;-)
by Little John
Thu Jul 31, 2025 5:49 pm
Forum: Coding Questions
Topic: Is this a ReplaceString Bug?
Replies: 9
Views: 433

Re: Is this a ReplaceString Bug?

Demivec wrote: Thu Jul 31, 2025 2:59 pm It does not search the replacements after they have each been made.
Yep! And I thank heaven for that! Otherwise, that function would be a whole mess, and could even produce an endless loop.
by Little John
Thu Jul 31, 2025 2:55 pm
Forum: Coding Questions
Topic: Is this a ReplaceString Bug?
Replies: 9
Views: 433

Re: Is this a ReplaceString Bug?

swhite wrote:Is this a ReplaceString Bug?
No.
'lcTxt' contains ",," 4 times, and each occurence of ",," is replaced with ",0,". So of course the result is ",0,,0,,0,,0,".
by Little John
Thu Jul 31, 2025 6:38 am
Forum: Coding Questions
Topic: GetExtensionPart fails with a space
Replies: 17
Views: 565

Re: GetExtensionPart fails with a space



This is what I'm using now, since it covers all situations (spaces, multiple dots, dots at the start and end, dots in the path):

For windows, a full stop (period) can be the first character of a filename. If the first character is the only period in the filename then there is no extender ...
by Little John
Wed Jul 30, 2025 6:47 pm
Forum: Coding Questions
Topic: GetExtensionPart fails with a space
Replies: 17
Views: 565

Re: GetExtensionPart fails with a space

mk-soft wrote: Wed Jul 30, 2025 6:39 pm
Fred wrote: Wed Jul 30, 2025 10:58 am Windows doesn't support this, you can check in Explorer, the column 'type' will display nothing if you have a space.
I have to agree with Fred.
And what about Linux and macOS?
by Little John
Wed Jul 30, 2025 2:37 pm
Forum: Coding Questions
Topic: GetExtensionPart fails with a space
Replies: 17
Views: 565

Re: GetExtensionPart fails with a space



Procedure.s MyGetExtensionPart2(text.s)
Protected dotCount.i = CountString(text, ".")
If Not dotCount
ProcedureReturn ""
EndIf
ProcedureReturn StringField(text, dotCount + 1, ".")
EndProcedure


This is elegant, but not bullet-proof. Try this:
Debug GetExtensionPart("c:\test\.foo")
Debug ...
by Little John
Wed Jul 30, 2025 1:05 pm
Forum: Coding Questions
Topic: Solved, no Bug! Probably a Bug with Stringoperations in PB6.21
Replies: 2
Views: 154

Re: Probably a Bug with Stringoperations in PB6.21

SMaag wrote: Wed Jul 30, 2025 12:49 pm Solved! Last Parameter in Prototype definition was missing!
So please correct the title of this thread (at least remove the word „bug“)!
by Little John
Wed Jul 30, 2025 12:57 pm
Forum: Off Topic
Topic: Good PAID Software -- Your Favorites
Replies: 74
Views: 52850

Re: Good PAID Software -- Your Favorites

This thread becomes increasingly unreadable.
Dear admins & moderators, please remove all the offtopic blah-blah from the thread!
by Little John
Tue Jul 29, 2025 11:50 am
Forum: Coding Questions
Topic: window With no Title And With no taskbar icon?
Replies: 11
Views: 444

Re: window With no Title And With no taskbar icon?

Rashad's above code a bit simplified, without using API functions:


OpenWindow(1, -300, 0, 0, 0, "Not Needed", #PB_Window_Invisible)
OpenWindow(0, 1, 1, 115, 70, "xx", #PB_Window_ScreenCentered|#PB_Window_BorderLess, WindowID(1))
SetWindowColor(0, $9BD6F7)
ButtonGadget(0, 5, 5, 64, 24, "Exit ...
by Little John
Fri Jul 25, 2025 10:59 am
Forum: Tricks 'n' Tips
Topic: DateEx: Extended Date library
Replies: 46
Views: 12331

Re: DateEx: Extended Date library

New version 2.06, 2025-07-25

Changed
  • Improved Procedure ParseDateQ()
by Little John
Mon Jul 21, 2025 7:50 am
Forum: Tricks 'n' Tips
Topic: Custom Menu [Windows]
Replies: 15
Views: 821

Re: Custom Menu [Windows]

Looks good. :thumbsup: Thanks for sharing! :-)
by Little John
Fri Jul 18, 2025 10:11 am
Forum: General Discussion
Topic: Version of PCRE that PureBasic uses?
Replies: 9
Views: 582

Re: Version of PCRE that PureBasic uses?

idle wrote: Fri Jul 18, 2025 10:02 am Maybe it would be a good idea to have all libs with a version function for cases like this.
:thumbsup:
by Little John
Fri Jul 18, 2025 9:23 am
Forum: General Discussion
Topic: Version of PCRE that PureBasic uses?
Replies: 9
Views: 582

Re: Version of PCRE that PureBasic uses?

Shardik wrote: Fri Jul 18, 2025 9:12 am idle's example was already posted by Fred about 9 years ago... :wink:
Maybe it would be a good idea to include that snippet in the help.