Bryce, around here ... you shall now be known as "Flag Boy"

Cripes - we already got a flag boy ... never mind ...

Excellent Idea (*2) !!!

But no need to build UDF's to check options, just use the and & operator and masks, like this:


break on


myfunc(2+8+32+1)


function myfunc($flags)

$opt1 = 1
$opt2 = 2
$opt4 = 4
$opt8 = 8
$opt16 = 16
$opt32 = 32

if $flags & $opt1
?"Option1 selected"
endif

if $flags & $opt2
?"Option2 selected"
endif

if $flags & $opt4
?"Option4 selected"
endif

if $flags & $opt8
?"Option8 selected"
endif

if $flags & $opt16
?"Option16 selected"
endif

if $flags & $opt32
?"Option32 selected"
endif

endfunction


Eh ?

-Shawn