Hi All,
I have a program that I'm making and it will have well 7 different "addons" or extras that can be purchased.
this number will likely increase.
The way I'm going about it (as i don't know any other way), is to built the application with ALL packages included, then just limit the users visibliity based on the packages they have paid for (by have like a keycode that states they have package 1,3 and 5).
The problem I face though is with 7 packages that makes about 5040 different combinations of visibility. the only way I could think of doing this is very manual with massive IF statements like
I don't really want to hard code 5040 different options in, is there another way?
I have a program that I'm making and it will have well 7 different "addons" or extras that can be purchased.
this number will likely increase.
The way I'm going about it (as i don't know any other way), is to built the application with ALL packages included, then just limit the users visibliity based on the packages they have paid for (by have like a keycode that states they have package 1,3 and 5).
The problem I face though is with 7 packages that makes about 5040 different combinations of visibility. the only way I could think of doing this is very manual with massive IF statements like
Code:
IF userkey = 1 or 3 or 5 then
menu3.enabled = true
elseif userkey = 456,765,23 then
menu2.enabled = true
'etc
endif