Search found 3989 matches

by Little John
Sat Feb 14, 2026 8:45 am
Forum: Feature Requests and Wishlists
Topic: I Wish For [F1] Help On Procedures
Replies: 11
Views: 510

Re: I Wish For [F1] Help On Procedures

Randy Walker wrote: Sat Feb 14, 2026 8:13 am Maybe just click on the image link in my OP and tell us how you feel, that it is a terrible idea not even worth discussing. Or is it you feel bantering over use of verbiage is more useful to everyone? Why all the hate?
That was a misunderstanding, obviously. No need to attack me ...
by Little John
Sat Feb 14, 2026 7:29 am
Forum: Feature Requests and Wishlists
Topic: I Wish For [F1] Help On Procedures
Replies: 11
Views: 510

Re: I Wish For [F1] Help On Procedures

BarryG wrote: Sat Feb 14, 2026 7:26 am He knows that. He's asking for that feature to become part of PureBasic's IDE.
He wrote that he is missing it “in the JaPBe IDE”.
by Little John
Sat Feb 14, 2026 7:28 am
Forum: Coding Questions
Topic: PB6.30/?B6.40a4 - #PB_Editor_CreateExecutable constant not found
Replies: 4
Views: 275

Re: PB6.30/?B6.40a4 - #PB_Editor_CreateExecutable constant not found


In the "Compiler Options" window, click on the "Constants" tab and check the "#PB_Editor_CreateExecutable".

I never understood why this is necessary. Why can't the constant #PB_Editor_CreateExecutable be always generally available, like most other built-in constants that start with #PB_ :?:
by Little John
Sat Feb 14, 2026 7:06 am
Forum: Feature Requests and Wishlists
Topic: I Wish For [F1] Help On Procedures
Replies: 11
Views: 510

Re: I Wish For [F1] Help On Procedures

Randy Walker wrote: Sat Feb 14, 2026 4:42 am One thing I really miss in the JaPBe IDE is [...]
The JaPBe IDE was not created by and is not maintained by Fanataisie software.
by Little John
Fri Feb 13, 2026 6:44 pm
Forum: Mac OSX
Topic: How to upload files to this board
Replies: 2
Views: 151

Re: How to upload files to this board


I have a program of about 57KB (source code) I would like to share, but I can find no way to attach a file to a message.
Is there any other way than just inserting the 2000+ lines of code in. the message?

It's not possible to attach a file to a message on this forum. Either post the code inside ...
by Little John
Wed Feb 04, 2026 10:27 pm
Forum: General Discussion
Topic: From PowerBasic to PureBasic a reference aid
Replies: 17
Views: 115497

Re: From PowerBasic to PureBasic a reference aid

PowerBasic function STRING$ -> RepeatChar()

PowerBasic function REPEAT$ -> RepeatString()
by Little John
Wed Feb 04, 2026 6:24 pm
Forum: Tricks 'n' Tips
Topic: RepeatChar() and RepeatString()
Replies: 3
Views: 440

Re: RepeatChar() and RepeatString()

That's more elegant, thank you! :thumbsup:
by Little John
Wed Feb 04, 2026 3:27 pm
Forum: Tricks 'n' Tips
Topic: RepeatChar() and RepeatString()
Replies: 3
Views: 440

RepeatChar() and RepeatString()

Hi!

Sometimes I need to create a long string by repeating a particular shorter string n times.
That's why I wrote a function RepeatString(n, s$) for my private standard library.
When s$ only consists of 1 character, the new string can be created very quickly by (ab)using LSet() , so I wrote a ...
by Little John
Mon Feb 02, 2026 1:38 am
Forum: Bugs - C backend
Topic: 6.40 alpha 3 constant not found #PB_String_InPlace
Replies: 1
Views: 583

Re: 6.40 alpha 3 constant not found #PB_String_InPlace

Fred wrote: Wed Jan 28, 2026 9:22 am Removed #PB_String_InPlace
viewtopic.php?p=650813#p650813
by Little John
Sun Feb 01, 2026 2:10 pm
Forum: Announcement
Topic: PureBasic 6.40 alpha 4 is ready, surprise inside !
Replies: 139
Views: 18757

Re: PureBasic 6.40 alpha 1 is ready, surprise inside !


If you want to write clean, future proof code, you should use AllocateMemory() for your memory buffers instead of misusing a string as a memory buffer that you can write to. If you think about it, THAT was the initial reliance on undocumented internals that you all have been using and it is ...
by Little John
Sun Feb 01, 2026 10:44 am
Forum: Announcement
Topic: PureBasic 6.40 alpha 4 is ready, surprise inside !
Replies: 139
Views: 18757

Re: PureBasic 6.40 alpha 1 is ready, surprise inside !


The problem is spreading this code as a "tip" around the forum, which will lead to people blindly using it thinking they are doing a clever optimization without understanding the details. And then if we do change something, we have to deal with the complaints again. And all that for an ...
by Little John
Sat Jan 31, 2026 6:45 pm
Forum: Announcement
Topic: PureBasic 6.40 alpha 4 is ready, surprise inside !
Replies: 139
Views: 18757

Re: PureBasic 6.40 alpha 3 is ready, surprise inside !

Axolotl wrote: Sat Jan 31, 2026 5:18 pm Shouldn't there be a limit on the length of function names? (Just kidding.)
:)
by Little John
Thu Jan 29, 2026 9:15 pm
Forum: Bugs - Documentation
Topic: StringByteLength()
Replies: 0
Views: 781

StringByteLength()

see https://www.purebasic.com/documentation/string/stringbytelength.html

Syntax

Result = StringByteLength (String$ [, Format])
For the optional 'Format' parameter, three possible values are mentioned.
But it is not explained which of them the default value is, if this parameter is omitted when ...
by Little John
Thu Jan 29, 2026 12:19 pm
Forum: Feature Requests and Wishlists
Topic: Wishlist for PB 7.0 :)
Replies: 48
Views: 8321

Re: Wishlist for PB 7.0 :)

Please allow single underscores in numeric literals as visual separators for digit grouping in order to boost readability.
As an example, this is valid Python code:

Code: Select all

amount = 10_000_000.0
addr = 0xCAFE_F00D
flags = 0b_0011_1111_0100_1110