I have about 15 variables that I am dealing with I could do it that way with a case statement
If sender.checked Then
select case Type
case "FirstName"
tempTXT.Text = EMFirstName
case "LastName"
Else
select case type
case "FirstName"
tempTXT.text = DBFirstName
case "LastName"
End If
But I woud rather not have to write that long of a case statement, seems like there should be a cleaner way of doing it
Main Topics
Browse All Topics





by: GoodJunPosted on 2003-12-31 at 11:10:27ID: 10022974
If sender.checked Then
tempTXT.Text = EMFirstName
Else
'Get info from contacts
tempTXT.text = DBFirstName
End If