Jump to content

Recommended Posts

Posted

Hi, i need some help. How can I get the sequence number of the "0"s here.

$string = "17000220064602"

I'm trying to reach this  >>>< 3 - 4 - 5 - 8 - 9 - 13

Posted (edited)

One way to do it would be to split the char string into an array of chars (StringSplit).  Then, spin through the array of chars looking for the char of interest.

  Reveal hidden contents

 

Edited by TheXman
Fixed For/Next loop
Posted (edited)
  On 5/8/2021 at 12:18 PM, TheXman said:

One way to do it would be to split the char string into an array of chars (StringSplit).  Then, spin through the array of chars looking for the char of interest.

  Reveal hidden contents

 

Expand  

I tried with StringSplit but couldn't it. I could only reach the first 0 😢

Edited by mixim
Posted (edited)

Click on "Reveal hidden contents" in my previous post.

And next time, don't say what didn't work without showing it.

Edited by TheXman
Posted
  On 5/8/2021 at 4:02 PM, JockoDundee said:

@subz gets the trophy, everybody else gets the love :)

Expand  

Some people will be honoured, others will be adored. :lol:

(I hope this pun will not get lost in translation)

Musashi-C64.png

"In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move."

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...