Connecting two enums together
#3

The only way to effectivelly do this would be to use apID as the index.

Other way would be to set apID to the id on each array at the same time, and letting each enum have a cache variable to hold the array position of the same apID on the other one and avoid having to loop in order to find each other.

I'm afraid Arrays aren't really made to be related to elements outside of themselves, not without some bodging at least, which will usually come in the shape of caching related indexes or search loops as mentioned.
Reply


Messages In This Thread
Connecting two enums together - by JesusChrysler - 28.04.2020, 09:37
Re: Connecting two enums together - by Adamoneoone - 28.04.2020, 10:08
Re: Connecting two enums together - by Markski - 28.04.2020, 11:45

Forum Jump:


Users browsing this thread: 1 Guest(s)