hi,
I would like to have a static array, then have a string in which the only permitted characters are elements in my array.
Here is an example of what I would like without using an array:
Thus the only permitted characters in the string are A, G, C or T anything else should flag an error message.
Thank you for looking.
I would like to have a static array, then have a string in which the only permitted characters are elements in my array.
Here is an example of what I would like without using an array:
Code:
Sub makemeanarray()
Str = "AGCTHC"
For i = 1 To Len(Str)
If Mid(seq, i, 1) = "A" Then
ElseIf Mid(Str, i, 1) = "C" Then
ElseIf Mid(Str, i, 1) = "G" Then
ElseIf Mid(Str, i, 1) = "T" Then
Else: MsgBox "problemo you have an unpermitted character!"
End If
Next
End Sub
Thus the only permitted characters in the string are A, G, C or T anything else should flag an error message.
Thank you for looking.