Sign in to follow this  
Followers 0
giorg70

The Last Character in a string

3 posts in this topic

Is it possible to read the last character in a string and, if it isn't an expected value, add some characters to the end?

Thanks in advance

Share this post


Link to post
Share on other sites



$String = "abc"

$String = StringRight($String,1)

if $String <> "c" Then exit


My UDF's : Startet on : 06.06.2006_CaseSearchOrReplaceStr();~> Searches OR Replaces a String,;~> With or Without Casesensivity

Share this post


Link to post
Share on other sites

[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

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