Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Parsing Factors
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00723361
Message ID:
00723369
Views:
19
>The MESSAGEBOX() function parses the 2N factors out of the various numbers passed to it to determine the various options. I need to accomplish this same sort of task. I should know this, but is there a formula or algorithm for parsing these factors out or does an iterative loop have to be used?
>
>Thanks,

Bill,

The underlying code is undoubtedly using bit-wise functions to determine the icon, button style, etc. If you know the incoming values, you simply need to use BITAND() to determine what's been specified. If a given flag returns zero or the same value that it's set at, you know that it wasn't or was specified, in that order.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform