Sign in to follow this  
Followers 0
lekremyelsew

Variable Operations

4 posts in this topic

Is there a way to get the last char from a string?

I couldn't find anything in the Variables & Conversions section or the User-Defined functions section.

I'm sorry if there is an extremely obvious way to do it :whistle:

The string is being read from a Input GUI control.

Share this post


Link to post
Share on other sites



Is there a way to get the last char from a string?

I couldn't find anything in the Variables & Conversions section or the User-Defined functions section.

I'm sorry if there is an extremely obvious way to do it :whistle:

The string is being read from a Input GUI control.

See if this bit of cold would help you get going.

$input = InputBox("Just a test", "Default input", "This is just a test")
If @error = 1 Then Exit
$lChar = StringRight($input, 1) ; The number of characters to read
MsgBox(0, "TEST", $lChar)

EndFuncAutoIt is the shiznit. I love it.

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  
Followers 0