Message 1 of 4
Which Flag Is Set (ie 1, 2, 4,16,32,64,...)
Not applicable
02-04-2005
11:36 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm working with some code that deals with the layer states and the optional flag to determine which props to save.
Initially, I was going to store the sum of the flags using savesettings, until i realized I don't know how to "parse" the total into the individual flags. Could someone give a hint or a little code?
Edit: I need to figure out which flags are set so that i can mark the appropriate check box (just like the options for the native layer states)
Here are the codes I'm working with
acLsNone 0
acLsOn 1
acLsFrozen 2
acLsLocked 4
acLsPlot 8
acLsNewViewport 16
acLsColor 32
acLsLineType 64
acLsLineWeight 128
acLsPlotStyle 256
acLsAll 65535
TIA!
Message was edited by: Oberer
Initially, I was going to store the sum of the flags using savesettings, until i realized I don't know how to "parse" the total into the individual flags. Could someone give a hint or a little code?
Edit: I need to figure out which flags are set so that i can mark the appropriate check box (just like the options for the native layer states)
Here are the codes I'm working with
acLsNone 0
acLsOn 1
acLsFrozen 2
acLsLocked 4
acLsPlot 8
acLsNewViewport 16
acLsColor 32
acLsLineType 64
acLsLineWeight 128
acLsPlotStyle 256
acLsAll 65535
TIA!
Message was edited by: Oberer