String function - Finding righter-most character

Got a problem you cannot solve? Try here.
Post Reply
AdrianGray
Posts: 32
Joined: Fri Jul 25, 2014 5:21 am

String function - Finding righter-most character

Post by AdrianGray »

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
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: String function - Finding righter-most character

Post by FrancescoT »

Dear Adrian,

please have a look at the following discussion.
http://www.installaware.com/forum/viewt ... 54&start=0

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Post Reply