Results 1 to 2 of 2

Thread: Boolean array to string

  1. #1

    Thread Starter
    Frenzied Member trisuglow's Avatar
    Join Date
    Jan 2002
    Location
    Horsham, Sussex, UK
    Posts
    1,536

    Boolean array to string

    I have a boolean array and I want to check to see if it contains at least one set of 7 consecutive elements that are set to False.

    My plan is to convert it to a string of '1' and '0' characters and use InStr to search for "0000000".

    I'm stuck because I can't work out a way of doing the conversion.

    Obviously I could do a For loop and build the string but I'd like to do it all in one line.

    Anybody up to the challenge?
    This world is not my home. I'm just passing through.

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    VB Code:
    1. booleanvarname.ToString

    Play with this, see if it helps.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width