lekremyelsew Posted March 4, 2007 Posted March 4, 2007 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 The string is being read from a Input GUI control. Hot Corners Rulez!
EndFunc Posted March 4, 2007 Posted March 4, 2007 lekremyelsew said: 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 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.
xcal Posted March 5, 2007 Posted March 5, 2007 And here's a fish for you! How To Ask Questions The Smart Way
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now