Jump to content

Variable Operations

Recommended Posts

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.
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

  • Recently Browsing   0 members

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