Shawn,Another way of doing the same job: ClearBit() Or Not_or()
I had hidden an other way of clearing bits, as function Not_Or() in UsrMustChgPwd()
Function Not_Or($Num,$NotBin)
; Binary Not Or
; Clears the bits set in $Num, that are also set in $NotBin
$Num = 0 + $Num
$NotBin = 0 + $NotBin
$Not_Or = ($Num | $NotBin) - $NotBin
EndFunction
My reason for calling the function Not_Or() was:
You use binary Or to add a bit to a Number
Not_Or() will do the opposite (Remove/clear a bit)
You rely on -1 is transformed into largest possible numer, because negative numbers are not alowed in KiXtart,
so i believe your way is just as safe as Richards: &FFFFFFFF instead of -1, as long as KiXtart dosn't allow
negative numbers.
I'm not shure if it would be a good idea to implement your C++ statements, or not:
$count++ ; automatically increment by 1
$count-- ; automatically decrement by 1
$count += 10 ; same as $count = $count + 10
$count -= 10 ; same as $count = $count - 10
What about:
++$count
--$count
In for-next loops, do something, increace/decrease after
Other KiX-users might want to implement the syntax of their favorite programming language.
I would prefere the pascal syntax:
Inc($Count) for increasing $count by one
Inc($Count, $x) for increasing $count by $x
Dec($Count) for decreasing $count by one
Dec($Count, $x) for decreasing $count by $x
I believe that the pascal-syntax would be easy to implement for Ruud. But i won't make it a
first priority wish to get these functions included (I could make an UDF to do it)
What about performance:
Of course it would be better for performance to have the funtions: Inc() and Dec() and operators (++, --, +=, -=)
implemeted in KiXtart, than executing UDF's.
I can make my pascal UDf's, but you canīt make C-UDF function ++(), it would be illegal.
-Erik
ps.
I think that Ruud has made a great effort to make the syntax for string- and object handling
very similar to the visual basic syntax, so if the the KiX syntax gets to be like VB, at least
we don't have to 'rewind' when going from VB or Java to KiXtart!! 
cj-
You can't use ~ it is opted by Richard as boolean not, to keep this VB like ! is the not-operator.
Is ~ a boolean not in VB ?