-
Two Questions
I have two questions.
1. In visual basic are there a two types of AND/OR commands i.e Bitwise or Logical ? Or are both of these covered by one key word, and if so how does it distinguish between the two.
2. How do you get an option button to behave independently, i.e as a two state switch, witch holds ON or OFF ?
-
Re: Two Questions
Your statement will be something like
if <logical_exp1> and <logical_exp2> then dosomething
the <logical_exp> returns either true or false. each bit in the return value is OR'd or AND'ed to get the result.
Conversely if you have the format as
exp1=exp2 AND exp3
and exp1, exp2, exp3 are of "Byte"/"Integer" /"Long" type, then it ANDs each bit in the arguments. This I am sure of because I've done it.
For Question2,
----------------------
Use a checkbox instead.
Or, create an ActiveX component with only 1 Option button displayed!
I would prefer the checkbox soulution.
Deepak