Search found 1943 matches
- Thu Jan 22, 2026 10:07 pm
- Forum: Coding Questions
- Topic: Is this safe? [Answered]
- Replies: 5
- Views: 264
Re: Is this safe?
PeekA(*pos+offset)
Yes I mean exactly that part. My concern: the parameter inside the bracket can not turn to be an addition in any case. Am I right? Sorry if the question is dumb, but I don't know how it is decided if it's an increment or not.
If you write an expression like:
a + b
the ...
- Wed Jan 21, 2026 10:04 pm
- Forum: Tricks 'n' Tips
- Topic: Mandelbrot
- Replies: 3
- Views: 214
- Wed Jan 21, 2026 8:26 pm
- Forum: The PureBasic Editor
- Topic: Colouring variables
- Replies: 4
- Views: 247
Re: Colouring variables
The Syntax Highlighting of the PureBasic editor (Scintilla gadget) is based on the regular expression.
This regex can't distinguish if "name(value)" is a procedure "name" with parameter "value" or an array "name" with the index "value" or a map "name" with the key "value". Therefore the color is ...
This regex can't distinguish if "name(value)" is a procedure "name" with parameter "value" or an array "name" with the index "value" or a map "name" with the key "value". Therefore the color is ...
- Thu Jan 08, 2026 10:23 pm
- Forum: Tricks 'n' Tips
- Topic: Sprite stacking - 3d effect
- Replies: 10
- Views: 780
Re: Sprite stacking - 3d effect
Very nice trick. I like it.
- Tue Jan 06, 2026 10:59 pm
- Forum: Coding Questions
- Topic: what is an [in between pixel] ...
- Replies: 1
- Views: 238
Re: what is an [in between pixel] ...
Here you can see the effect of floats for DisplaySprite:
The top image has a smooth move to the right,
while the bottom image makes a step movement.
InitSprite()
Enumeration
#Window
#Sprite
EndEnumeration
OpenWindow(#Window, 0, 0, 300, 300, "Sprite", #PB_Window_SystemMenu|#PB_Window ...
The top image has a smooth move to the right,
while the bottom image makes a step movement.
InitSprite()
Enumeration
#Window
#Sprite
EndEnumeration
OpenWindow(#Window, 0, 0, 300, 300, "Sprite", #PB_Window_SystemMenu|#PB_Window ...
- Sat Jan 03, 2026 5:48 pm
- Forum: Off Topic
- Topic: What 4D looks like ?
- Replies: 34
- Views: 1366
Re: What 4D looks like ?
Dear threedslider,
you mix up different topic: dimension itself, dimension of objects in different dimensions, and the projection (image) of n-dimensional objects into a view.
Dimension itself:
A 4-dimensional (4D) space is a space were you have 4 linearly independent axis.
The easiest ...
you mix up different topic: dimension itself, dimension of objects in different dimensions, and the projection (image) of n-dimensional objects into a view.
Dimension itself:
A 4-dimensional (4D) space is a space were you have 4 linearly independent axis.
The easiest ...
- Sat Jan 03, 2026 2:04 pm
- Forum: Off Topic
- Topic: What 4D looks like ?
- Replies: 34
- Views: 1366
Re: What 4D looks like ?
No, you can not extrude the 4th dimension into a direction (dimension) you already did an extrusion.
Why not ? 4D is not a cube, it is more complicate than the 3D (cube, the very low approximation), i mean 4D is as double of 3D so it is 6D, this extra dimension adding the sub of 3D and more ...
- Sat Jan 03, 2026 12:24 pm
- Forum: Off Topic
- Topic: What 4D looks like ?
- Replies: 34
- Views: 1366
Re: What 4D looks like ?
4D is an extrusion of 6D, each sub 3D is 18D (6D * 3D), same as 3D but adding extra dimension to make 4D in 18D, it is most complicate to explain here :shock: :mrgreen:
What is your thought of that ? :lol: 8) :D
PS : Each dimension I extrude to extra dimension so it looks like that instead of ...
- Tue Dec 30, 2025 1:30 pm
- Forum: Bugs - Windows
- Topic: [Done] 6.30 b6 - XMLNodePath error in return string
- Replies: 2
- Views: 458
Re: [6.30 b6] XMLNodePath error in return string
Confirmed.
The string has many space-characters at the end:
000001A23C2B0750 2F 00 4D 00 61 00 69 00 6E 00 2F 00 74 00 32 00 /.M.a.i.n./.t.2.
000001A23C2B0760 2F 00 74 00 32 00 31 00 2F 00 65 00 6C 00 65 00 /.t.2.1./.e.l.e.
000001A23C2B0770 6D 00 65 00 6E 00 74 00 5B 00 32 00 5D 00 20 00 m.e.n.t ...
The string has many space-characters at the end:
000001A23C2B0750 2F 00 4D 00 61 00 69 00 6E 00 2F 00 74 00 32 00 /.M.a.i.n./.t.2.
000001A23C2B0760 2F 00 74 00 32 00 31 00 2F 00 65 00 6C 00 65 00 /.t.2.1./.e.l.e.
000001A23C2B0770 6D 00 65 00 6E 00 74 00 5B 00 32 00 5D 00 20 00 m.e.n.t ...
- Tue Dec 30, 2025 12:00 am
- Forum: General Discussion
- Topic: Making simple apps with AI
- Replies: 16
- Views: 1199
Re: Making simple apps with AI
asked claude
or make an interpreter for purebasic.
Is this an example for or against KI generated code?
For me, such generated codes remain a nice gimmick, but have no practical use.
You can't really use something like that, can you?
Regarding the code itself:
Using Define in a procedure is ...
- Sat Dec 20, 2025 10:15 am
- Forum: Coding Questions
- Topic: Loops in floats
- Replies: 7
- Views: 667
Re: Loops in floats
No, not on modern CPUs/FPUs. Nowadays, also MUL or FMUL need only a single clock cycle, similar to ADD or FADD.
But of course, adding 0.04 directly to the iteration variable is faster than iterating a dummy integer variable and then scale it.
- Thu Dec 18, 2025 7:15 pm
- Forum: Bugs - Windows
- Topic: PB 6.30 Beta 4 - ScreenGadget library - bug report
- Replies: 35
- Views: 4492
Re: PB 6.30 Beta 4 - ScreenGadget library - bug report
Dear pf shadoko,
as the final release is getting closer, I want to note that there is still reported bug which you marked as fixed:
I get still an IMA at RenderScreenGadgets() when I click on an empty ListViewScreenGadget() near the border of the gadget.
as the final release is getting closer, I want to note that there is still reported bug which you marked as fixed:
I get still an IMA at RenderScreenGadgets() when I click on an empty ListViewScreenGadget() near the border of the gadget.
- Thu Dec 18, 2025 3:20 pm
- Forum: Coding Questions
- Topic: Loops in floats
- Replies: 7
- Views: 667
Re: Loops in floats
Please note that loops with floats are not numerically stable.
Depending on the increment value, you sometimes reach the final value and sometimes not, even if you use doubles!
Define a.d, da.d
a = 0.0 : da = 0.1
While a <= 2
Debug StrD(a, 3)
a + da
Wend
Debug "---"
a = 0.0 : da = 0.2
While a ...
Depending on the increment value, you sometimes reach the final value and sometimes not, even if you use doubles!
Define a.d, da.d
a = 0.0 : da = 0.1
While a <= 2
Debug StrD(a, 3)
a + da
Wend
Debug "---"
a = 0.0 : da = 0.2
While a ...
- Tue Dec 09, 2025 7:39 pm
- Forum: Coding Questions
- Topic: Opening and calling DLL functions from inside a Purebasic DLL [SOLVED]
- Replies: 7
- Views: 579
Re: Opening and calling DLL functions from inside a Purebasic DLL
Without any code or snippets nor information at which point the main DLL or sub DLL crashes?

No!

No!
- Fri Dec 05, 2025 6:53 am
- Forum: Coding Questions
- Topic: EnableExplicit behavior
- Replies: 2
- Views: 379
Re: EnableExplicit behavior
Yes, as it is written in the documentation:
https://www.purebasic.com/documentation ... odule.html
When the statements Define, EnableExplicit, EnableASM are used inside a module, they have no effect outside the respective module, and vice versa.