Ken

Ken

  • 0
  • 110
  • 0

Best way to store these data?

Jan 30 2011 6:50 PM
I have a system of toggles in my program.  A user can define a toggle to contain accepted and unaccepted tags.  I was trying to think of an efficient way to store those.  So far the best I came up with is a three dimensional array, so I could do:

toggles[0,0,0] = "allowedtag1";
toggles[0,0,1] = "allowedtag2";
toggles[0,1,0] = "badtag1";
toggles[0,1,1] = "badtag2";

What would be the best way to store that, or is that really the way to go?  Thanks :)

Answers (3)