Sunday, November 21, 2010

How to check every 8th character in a String using VB?

How would I program using Visual Basic for a loop to go through and check whether every 8th character (8, 16, 24, etc) and see whether or not it is a 1 or 0?How to check every 8th character in a String using VB?
dim i as integer

for i =0 to len(string) step 8

dim char as string

char = mid(i,i+8,sting)

nextHow to check every 8th character in a String using VB?
actually.....



dim i as integer

for i =0 to len(string) step 8

dim char as string

char = mid(i,i,string) 'i+8 would have given u 8 chars from that 8th char

next

Report Abuse


put the string into a char array

No comments:

Post a Comment