Jump to content

String Value after =


botanic
 Share

Recommended Posts

how can i get the value of the number after the BPM= I know i could use string mid however the number of characters on each side could change as well as the BPM could be less then 100

|Tempo   | BPM=110   | micros\quarter=545454
Edited by botanic
Link to comment
Share on other sites

Look:

#include <string.au3>
$oRstring="|Tempo    | BPM=110   | micros\quarter=545454"&" "
$String1=_StringBetween($oRstring,"="," ")
$String2=_StringBetween($oRstring,"quarter="," ")
MsgBox(0,"",$String1[0])
MsgBox(0,"",$String2[0])

Note the &" " I added at the end of your string.

Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

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