Results 1 to 23 of 23

Thread: Control Array Problem - Solved

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2003
    Location
    Eden Prairie Minnesota
    Posts
    301

    Control Array Problem - Solved

    VB Code:
    1. Private Sub Form_Unload(Cancel As Integer)
    2.  
    3. Dim varProduct1 As String, Selected As Integer, I As Integer
    4.  
    5.     For I = 0 To Product().Count - 1
    6.    
    7.     If Product(I).Value = Checked Then
    8.    
    9.         Select Case Product(I)
    10.  
    11.             Case 0
    12.                 varProduct1 = "STAR"
    13.        
    14.             Case 1
    15.                 varProduct1 = "SEXP"
    16.        
    17.             Case 2
    18.                 varProduct1 = "W2BN"
    19.        
    20.             Case 3
    21.                 varProduct1 = "D2DV"
    22.        
    23.             Case 4
    24.                 varProduct1 = "D2XP"
    25.        
    26.             Case 5
    27.                 varProduct1 = "WAR3"
    28.        
    29.             Case 6
    30.                 varProduct1 = "W3XP"
    31.        
    32.         End Select
    33.    
    34.     End If
    35.    
    36.     Next I
    37.  
    38.     WriteStuff "Main", "Username", txtUsername.text
    39.     WriteStuff "Main", "Password", txtPassword.text
    40.     WriteStuff "Main", "Home", txtHome.text
    41.     WriteStuff "Main", "Server", txtServer.text
    42.     WriteStuff "Main", "CDKey", txtCDKey.text
    43.     WriteStuff "Main", "Cdkey2", txtCDKey2.text
    44.     WriteStuff "Main", "Cdkey2", txtCDKey2.text
    45.     WriteStuff "Main", "Product", varProduct1
    46.    
    47. End Sub

    I have a array of Checkboxes, Product(x). X = 0,1,2,3,4,5

    1) I want to be Able to Detect which Option is Displayed, and Give it a Name ( varProduct1 )

    2) when i Click one Checkbox, the rest of the Checked Boxes Become Unchecked

    THe Above code doesn't seem to be working, and i am not sure how to do #2
    Last edited by BaDDBLooD; Apr 11th, 2004 at 06:35 PM.

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