Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Ideas on how to manage individual modules per client bas
Message
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01283190
Message ID:
01283194
Views:
17
>Hi all
>
>This may be steep requirement. I have multiple interest from clients for an application of mine which is currently under works. I intend to charge the clients on a module by module basis so if a client orders module x he will be charged for it but other clients should not be able to see it till they pay for it. I don't think I will be able to manage multiple exes it has to be in the same main exe. I just intend to flag it at the menu option level (the database contains all and every table for all the clients).
>
>What kind of a coding scheme would you suggest. The general concept I have in mind is that I have a code assigned to each and every client. This code will contain the information of which modules are available to the client. At every (class based) menu option I should check if the menu should be visible or not.
>
>Now the million dollar question is there may be many modules and many combination all to be gleaned from this one code. I could use a character code which could have 1 for active 0 for invisible for eg. 0100111 (modules 2, 5, 6 and 7 visible) but then the field will have to be huge.
>
>Any better idea?

Hi,
What's the maximum number of modules that you are anticipating?
IAC the best you can do (size-wise) is to use 1 bit per module rather than 1 character. A double has 64 bits (but, IIRC, only 52 are usable)
HTH,
Viv
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform