CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Two Questions

  1. #1
    Guest

    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 ?



  2. #2
    Join Date
    Sep 1999
    Location
    Trivandrum, Kerala, INDIA.
    Posts
    32

    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


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured