If you are only interested in the upcoming or previous element (like in your example), you could also use that approach:
Procedure GetNeighborElements(*CurrentElement, *previous.INTEGER, *next.INTEGER)
*previous\i = PeekI(*CurrentElement - SizeOf(INTEGER))
*next\i = PeekI(*CurrentElement - 2 ...
Search found 1109 matches
- Thu Jan 22, 2026 4:33 pm
- Forum: Coding Questions
- Topic: Reading or writing inside a LIST() without move his current position [Resolved]
- Replies: 9
- Views: 336
- Thu Jan 22, 2026 12:57 pm
- Forum: Windows
- Topic: Broken "VoiceAccess" workaround
- Replies: 2
- Views: 255
Re: Broken "VoiceAccess" workaround
Isn't there always a copy of the latest VoiceAccess.exe in C:\Windows\System32?
A simple
does not work for you?
A simple
Code: Select all
RunProgram("C:\Windows\System32\VoiceAccess.exe", "", "")- Wed Jan 21, 2026 8:34 pm
- Forum: Game Programming
- Topic: Platformer 2D Opengl
- Replies: 16
- Views: 708
Re: Platformer 2D Opengl
Find the mistake
Code: Select all
Repeat
If WindowEvent() = #PB_Event_CloseWindow
End
EndIf
Until Event = 0- Wed Jan 21, 2026 5:15 pm
- Forum: Coding Questions
- Topic: How to read Json results?
- Replies: 13
- Views: 484
Re: How to read Json results?
How did you recreate the JSON structure? By hand?
Yes, took me less than 5 minutes.
But in fact your used API should have a clear description somewhere, no need to use the output and recreate the members.
Since I have no idea which service we are talking about (I don't know "joplin"), I had to ...
- Wed Jan 21, 2026 3:17 pm
- Forum: Coding Questions
- Topic: How to read Json results?
- Replies: 13
- Views: 484
Re: How to read Json results?
HaHaHa, two idiots, almost the very same code
- Wed Jan 21, 2026 3:07 pm
- Forum: Coding Questions
- Topic: How to read Json results?
- Replies: 13
- Views: 484
Re: How to read Json results?
I tend to recreate the JSON structure, this makes evaluation much easier instead of using those weird JSON commands
Structure myitems
id.s
parent_id.s
title.s
deleted_time.i
EndStructure
Structure BLA
List items.myitems()
has_more.b
EndStructure
JSON$ = ~"{\"items\":[{\"id ...
Structure myitems
id.s
parent_id.s
title.s
deleted_time.i
EndStructure
Structure BLA
List items.myitems()
has_more.b
EndStructure
JSON$ = ~"{\"items\":[{\"id ...
- Wed Jan 14, 2026 8:39 pm
- Forum: Tricks 'n' Tips
- Topic: Creating gadgets with CanvasGadget() + VectorDrawing
- Replies: 7
- Views: 615
Re: Creating gadgets with CanvasGadget() + VectorDrawing
You can replace
CompilerIf #PB_Compiler_DPIAware = 1
Global dpix.d = DesktopResolutionX()
Global dpiy.d = DesktopResolutionY()
CompilerElse
Global dpix.d = 1
Global dpiy.d = 1
CompilerEndIf
with
Global dpix.d = DesktopResolutionX()
Global dpiy.d = DesktopResolutionY()
Beause when DPI ...
CompilerIf #PB_Compiler_DPIAware = 1
Global dpix.d = DesktopResolutionX()
Global dpiy.d = DesktopResolutionY()
CompilerElse
Global dpix.d = 1
Global dpiy.d = 1
CompilerEndIf
with
Global dpix.d = DesktopResolutionX()
Global dpiy.d = DesktopResolutionY()
Beause when DPI ...
- Mon Jan 05, 2026 12:47 pm
- Forum: Tricks 'n' Tips
- Topic: Window ListIconGadget With Owner Data (Very Fast)
- Replies: 44
- Views: 3063
Re: Window ListIconGadget With Owner Data (Very Fast)
There were some quite good GridGadgets based on Canvas here in the forum, might be worth a search?
- Mon Jan 05, 2026 1:37 am
- Forum: Tricks 'n' Tips
- Topic: Window ListIconGadget With Owner Data (Very Fast)
- Replies: 44
- Views: 3063
Re: Window ListIconGadget With Owner Data (Very Fast)
This would be a GridGadget and no ListIconGadget
- Mon Jan 05, 2026 1:33 am
- Forum: Off Topic
- Topic: Project Visual Objects Handler
- Replies: 4
- Views: 609
Re: Project Visual Objects Handler
When I enter your forum, a pop-up with some French texts comes up, but well, ich spreche genauso wenig französisch wie Du deutsch, also entweder machst Du das für den Rest der Welt verständlich oder platziere es nur im französischen PB Forum.
btw., do you know the Dead Horse Theory?
btw., do you know the Dead Horse Theory?
- Wed Dec 31, 2025 12:10 pm
- Forum: Tricks 'n' Tips
- Topic: Window ListIconGadget With Owner Data (Very Fast)
- Replies: 44
- Views: 3063
Re: Window ListIconGadget With Owner Data (Very Fast)
I guess many of us had already an ownerdrawn ListIconGadget, due to the reason you already mentioned.
But since mine is very unstructured and "hacked together" I'll use yours in future, thanks for the code!
I never had to use checkboxes in my ownerdrawn lists before, but I think the behavior is odd ...
But since mine is very unstructured and "hacked together" I'll use yours in future, thanks for the code!
I never had to use checkboxes in my ownerdrawn lists before, but I think the behavior is odd ...
- Thu Dec 04, 2025 11:12 pm
- Forum: Coding Questions
- Topic: Simple PB code editor
- Replies: 28
- Views: 2743
Re: Simple PB code editor
I wrote “gone,” not “passed away”
- Wed Dec 03, 2025 11:00 pm
- Forum: Coding Questions
- Topic: Simple PB code editor
- Replies: 28
- Views: 2743
Re: Simple PB code editor
Yes, I consider it special!
When you look through the forum you don't find many PB made scripting languages.
Is it too special to make it public?
Once in the past I was in need of a scripting language for one of my apps, I tinkered with LUA, but never was really happy with it.
Then srod came up ...
When you look through the forum you don't find many PB made scripting languages.
Is it too special to make it public?
Once in the past I was in need of a scripting language for one of my apps, I tinkered with LUA, but never was really happy with it.
Then srod came up ...
- Wed Dec 03, 2025 9:42 pm
- Forum: Coding Questions
- Topic: Simple PB code editor
- Replies: 28
- Views: 2743
Re: Simple PB code editor
You have created your own scripting language?skywalk wrote: Wed Dec 03, 2025 7:44 pm I have a custom scripting language for my app and I use richtext edit, but it is rudimentary.
- Fri Nov 14, 2025 12:13 am
- Forum: The PureBasic Editor
- Topic: [IDE-Tool] Templates Backup
- Replies: 17
- Views: 6246
Re: [IDE-Tool] Templates Backup
One Great Template I found:
; ----------------------------------------------------------------------------
; "THE BEER-WARE LICENSE":
; <HeX0R@coderbu.de> wrote this file. as long as you retain this notice you
; can do whatever you want with this stuff. If we meet some day, and you think
; this ...