Long time no news

Started by Pierre Bellisle, October 07, 2025, 05:46:46 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Theo Gottwald

Quote from: José Roca on November 19, 2025, 09:43:06 PM> but the string engine is zero-based thats a problem for me

What this means?

> so i used Powerbasic and made  my own  libraries.

The code that you posted uses ansi strings, so it can't be used with unicode.

It also uses several global arrays. Not good for reusable code.

I definitely did not use the code i have posted, but a much more advanced version.
The code i posted was just the first strike that i got from the KI.

The final code is more like a spider-web takes sll's and includes from multiple places of my hard drive so it can not be easily shared. Yet if you need something you can always ask.

Theo Gottwald

Quote from: José Roca on November 19, 2025, 09:43:06 PM> but the string engine is zero-based thats a problem for me

What this means?


Purebasic has only 2 variants of using Strings(Data).
You can use the normal zero-terminated strings or you can use "Memory".
As the typical BASIC User i like to keep all data in strings,
where it has a name is easy to handle and the Compiler will take care of allocation and deallocation.
The problem with 0-terminated strings is just that they can not be used for binary data because it may contain a ZERO.
For me these strings  can only be used for Textboxes. So i would have needed to use the Memory  System which is too much C-like with all disadvantages. So i avoid that unless for a prototype.