¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

Re: Parsing a string


 

I have a workable solution

(Dave, no driving and texting)? :)

Take the string and convert it to csv.? I can manage the rest.??

But, I will like to see your idea.

73

image.png


On Fri, Jan 29, 2021 at 1:17 PM David De Coons wo2x <RocketNJ@...> wrote:
I¡¯ve got a solution. I should be home in 1/2 hr.

Dave wo2x


Sent from my waxed string and tin cans.?

On Jan 29, 2021, at 1:11 PM, Michael Walker <va3mw@...> wrote:

?
Hi Neal

Yes, that is the status of 8 relays that I need to break out so I can build an LED panel (so to speak)

Mike?

On Fri, Jan 29, 2021 at 1:09 PM Neal Pollack <nealix@...> wrote:
Mike:

I don't have the actual answer, but I *think* I understand how to describe what you want:

Given a binary string of 1's and 0's such as, for example, 10010110 , parse out each digit position, and assign?each digit to
a separate boolean variable name set to 1 or 0.? ? Is that what?you're looking for?

Neal

On Fri, Jan 29, 2021 at 9:52 AM Michael Walker <va3mw@...> wrote:
Hi All

I have a string I need to parse of 8 binary values being returned from a relay board

10000000

What is the best way to parse out the status of each of these relays???

I looked at 'string' but I can't see a method that allows me to pull the boolean out 1 at a time.

thoughts?

Mike va3mw

Join [email protected] to automatically receive all group messages.