Jump to content

Write string between strings?


 Share

Recommended Posts

Amazing way, jguinch, thank you ;) :D 

Taking advantage of you reading this i'd like to ask about a loop problem i have:

i want to write several line codes that include $sVideoLink1 and everytime i want to add one i want to make its last number raise 1.. Like this:

$sVideoLink1

$sVideoLink2

$sVideoLink3

$sVideoLink4

sorry for going out of contest but i thought you might know the solution

 

 

Link to comment
Share on other sites

What you need is an array with a loop. I know you're learning the coding with AutoIt, but loops and arrays are part of the learning.

Look at the help file in Language Reference / Loop Statements

Example :

Local $sVideoLink = ["link1", "link2", "link3", "link4", "link5"]

For $i = 0 To UBound($sVideoLink) - 1
    MsgBox(0, "", $sVideoLink[$i] )
Next

 

Link to comment
Share on other sites

Again thanks my friend, you have a been a great help for me so far...

i'll get to know with loops and arrays because i have to combine the two part of codes that you wrote....

thanks for letting me count on you

Edited by SugarBall
Link to comment
Share on other sites

Don't forget to use and use again the helpfile : each essential function page contains one or more exemple that you can should open and run to understand how it works.

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

×
×
  • Create New...