Quick question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Varun

    #1

    Quick question

    Hi,

    Im having problems working out some logic in an 'If statement
    This specific part of my code does no run for sum reason....

    ElseIf ((CBoxSession.T ext = "All") And Not (CBoxLayout.Tex t = "All")) The

    Can anyone tell me what im doin wrong
    What i want to achieve is to run a specific piece of code if the value of one combobox is 'All' while the value of the other is not 'All


  • Gordon Knote

    #2
    RE: Quick question

    Just do the following
    ElseIf ((CBoxSession.T ext = "All") And (CBoxLayout.Tex t <> "All")) The

    Hope this help
    Gordon

    Comment

    • Cor Ligthert

      #3
      Re: Quick question

      Hi Varun,

      I think this is my favorite in this

      ElseIf CBoxSession.Tex t = "All" AndAlso CBoxLayout.Text <> "All" Then

      When the first is evaluated and not true it does not do the second.

      I hope this helps?

      Cor


      Comment

      Working...