What IDs must be different?
What IDs must be different?
I know we can do:
OpenWindow(0 ...
ButtonGadget(0 ...
We can use the same number (ex: 0) because Windows and Gadgets are different things, but... what are the whole list where we *must* use different numbers for the same "family"?
Window
Gadget
File
Menu
...
OpenWindow(0 ...
ButtonGadget(0 ...
We can use the same number (ex: 0) because Windows and Gadgets are different things, but... what are the whole list where we *must* use different numbers for the same "family"?
Window
Gadget
File
Menu
...
Re: What IDs must be different?
Caronte3D wrote: Wed Sep 11, 2024 6:40 pm... what are the whole list where we *must* use different numbers for the same "family"?
Window
Gadget
File
Menu
...
Here's the comprehensive list:
> Overview of the different PureBasic objects
Texas Instruments TI-99/4A Home Computer: the first home computer with a 16bit processor, crammed into an 8bit architecture. Great hardware - Poor design - Wonderful BASIC engine. And it could talk too! Please visit my YouTube Channel 
Re: What IDs must be different?
Thanks TI-994A
Code: Select all
- Database
- Dialog
- Entity
- File
- FTP
- Gadget (including the ScintillaGadget())
- Gadget3D
- Image
- JSON
- Library
- Light
- Mail
- Material
- Menu (not MenuItem(), as this is no object)
- Mesh
- Movie
- Music
- Network
- Node
- Particle
- RegularExpression
- SerialPort
- Sound
- Sound3D
- Sprite
- StatusBar
- Texture
- ToolBar
- Window
- Window3D
- XML
Last edited by Caronte3D on Thu Sep 12, 2024 6:57 pm, edited 1 time in total.
Re: What IDs must be different?
Basically one for each library.
Good morning, that's a nice tnetennba!
PureBasic 6.21/Windows 11 x64/Ryzen 7900X/32GB RAM/3TB SSD
Synology DS1821+/DX517, 130.9TB+50.8TB+2TB SSD
PureBasic 6.21/Windows 11 x64/Ryzen 7900X/32GB RAM/3TB SSD
Synology DS1821+/DX517, 130.9TB+50.8TB+2TB SSD
Re: What IDs must be different?
@Caronte3D
I haven't investigated, but the JSON lib is also missing from your list.
I haven't investigated, but the JSON lib is also missing from your list.
If my English syntax and lexicon are incorrect, please bear with Google translate and DeepL. They rarely agree with each other!
Except on this sentence...
Except on this sentence...
Re: What IDs must be different?
I added JSON (sounds coherent to me) but it's not in the "oficial" list.
Re: What IDs must be different?
I don't think so.
There are many more libraries that don't require any ID.
Re: What IDs must be different?
PB-Help CreateJSON(#JSON [, Flags])
#JSON A number to identify the new JSON. #PB_Any can be used to auto-generate this number.
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Re: What IDs must be different?
Oh, come on...I meant each library (which uses IDs) has it's own scope. Of course the libraries which don't use IDs, don't need them...
Good morning, that's a nice tnetennba!
PureBasic 6.21/Windows 11 x64/Ryzen 7900X/32GB RAM/3TB SSD
Synology DS1821+/DX517, 130.9TB+50.8TB+2TB SSD
PureBasic 6.21/Windows 11 x64/Ryzen 7900X/32GB RAM/3TB SSD
Synology DS1821+/DX517, 130.9TB+50.8TB+2TB SSD


