rangerbud249
Active member
- Joined
- Aug 18, 2004
- Messages
- 27
- Programming Experience
- Beginner
I have 52 of these statements. Can someone please help me make them a loop or do until statement?
If weekVar Is W1 Then
W1 = e.Item.Cells(2).Controls(0)
Else
W1 = Nothing
End If
If weekVar Is W2 Then
W2 = e.Item.Cells(2).Controls(0)
Else
W2 = Nothing
End If
If weekVar Is W3 Then
W3 = e.Item.Cells(2).Controls(0)
Else
W3 = Nothing
End If
thanks,
Jose
If weekVar Is W1 Then
W1 = e.Item.Cells(2).Controls(0)
Else
W1 = Nothing
End If
If weekVar Is W2 Then
W2 = e.Item.Cells(2).Controls(0)
Else
W2 = Nothing
End If
If weekVar Is W3 Then
W3 = e.Item.Cells(2).Controls(0)
Else
W3 = Nothing
End If
thanks,
Jose