By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,057 Members | 1,346 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,057 IT Pros & Developers. It's quick & easy.

How to make the value of every array outside of the range "00"

P: 1
Expand|Select|Wrap|Line Numbers
  1. Private Sub cmdDone_Click()
  2.  
  3. Dim strAryWords() As String
  4. Dim strValue
  5. Dim num As Integer
  6. strValue = hexstring(txtInput.Text)
  7. strAryWords = Split(strValue, " ")
  8. num = UBound(strAryWords) + 1
  9.  
  10. txtImposter.Text = "206b7f64 20202020" _
  11.         & vbCrLf & "206b7f68 " & strAryWords(4) & strAryWords(3) & strAryWords(2) & strAryWords(1) _
  12.         & vbCrLf & "206b7f6c " & strAryWords(8) & strAryWords(7) & strAryWords(6) & strAryWords(5) _
  13.         & vbCrLf & "206b7f70 " & strAryWords(12) & strAryWords(11) & strAryWords(10) & strAryWords(9) _
  14.         & vbCrLf & "206b7f74 " & strAryWords(16) & strAryWords(15) & strAryWords(14) & strAryWords(13) _
  15.         & vbCrLf & "206b7f78 " & strAryWords(20) & strAryWords(19) & strAryWords(18) & strAryWords(17) _
  16.         & vbCrLf & "206b7f7c " & strAryWords(24) & strAryWords(23) & strAryWords(22) & strAryWords(21) _
  17.         & vbCrLf & "206b7f80 " & strAryWords(28) & strAryWords(27) & strAryWords(26) & strAryWords(25) _
  18.         & vbCrLf & "206b7f84 " & strAryWords(32) & strAryWords(31) & strAryWords(30) & strAryWords(29) _
  19.         & vbCrLf & "206b7f88 " & strAryWords(36) & strAryWords(35) & strAryWords(34) & strAryWords(33) _
  20.         & vbCrLf & "206b7f8c " & strAryWords(40) & strAryWords(39) & strAryWords(38) & strAryWords(37)
  21.  
  22. End Sub
I want to make every array that wasn't found with the split function to be = "00"

How do i do that?
Dec 8 '07 #1
Share this Question
Share on Google+
2 Replies


QVeen72
Expert 100+
P: 1,445
Hi,

Not Clear with your Question..
You want to Make an Array element ="00" if it is blank...?
If Yes, Just Loop through all the array elements and Check for blank.

Regards
Veena
Dec 9 '07 #2

Expert 5K+
P: 8,434
Yes, can you please explain what you mean when you say an element "wasn't found"?
Dec 10 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.