Results 1 to 18 of 18

Thread: Is this really possible ?[Resolved]

Threaded View

  1. #15

    Thread Starter
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    This is how I used it anyway . I set the variables a and b from different locations and I made sure have been set to different values every time .

    VB Code:
    1. Private a As Integer
    2. Private b As Integer
    3.  
    4.  
    5.     Private Sub ValidateMe()
    6.         Select Case a AndAlso b
    7.             Case a = 0 And b = 0
    8.                 MsgBox("index0  index0")
    9.             Case a = 0 And b = 1
    10.                 MsgBox("index0  index1")
    11.             Case a = 0 And b = 2
    12.                 MsgBox("index0  index2")
    13.             Case a = 1 And b = 0
    14.                 MsgBox("index1  index0")
    15.         End Select
    16.     End Sub
    Last edited by Pirate; Feb 12th, 2004 at 10:27 AM.

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