String function - Finding righter-most character
Posted: Sun Apr 19, 2015 6:04 pm
I need to determine if the last character of a sting variable is a back-slash. The logic I am looking to implement is...
If Right($TARGETDIR$,1) is not equal to "\" then Set Variable $TAGETDIR$ to $TARGETDIR$ + "\"
The "Extract Path" is no good as the path could be in a UNC format so it replaces the initial \\ with a single
Look forward to your reply, Adrian
If Right($TARGETDIR$,1) is not equal to "\" then Set Variable $TAGETDIR$ to $TARGETDIR$ + "\"
The "Extract Path" is no good as the path could be in a UNC format so it replaces the initial \\ with a single
Look forward to your reply, Adrian