hazejean Posted July 18, 2003 Posted July 18, 2003 I am having trouble checking stae of checkbox in .net tried = 1;true;checked.... nothing works?? Quote
*Experts* Volte Posted July 18, 2003 *Experts* Posted July 18, 2003 If CheckBox1.Checked = True Then Quote
hazejean Posted July 18, 2003 Author Posted July 18, 2003 here is my code: test for checkbox doesn't work??? Public Sub gettxt() Dim val As Integer Dim text(200) As String Dim result(200) As String Dim verb(200) As String Dim counter As Integer Dim val1 As Integer Dim text1 As String Dim i1 As Integer Dim j As Integer Dim i As Integer Dim k As Integer Dim Mycheck(200) As CheckBox Dim button1 As Button Dim freetext As TextBox Dim noverbs As Integer 'get verbs array and noverbs 'noverbs is number of verbs in array noverbs = 5 verb(1) = "one" verb(2) = "two" verb(3) = "three" verb(4) = "four" verb(5) = "five" 'create check boxes For i = 1 To noverbs Mycheck(i) = New CheckBox Mycheck(i).Location = New Point(1, 15 * i) Controls.Add(Mycheck(i)) Mycheck(i).Text = verb(i) Next i ' test if check box checked...move verb to text For k = 1 To noverbs If Mycheck(k).Checked = True Then text(k) = verb(k) Else text(k) = "" Next k Quote
*Experts* mutant Posted July 18, 2003 *Experts* Posted July 18, 2003 It should work, did you try debug your code and check the values of the text()? Quote
hazejean Posted July 18, 2003 Author Posted July 18, 2003 this is such a basic statement...crazy that it doesn't work. I guess I will go back to Vb 6.0. The tranlator is useless also. Quote
Ariez Posted July 18, 2003 Posted July 18, 2003 Yeah, i haven't been able to import anything from previous stuff. not that it was worth anything... Quote Auto-suggestion: "I have a life" Uncontroled thinking: "So what the.."
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.