Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MESSAGEBOX
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00365597
Message ID:
00365687
Views:
23
>> However, about half way through the code he apparently decided it would even easier to start writing the sum instead of the individual values. So there's all these messageboxes like MESSAGEBOX("Post these transactions?", 308, "Post?"). 308??? Now it's up to me to figure out that 308 is 4+48+256 and that he's really using Yes/No buttons, an exclamation icon, and a default of No.
>
>That's the way we do it here too, but then I'm a math person - and do those "Cross Sums" puzzles daily. The MB sums are neat little puzzles to solve :)

Naw, not really Bruce. Consider that the button type is in the 3 least significant bits, the icon is defined in bits 4-7 (this is zero based BTW), and the default button in 7 and 8. Thus:
lnbutton = BITAND(308, 7) && 4
lnicon = BITAND(308, 240) && 48
lnbutton = BITAND(308, 768) && 256
George

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

Click here to load this message in the networking platform