skywalk,
The solution I am using is storing the info in Data statements and doing I think basically what you are saying
For l=1 To 40
Read a
AddElement(set())
set() = a
Next
Search found 9 matches
- Sun Dec 24, 2023 8:00 pm
- Forum: Coding Questions
- Topic: Prefilling a List
- Replies: 15
- Views: 3245
- Sun Dec 24, 2023 7:36 pm
- Forum: Coding Questions
- Topic: Prefilling a List
- Replies: 15
- Views: 3245
Re: Prefilling a List
skywalk, how do you add hundreds of items to a list, is it really a long section of code filled with,
AddElement(MyList())
MyList() = x
This is so inefficient, ugly and bloating code, even with copy and pasting.
I just can't believe there is not a easy way to create a list of data.
AddElement(MyList())
MyList() = x
This is so inefficient, ugly and bloating code, even with copy and pasting.
I just can't believe there is not a easy way to create a list of data.
- Sun Dec 24, 2023 7:05 pm
- Forum: Coding Questions
- Topic: Prefilling a List
- Replies: 15
- Views: 3245
Prefilling a List
Is there a way to take a set of information and create the list directly with it without using the addelement command
For example,
I have a set of numbers 1,2,3,4,5,8,9,11,15,17,19,45,65,78 and so on could be a really big set
I want to have them all in a searchable list or other item like an array ...
For example,
I have a set of numbers 1,2,3,4,5,8,9,11,15,17,19,45,65,78 and so on could be a really big set
I want to have them all in a searchable list or other item like an array ...
- Sun Dec 25, 2022 6:05 am
- Forum: Coding Questions
- Topic: Window in a window
- Replies: 6
- Views: 1047
Re: Window in a window
Is there a way to use #PB_Event_CloseWindow to close a child window and not close all the windows?
- Wed Aug 28, 2019 3:12 am
- Forum: Coding Questions
- Topic: Any good examples of structures and lists
- Replies: 10
- Views: 2401
Re: Any good examples of structures and lists
Thank you for your help I was able to get it to work and understand a little more. I made a little snow falling effect to try it out
If InitSprite() = 0 Or InitKeyboard() = 0
MessageRequester("Error", "Can't open the sprite system", 0)
End
EndIf
Global screenwidth=1280
Global screenheight=1024 ...
If InitSprite() = 0 Or InitKeyboard() = 0
MessageRequester("Error", "Can't open the sprite system", 0)
End
EndIf
Global screenwidth=1280
Global screenheight=1024 ...
- Mon Aug 26, 2019 7:13 pm
- Forum: Coding Questions
- Topic: Any good examples of structures and lists
- Replies: 10
- Views: 2401
Re: Any good examples of structures and lists
";we can only delete the currently active element!"
assuming i'm moving images and when they move off the screen I can do it like,
cycle thru a list with foreach and checking say boundries of the screen and if the current object is out of boundry and I want to get rid of it I can just ...
assuming i'm moving images and when they move off the screen I can do it like,
cycle thru a list with foreach and checking say boundries of the screen and if the current object is out of boundry and I want to get rid of it I can just ...
- Mon Aug 26, 2019 3:55 pm
- Forum: Coding Questions
- Topic: Any good examples of structures and lists
- Replies: 10
- Views: 2401
Any good examples of structures and lists
I am looking for any good examples of using structures, storing them in lists, adding and removing from the list.
I think I have structures down but not lists and not using them together.
Thank you
I think I have structures down but not lists and not using them together.
Thank you
- Fri Nov 27, 2015 7:57 pm
- Forum: 3D Programming
- Topic: Editable 3d world question
- Replies: 2
- Views: 2134
Re: Editable 3d world question
I used Samuel's Terrain Generator to learn how to do a lot of this so far. Mine is somewhat simpler in design as I can use some preset values. His has one texture that is used for each grid tile on the map.
I'm not very good with 3D. Have always done 2D on everything in the past because I just do ...
I'm not very good with 3D. Have always done 2D on everything in the past because I just do ...
- Fri Nov 27, 2015 5:17 pm
- Forum: 3D Programming
- Topic: Editable 3d world question
- Replies: 2
- Views: 2134
Editable 3d world question
I want to create a world drawn from a height map that the heights can be adjusted.
So what I have is the height map loaded into a array that can be manipulated.
I create a mesh with the array data.
I create a entity with the mesh.
Works great
except I can only have one texture for the entity ...
So what I have is the height map loaded into a array that can be manipulated.
I create a mesh with the array data.
I create a entity with the mesh.
Works great
except I can only have one texture for the entity ...