Search found 3762 matches
- Wed Oct 29, 2025 4:01 pm
- Forum: Off Topic
- Topic: Curiosity : RandomSeed(Random(1000))
- Replies: 10
- Views: 2403
Re: Curiosity : RandomSeed(Random(1000))
I heard many times about getting a Random "random SEED"… (e.g., to then extract lottery numbers…)
Stupid example I just invented now: you can use the luminosity of a flame being gently blown by a fan…
…or the movements of your mouse…
…or………
…Isn't that WEIRD ?
………I find "randomness" to be very ...
- Fri Oct 24, 2025 2:34 am
- Forum: Coding Questions
- Topic: PB_Key_Colon
- Replies: 8
- Views: 1150
Re: PB_Key_Colon
Here's another way using keyboard shortcuts that generate menu events:
#w_main = 0 ;window
#event_selectedShortcut = 100 ;event
#My_Shortcut_Colon = 186 + #PB_Shortcut_Shift ;constant obtained from Shortcut gadget test
OpenWindow(#w_main,0,0,200,200,"colon pushed")
AddKeyboardShortcut(#w_main, #My ...
#w_main = 0 ;window
#event_selectedShortcut = 100 ;event
#My_Shortcut_Colon = 186 + #PB_Shortcut_Shift ;constant obtained from Shortcut gadget test
OpenWindow(#w_main,0,0,200,200,"colon pushed")
AddKeyboardShortcut(#w_main, #My ...
- Mon Oct 20, 2025 7:28 am
- Forum: Coding Questions
- Topic: [Solved] List the fields of the structure
- Replies: 7
- Views: 1055
Re: List the fields of the structure
I don't understand why it doesn't work.
It is probably due to the structured string element and the quirk in the functioning of PureBasic's @ operator returning the address of the string's content instead of the address of the pointer to the string's content.
Try this untested code ...
- Tue Oct 14, 2025 7:47 pm
- Forum: Tricks 'n' Tips
- Topic: Vector Curve Designer (RAD Tool)
- Replies: 101
- Views: 44750
Re: Vector Curve Designer (RAD Tool)
I use it.
- Tue Oct 14, 2025 7:43 pm
- Forum: Off Topic
- Topic: Is this good?
- Replies: 10
- Views: 2648
Re: Is this good?
My financial portfolio says 'Yes'. 
- Fri Oct 10, 2025 2:07 pm
- Forum: Feature Requests and Wishlists
- Topic: Preventing PB_Event_FirstCustomValue Clashes Between Independent Libraries
- Replies: 17
- Views: 3633
Re: Preventing PB_Event_FirstCustomValue Clashes Between Independent Libraries
There must be a reason why this question raises up from time to time by new users (including me some years ago). And also, why after explaining the way it is done now is questioned.
It is a common situation that arises not only with custom events but also with enumeration of any type of ...
- Thu Oct 09, 2025 7:29 pm
- Forum: Feature Requests and Wishlists
- Topic: Preventing PB_Event_FirstCustomValue Clashes Between Independent Libraries
- Replies: 17
- Views: 3633
Re: Preventing PB_Event_FirstCustomValue Clashes Between Independent Libraries
I'll preface my remarks by saying I understand there is more than one way to view the issue that motivated your feature request.
Why not just modify each library to use a named enumeration in a common module?
Everything else that had been suggested tries to avoid modifying the libraries to ...
Why not just modify each library to use a named enumeration in a common module?
Everything else that had been suggested tries to avoid modifying the libraries to ...
- Thu Oct 09, 2025 5:41 pm
- Forum: Feature Requests and Wishlists
- Topic: Preventing PB_Event_FirstCustomValue Clashes Between Independent Libraries
- Replies: 17
- Views: 3633
Re: Preventing PB_Event_FirstCustomValue Clashes Between Independent Libraries
Why not just modify each library to use a named enumeration in a common module?
Everything else that had been suggested tries to avoid modifying the libraries to be consistent. I think that is a recipe for disaster. Why not just fix the inconsistencies where they occur?
Everything else that had been suggested tries to avoid modifying the libraries to be consistent. I think that is a recipe for disaster. Why not just fix the inconsistencies where they occur?
- Mon Sep 29, 2025 1:24 am
- Forum: Bugs - Mac OSX
- Topic: [Done] Incorrect window number for tray menu events.
- Replies: 5
- Views: 1846
Re: Incorrect window number for tray menu events.
Events from window number 0, but there is no such window in the application!
Welcome to the non-null world of PureBasic.
EventWindow() does not have a return value indicating Null or that its value is not applicable to an event. What do you think happens when you Debug EventMenu() for a gadget ...
- Sun Sep 28, 2025 3:27 am
- Forum: Coding Questions
- Topic: redim
- Replies: 2
- Views: 514
Re: redim
Does redim clear the array?
[*code snipped*]
It did not clear the array. But an online search result claimed that it does and that you need to use the "Preserve" keyword to keep the data. Yet the purebasic help makes no mention of this.
If you had instead searched the help file you would have ...
- Sat Sep 27, 2025 4:23 pm
- Forum: Coding Questions
- Topic: PB IDE font setup ...
- Replies: 9
- Views: 907
Re: PB IDE font setup ...
marc_256 wrote: Sat Sep 27, 2025 3:57 pm Hi Demivec,
I did this already, but then I lose all my graphic characters (Page437).
only when I use the OEM-US character set I can use the Page437 character set.
Marc
Here's a link to unicode code points for the same thing:
https://www.unicode.org/charts/nameslist/n_2500.html
- Sat Sep 27, 2025 3:33 pm
- Forum: Coding Questions
- Topic: PB IDE font setup ...
- Replies: 9
- Views: 907
Re: PB IDE font setup ...
User UTF-8 encoding in both programs.
- Tue Sep 09, 2025 6:36 pm
- Forum: Bugs - Windows
- Topic: [Done] Pointer to a structure in the prototype
- Replies: 10
- Views: 2028
Re: Pointer to a structure in the prototype
Macro ma_result : l : EndMacro
PrototypeC.ma_result p_onContextInit(*pContext.ma_context, *pConfig.ma_context_config, *pCallback.sma_backend_callbacks) For prototype does not need to know what implementation of the structure is (the structure is declared below the prototype), because it is a ...
- Mon Sep 08, 2025 8:56 pm
- Forum: Off Topic
- Topic: I might finally be getting a promotion!
- Replies: 11
- Views: 2687
Re: I might finally be getting a promotion!
Congratulations on your possible promotion. I was one of the people that voted for you. 
- Mon Sep 08, 2025 2:48 pm
- Forum: Tricks 'n' Tips
- Topic: Select folder dialog
- Replies: 15
- Views: 7662
Re: Select folder dialog
Do you mean like OpenFileRequester() and SaveFileRequester()?