Jump to content
  • Advertisement
Sign in to follow this  

Class Detection and Selection

This topic is 2587 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

OK so i'm working on a programming project and for it I have to use a custom class,

After an object of the class has been created it needs to be added to something like an array where I can access it and get its personalized properties back

Is this possible ?


Share this post

Link to post
Share on other sites
Ok after some research I found some stuff out so I thought I would share it:

Say banana is your custom class.

Dim bananasgroup(10) as banana
banana(0).juicy = 1
banana(3).juicy = 3

Then to save this array...

For each i as new banana in bananasgroup
next i

Where save is your function, hope this clears some stuff up, it certainly did for me :)

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!