Jump to content
Sign in to follow this  
js22

Loops with Letters

Recommended Posts

Hello,

I'm wondering if it is possible to run a loop with letters. Something where

Set Variable $Var = A

Loop

Insert Calculation Field: $Var

Set Variable $Var = $Var + 1

Exit loop if _____

End Loop

So that everytime it loops it goes from A to B to C ...

If anyone has any ideas that would be helpful

js22

Share this post


Link to post
Share on other sites

Set Variable $string = "ABCDE..XYWZ"

Set Variable $pos = 1

Loop

Set field [ yourField ; Middle ( $string ; $pos ; 1 ) ]

Set Variable $pos = $pos + 1

Exit Loop if [ $pos > Lenght ( $string ) ]

Pause [ ,5 ]

End Loop

Share this post


Link to post
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
Sign in to follow this  

×

Important Information

By using this site, you agree to our Terms of Use.